mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-06-16 04:56:05 +00:00
Final page edits for bootstrap v4 and Admin LTE v3.2
This commit is contained in:
@ -4,9 +4,9 @@
|
||||
|
||||
{% macro dnssec(domain) %}
|
||||
{% if domain.dnssec %}
|
||||
<td><span style="cursor:pointer" class="btn btn-lg btn-success button_dnssec" id="{{ domain.name }}"><i class="fa fa-lock"></i> Enabled</span></td>
|
||||
<td><span style="cursor:pointer" class="badge badge-success button_dnssec" id="{{ domain.name }}"><i class="fa-solid fa-lock"></i> Enabled</span></td>
|
||||
{% else %}
|
||||
<td><span style="cursor:pointer" class="btn btn-sm btn-danger button_dnssec" id="{{ domain.name }}"><i class="fa fa-unlock-alt"></i> Disabled</span></td>
|
||||
<td><span style="cursor:pointer" class="badge badge-danger button_dnssec" id="{{ domain.name }}"><i class="fa-solid fa-lock-open"></i> Disabled</span></td>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
@ -31,30 +31,45 @@
|
||||
{% macro actions(domain) %}
|
||||
<td width="6%">
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Options
|
||||
<button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fa-solid fa-bars"></i> Actions
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenu">
|
||||
{% if current_user.role.name in ['Administrator', 'Operator'] %}
|
||||
<button class="dropdown-item btn-success button_template" id="{{ domain.name }}" type="button">
|
||||
<i class="fa fa-clone"></i> Clone to Template
|
||||
<i class="fa-solid fa-clone"></i> Clone to Template
|
||||
</button>
|
||||
<button class="dropdown-item btn-success" type="button" onclick="window.location.href='{{ url_for('domain.domain', domain_name=domain.name) }}'">
|
||||
<i class="fa fa-cog"></i> Manage Domain
|
||||
<i class="fa-solid fa-cog"></i> Manage Domain
|
||||
</button>
|
||||
<button class="dropdown-item btn-danger" type="button" onclick="window.location.href='{{ url_for('domain.setting', domain_name=domain.name) }}'">
|
||||
<i class="fa fa-cog"></i> Admin Settings
|
||||
<i class="fa-solid fa-cog"></i> Admin Settings
|
||||
</button>
|
||||
<button class="dropdown-item btn-primary" type="button" onclick="window.location.href='{{ url_for('domain.changelog', domain_name=domain.name) }}'">
|
||||
<i class="fa fa-history" aria-hidden="true"></i> Domain Changelog
|
||||
<i class="fa-solid fa-history" aria-hidden="true"></i> Domain Changelog
|
||||
</button>
|
||||
<div class="dropdown-divider"></div>
|
||||
<button type="button"class="dropdown-item btn-secondary button_delete" onclick="window.location.href='{{ url_for('domain.remove') }}'">
|
||||
<font color="red">
|
||||
<i class="fa-solid fa-trash"></i> Remove Domain
|
||||
</font>
|
||||
</button>
|
||||
</div>
|
||||
{% else %}
|
||||
<button class="dropdown-item btn-success" type="button" onclick="window.location.href='{{ url_for('domain.domain', domain_name=domain.name) }}'">
|
||||
<i class="fa fa-cog"></i> Manage Domain
|
||||
<i class="fa-solid fa-cog"></i> Manage Domain
|
||||
</button>
|
||||
{% if allow_user_view_history %}
|
||||
<button class="dropdown-item btn-primary" type="button" onclick="window.location.href='{{ url_for('domain.changelog', domain_name=domain.name) }}'">
|
||||
<i class="fa fa-history" aria-hidden="true"></i> Domain Changelog
|
||||
<i class="fa-solid fa-history" aria-hidden="true"></i> Domain Changelog
|
||||
</button>
|
||||
{% endif %}
|
||||
{% if allow_user_remove_domain %}
|
||||
<div class="dropdown-divider"></div>
|
||||
<button type="button"class="dropdown-item btn-secondary button_delete" onclick="window.location.href='{{ url_for('domain.remove') }}'">
|
||||
<font color="red">
|
||||
<i class="fa-solid fa-trash"></i> Remove Domain
|
||||
</font>
|
||||
</button>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user