diff --git a/quicktill/tillweb/templates/tillweb/grouplist.html b/quicktill/tillweb/templates/tillweb/grouplist.html index 82b80f2..04f44d5 100644 --- a/quicktill/tillweb/templates/tillweb/grouplist.html +++ b/quicktill/tillweb/templates/tillweb/grouplist.html @@ -4,6 +4,10 @@ {% block tillcontent %} +{% if may_create_group %} +Add new group +{% endif %} + {% if groups %} @@ -31,8 +35,4 @@

No groups have been defined.

{% endif %} -{% if may_create_group %} -Add new group -{% endif %} - {% endblock %} diff --git a/quicktill/tillweb/templates/tillweb/new-user.html b/quicktill/tillweb/templates/tillweb/new-user.html new file mode 100644 index 0000000..3bd9911 --- /dev/null +++ b/quicktill/tillweb/templates/tillweb/new-user.html @@ -0,0 +1,19 @@ +{% extends "tillweb/tillweb.html" %} +{% load static %} + +{% block title %}{{till}} — create new user{% endblock %} + +{% block tillcontent %} + +
+ Till user accounts can be disabled, which means they won't appear in the normal list of users. Before adding a new user to the till, please check that they don't already have an account. +
+ +{% csrf_token %} + {% include "form-horizontal.html" %} + + + +{% endblock %} diff --git a/quicktill/tillweb/templates/tillweb/userlist.html b/quicktill/tillweb/templates/tillweb/userlist.html index d20fdab..ab25f14 100644 --- a/quicktill/tillweb/templates/tillweb/userlist.html +++ b/quicktill/tillweb/templates/tillweb/userlist.html @@ -15,6 +15,10 @@
runtill adduser root root builtin:alice
+{% if may_create_user %} +Add new user +{% endif %} +