Cleaned up a UX issue with the zone records list editor view.

This commit is contained in:
Matt Scott 2023-02-20 15:52:00 -05:00
parent 4d0cf87338
commit b98bcc3bec

View File

@ -30,7 +30,7 @@
<div class="card-tools"> <div class="card-tools">
{% if current_user.role.name in ['Administrator', 'Operator'] %} {% if current_user.role.name in ['Administrator', 'Operator'] %}
<button type="button" title="Zone Settings" <button type="button" title="Zone Settings"
class="btn btn-primary btn-danger" class="btn btn-primary btn-danger mt-2 mb-2"
onclick="window.location.href='{{ url_for('domain.setting', domain_name=domain.name) }}'"> onclick="window.location.href='{{ url_for('domain.setting', domain_name=domain.name) }}'">
<i class="fa-solid fa-toolbox"></i> <i class="fa-solid fa-toolbox"></i>
&nbsp;Zone Settings &nbsp;Zone Settings
@ -38,19 +38,19 @@
{% endif %} {% endif %}
{% if current_user.role.name in ['Administrator', 'Operator'] or SETTING.get('allow_user_view_history') %} {% if current_user.role.name in ['Administrator', 'Operator'] or SETTING.get('allow_user_view_history') %}
<button type="button" title="Zone Changelog" <button type="button" title="Zone Changelog"
class="btn btn-primary ml-2 button_changelog" id="{{ domain.name }}"> class="btn btn-primary ml-2 mt-2 mb-2 button_changelog" id="{{ domain.name }}">
<i class="fa-solid fa-history" aria-hidden="true"></i> <i class="fa-solid fa-history" aria-hidden="true"></i>
&nbsp;Changelog &nbsp;Changelog
</button> </button>
{% endif %} {% endif %}
{% if domain.type != 'Slave' %} {% if domain.type != 'Slave' %}
<button type="button" title="Add Record" <button type="button" title="Add Record"
class="btn btn-primary ml-2 button_add_record" id="{{ domain.name }}"> class="btn btn-primary ml-2 mt-2 mb-2 button_add_record" id="{{ domain.name }}">
<i class="fa-solid fa-plus"></i> <i class="fa-solid fa-plus"></i>
&nbsp;Add Record &nbsp;Add Record
</button> </button>
<button type="button" title="Save Changes" <button type="button" title="Save Changes"
class="btn btn-primary ml-2 button_apply_changes" class="btn btn-primary ml-2 mt-2 mb-2 button_apply_changes"
id="{{ domain.name }}" id="{{ domain.name }}"
value="{{ domain.serial }}"> value="{{ domain.serial }}">
<i class="fa-solid fa-save"></i> <i class="fa-solid fa-save"></i>
@ -58,7 +58,7 @@
</button> </button>
{% else %} {% else %}
<button type="button" title="Update from Primary" <button type="button" title="Update from Primary"
class="btn btn-primary ml-2 button_update_from_primary" class="btn btn-primary ml-2 mt-2 mb-2 button_update_from_primary"
id="{{ domain.name }}"> id="{{ domain.name }}">
<i class="fa-solid fa-sync"></i> <i class="fa-solid fa-sync"></i>
&nbsp;Update from Primary &nbsp;Update from Primary