diff options
Diffstat (limited to 'server/templates')
-rw-r--r-- | server/templates/server/doc_list.html | 2 | ||||
-rw-r--r-- | server/templates/server/doc_type.html | 2 | ||||
-rw-r--r-- | server/templates/server/index.html | 6 | ||||
-rw-r--r-- | server/templates/server/user_list.html | 2 |
4 files changed, 9 insertions, 3 deletions
diff --git a/server/templates/server/doc_list.html b/server/templates/server/doc_list.html index 12b64cd..302a1d9 100644 --- a/server/templates/server/doc_list.html +++ b/server/templates/server/doc_list.html @@ -9,7 +9,7 @@ <a href="{% url 'server'%}" class="breadcrumb hide-on-med-and-down">Admin</a> <a href="{% url 'doclist' %}" class="breadcrumb hide-on-med-and-down">Documenti</a> <ul class="right"> - {% if user.is_staff %} + {% if user.is_staff or perms.client.staff %} <li><a href="{% url 'server' %}">Pannello Admin</a></li> {% endif %} {% if user.is_authenticated %} diff --git a/server/templates/server/doc_type.html b/server/templates/server/doc_type.html index d102664..01db1be 100644 --- a/server/templates/server/doc_type.html +++ b/server/templates/server/doc_type.html @@ -9,7 +9,7 @@ <a href="{% url 'server'%}" class="breadcrumb hide-on-med-and-down">Admin</a> <a ref="{% url 'doctype' %}" class="breadcrumb hide-on-med-and-down">Tipo Doc</a> <ul class="right"> - {% if user.is_staff %} + {% if user.is_staff or perms.client.staff %} <li><a href="{% url 'server' %}">Pannello Admin</a></li> {% endif %} {% if user.is_authenticated %} diff --git a/server/templates/server/index.html b/server/templates/server/index.html index 4c82618..2e299d1 100644 --- a/server/templates/server/index.html +++ b/server/templates/server/index.html @@ -9,6 +9,7 @@ {% block content %} <div class="row"> + {% if user.is_staff %} <div class="col l4 s12"> <div class="card large"> <div class="card-content"> @@ -35,7 +36,12 @@ </div> </div> </div> + {% endif %} + {% if user.is_staff %} <div class="col l8 s12"> + {% else %} + <div class="col s12"> + {% endif %} <div class="card large"> <div class="card-content"> <ul class="collection"> diff --git a/server/templates/server/user_list.html b/server/templates/server/user_list.html index 653e33d..721f284 100644 --- a/server/templates/server/user_list.html +++ b/server/templates/server/user_list.html @@ -9,7 +9,7 @@ <a href="{% url 'server'%}" class="breadcrumb hide-on-med-and-down">Admin</a> <a href="#!" class="breadcrumb hide-on-med-and-down">Lista Utenti</a> <ul class="right"> - {% if user.is_staff %} + {% if user.is_staff or perms.client.staff %} <li><a href="{% url 'server' %}">Pannello Admin</a></li> {% endif %} {% if user.is_authenticated %} |