mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-01-02 08:25:40 +00:00
Remove DNSSEC modal. Adjustment in domain table css
This commit is contained in:
parent
5df7fe445f
commit
f172a64ddd
@ -125,16 +125,6 @@
|
|||||||
<div class="box-header">
|
<div class="box-header">
|
||||||
<h3 class="box-title">Hosted Domains</h3>
|
<h3 class="box-title">Hosted Domains</h3>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-header -->
|
|
||||||
<!--
|
|
||||||
{% if current_user.role.name == 'Administrator' %}
|
|
||||||
<div class="box-body">
|
|
||||||
<button type="button" class="btn btn-flat btn-primary" onclick="window.location.href='{{ url_for('domain_add') }}'">
|
|
||||||
New Domain <i class="fa fa-plus"></i>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
-->
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<table id="tbl_domain_list" class="table table-bordered table-striped">
|
<table id="tbl_domain_list" class="table table-bordered table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
@ -144,7 +134,7 @@
|
|||||||
<th>Type</th>
|
<th>Type</th>
|
||||||
<th>Serial</th>
|
<th>Serial</th>
|
||||||
<th>Master</th>
|
<th>Master</th>
|
||||||
<th {% if current_user.role.name !='Administrator' %}width="6%"{% else %}width="20%"{% endif %}>Action</th>
|
<th {% if current_user.role.name !='Administrator' %}width="6%"{% else %}width="25%"{% endif %}>Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -199,10 +189,6 @@
|
|||||||
$('#modal-code-content').html(json_library.prettyPrint(info));
|
$('#modal-code-content').html(json_library.prettyPrint(info));
|
||||||
modal.modal('show');
|
modal.modal('show');
|
||||||
});
|
});
|
||||||
$(document.body).on("click", ".button_dnssec", function() {
|
|
||||||
var domain = $(this).prop('id');
|
|
||||||
getdnssec($SCRIPT_ROOT + '/domain/' + domain + '/dnssec');
|
|
||||||
});
|
|
||||||
|
|
||||||
$(document.body).on("click", ".button_template", function (e) {
|
$(document.body).on("click", ".button_template", function (e) {
|
||||||
var modal = $("#modal_template");
|
var modal = $("#modal_template");
|
||||||
@ -253,30 +239,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- /.modal-dialog -->
|
<!-- /.modal-dialog -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.modal -->
|
|
||||||
<div class="modal fade" id="modal_dnssec_info">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal"
|
|
||||||
aria-label="Close">
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
</button>
|
|
||||||
<h4 class="modal-title">DNSSEC</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<p></p>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-flat btn-default pull-right"
|
|
||||||
data-dismiss="modal">Close</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- /.modal-content -->
|
|
||||||
</div>
|
|
||||||
<!-- /.modal-dialog -->
|
|
||||||
</div>
|
|
||||||
<!-- /.modal -->
|
|
||||||
<div class="modal fade modal-primary" id="modal_template">
|
<div class="modal fade modal-primary" id="modal_template">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
|
@ -4,13 +4,9 @@
|
|||||||
|
|
||||||
{% macro dnssec(domain) %}
|
{% macro dnssec(domain) %}
|
||||||
{% if domain.dnssec %}
|
{% if domain.dnssec %}
|
||||||
<button type="button" class="btn btn-flat dnssec btn-success button_dnssec" id="{{ domain.name }}" style="width:100%;">
|
<td><span class="label label-success"><i class="fa fa-lock-alt"></i> Enabled</span></td>
|
||||||
<i class="fa fa-lock"></i> Enabled
|
|
||||||
</button>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<button type="button" class="btn btn-flat dnssec button_dnssec" id="{{ domain.name }}" style="width:100%;">
|
<td><span class="label label-primary"><i class="fa fa-unlock-alt"></i> Disabled</span></td>
|
||||||
<i class="fa fa-unlock-alt"></i> Disabled
|
|
||||||
</button>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user