From 4d0cf87338ae8b4f63e81acdcc8c749b518c6d53 Mon Sep 17 00:00:00 2001 From: Matt Scott Date: Mon, 20 Feb 2023 15:50:03 -0500 Subject: [PATCH] Cleaned up a UX issue with the zone records list editor view. --- powerdnsadmin/templates/domain.html | 985 ++++++++++++++-------------- 1 file changed, 503 insertions(+), 482 deletions(-) diff --git a/powerdnsadmin/templates/domain.html b/powerdnsadmin/templates/domain.html index 4cd1c15..4318b29 100755 --- a/powerdnsadmin/templates/domain.html +++ b/powerdnsadmin/templates/domain.html @@ -1,293 +1,310 @@ {% extends "base.html" %} - -{% block title %} - - {{ domain.name | pretty_domain_name }} - {{ SITE_NAME }} - -{% endblock %} +{% block title %}Zone Records - {{ domain.name | pretty_domain_name }} - {{ SITE_NAME }}{% endblock %} {% block dashboard_stat %} -
-
-
-
-

- Domain: {{ domain.name | pretty_domain_name }} -

+
+
+
+
+

Zone Records - {{ domain.name | pretty_domain_name }}

+
+
+ +
+
-
- -
-
-
{% endblock %} {% block content %} -
-
-
-
-
-
- {% if domain.type != 'Slave' %} - - - {% else %} - - {% endif %} - {% if current_user.role.name in ['Administrator', 'Operator'] %} - - {% endif %} - {% if current_user.role.name in ['Administrator', 'Operator'] or SETTING.get('allow_user_view_history') %} - - {% endif %} -
-
- - - - - - - - - {% if domain.type != 'Slave' %} - - - - {% if current_user.role.name in ['Administrator', 'Operator'] or SETTING.get('allow_user_view_history') %} - - {% endif %} - {% else %} - - {% endif %} - - - - {% for record in records %} - - - - - - - {% if domain.type != 'Secondary' %} - - - - {% if current_user.role.name in ['Administrator', 'Operator'] or SETTING.get('allow_user_view_history') %} - - {% endif %} - {% endif %} - - - - {% endfor %} - -
NameTypeStatusTTLDataCommentEditDeleteChangelogInvisible Sorting Column
{{ (record.name,domain.name) | display_record_name | pretty_domain_name }}{{ record.type }}{{ record.status }}{{ record.ttl }}{{ record.data | pretty_domain_name }}{{ record.comment }} - {% if record.is_allowed_edit() %} - - {% else %} - - {% endif %} - - {% if record.is_allowed_delete() %} - - {% endif %} - - - 1
-
+
+
+
+
+
+
+

Zone Editor

+
+ {% if current_user.role.name in ['Administrator', 'Operator'] %} + + {% endif %} + {% if current_user.role.name in ['Administrator', 'Operator'] or SETTING.get('allow_user_view_history') %} + + {% endif %} + {% if domain.type != 'Slave' %} + + + {% else %} + + {% endif %} +
+
+
+ + + + + + + + + {% if domain.type != 'Slave' %} + + + + {% if current_user.role.name in ['Administrator', 'Operator'] or SETTING.get('allow_user_view_history') %} + + {% endif %} + {% else %} + + {% endif %} + + + + {% for record in records %} + + + + + + + {% if domain.type != 'Slave' %} + + + + {% if current_user.role.name in ['Administrator', 'Operator'] or SETTING.get('allow_user_view_history') %} + + {% endif %} + {% endif %} + + + + {% endfor %} + +
NameTypeStatusTTLDataCommentEditDeleteChangelogInvisible Sorting Column
{{ (record.name,domain.name) | display_record_name | pretty_domain_name }}{{ record.type }}{{ record.status }}{{ record.ttl }}{{ record.data | pretty_domain_name }}{{ record.comment }} + {% if record.is_allowed_edit() %} + + {% else %} + + {% endif %} + + {% if record.is_allowed_delete() %} + + {% endif %} + + + 1
+
+
+
+
-
-
-
-
+ +{% endblock %} + +{% block head_styles %} + {% endblock %} {% block extrascripts %} - + {% endblock %} {% block modals %} -