From c7689e7ce7082b2bcb3d70cae316ae2966c2341d Mon Sep 17 00:00:00 2001 From: Khanh Ngo Date: Sun, 2 Sep 2018 11:12:07 +0700 Subject: [PATCH] Fix domain template record modification #346 --- app/templates/base.html | 2 +- app/templates/dashboard.html | 2 +- app/templates/domain.html | 9 ++- app/templates/template_edit.html | 101 +++++++++++++++++++++++-------- app/views.py | 12 ++-- 5 files changed, 89 insertions(+), 37 deletions(-) diff --git a/app/templates/base.html b/app/templates/base.html index b69873c..7999e98 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -108,7 +108,7 @@
  • Dashboard
  • - {% if SETTING.get('allow_user_create_domain') %} + {% if SETTING.get('allow_user_create_domain') or current_user.role.name in ['Administrator', 'Operator'] %}
  • New Domain
  • diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index 871ff26..50c8e00 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -156,7 +156,7 @@ {% endblock %} {% block extrascripts %}