mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-04 19:15:30 +00:00
Merge zone editor record action controls into single column (#1642)
This commit is contained in:
commit
11371e1b81
@ -86,11 +86,7 @@
|
|||||||
<th>Data</th>
|
<th>Data</th>
|
||||||
{% if domain.type != 'Slave' %}
|
{% if domain.type != 'Slave' %}
|
||||||
<th>Comment</th>
|
<th>Comment</th>
|
||||||
<th>Edit</th>
|
<th>Actions</th>
|
||||||
<th>Delete</th>
|
|
||||||
{% if current_user.role.name in ['Administrator', 'Operator'] or allow_user_view_history %}
|
|
||||||
<th>Changelog</th>
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<th>Invisible Sorting Column</th>
|
<th>Invisible Sorting Column</th>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -108,7 +104,7 @@
|
|||||||
<td>{{ record.comment }}</td>
|
<td>{{ record.comment }}</td>
|
||||||
<td>
|
<td>
|
||||||
{% if record.is_allowed_edit() %}
|
{% if record.is_allowed_edit() %}
|
||||||
<button type="button" class="btn btn-sm btn-warning button_edit">
|
<button type="button" title="Edit" class="btn btn-sm btn-warning button_edit">
|
||||||
<i class="fa-solid fa-edit"></i>
|
<i class="fa-solid fa-edit"></i>
|
||||||
</button>
|
</button>
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -116,23 +112,19 @@
|
|||||||
<i class="fa-solid fa-exclamation-circle"></i>
|
<i class="fa-solid fa-exclamation-circle"></i>
|
||||||
</button>
|
</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{% if record.is_allowed_delete() %}
|
{% if record.is_allowed_delete() %}
|
||||||
<button type="button" class="btn btn-sm btn-danger button_delete">
|
<button type="button" title="Delete" class="btn btn-sm btn-danger button_delete">
|
||||||
<i class="fa-solid fa-trash"></i>
|
<i class="fa-solid fa-trash"></i>
|
||||||
</button>
|
</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
{% if current_user.role.name in ['Administrator', 'Operator'] or allow_user_view_history %}
|
||||||
{% if current_user.role.name in ['Administrator', 'Operator'] or allow_user_view_history %}
|
<button type="button" title="Changelog"
|
||||||
<td>
|
|
||||||
<button type="button"
|
|
||||||
onclick="show_record_changelog('{{ record.name }}','{{ record.type }}',event)"
|
onclick="show_record_changelog('{{ record.name }}','{{ record.type }}',event)"
|
||||||
class="btn btn-primary">
|
class="btn btn-primary btn-sm">
|
||||||
<i class="fa-solid fa-history" aria-hidden="true"></i>
|
<i class="fa-solid fa-history" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
</td>
|
{% endif %}
|
||||||
{% endif %}
|
</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<!-- hidden column that we can sort on -->
|
<!-- hidden column that we can sort on -->
|
||||||
<td>1</td>
|
<td>1</td>
|
||||||
@ -155,6 +147,7 @@
|
|||||||
table#tbl_records thead th:nth-child(2),
|
table#tbl_records thead th:nth-child(2),
|
||||||
table#tbl_records thead th:nth-child(3),
|
table#tbl_records thead th:nth-child(3),
|
||||||
table#tbl_records thead th:nth-child(4) { width: 100px; }
|
table#tbl_records thead th:nth-child(4) { width: 100px; }
|
||||||
|
table#tbl_records thead th:nth-child(7) { width: 80px; }
|
||||||
table#tbl_records tbody td { text-align: center; }
|
table#tbl_records tbody td { text-align: center; }
|
||||||
table#tbl_records tbody td:nth-child(0n+5),
|
table#tbl_records tbody td:nth-child(0n+5),
|
||||||
table#tbl_records tbody td:nth-child(0n+6) { text-align: left; word-break: break-all; }
|
table#tbl_records tbody td:nth-child(0n+6) { text-align: left; word-break: break-all; }
|
||||||
@ -203,11 +196,7 @@
|
|||||||
// regardless of whatever sorting is done. See orderFixed
|
// regardless of whatever sorting is done. See orderFixed
|
||||||
visible: false,
|
visible: false,
|
||||||
{% if domain.type != 'Slave' %}
|
{% if domain.type != 'Slave' %}
|
||||||
{% if current_user.role.name in ['Administrator', 'Operator'] or allow_user_view_history %}
|
targets: [7]
|
||||||
targets: [9]
|
|
||||||
{% else %}
|
|
||||||
targets: [8]
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
{% else %}
|
||||||
targets: [5]
|
targets: [5]
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -225,11 +214,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
{% if domain.type != 'Slave' %}
|
{% if domain.type != 'Slave' %}
|
||||||
{% if current_user.role.name in ['Administrator', 'Operator'] or allow_user_view_history %}
|
"orderFixed": [[7, 'asc']]
|
||||||
"orderFixed": [[9, 'asc']]
|
|
||||||
{% else %}
|
|
||||||
"orderFixed": [[8, 'asc']]
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
{% else %}
|
||||||
"orderFixed": [[5, 'asc']]
|
"orderFixed": [[5, 'asc']]
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user