- Added 'Register ...' functionality to overviews. ==> No more separate menu items...
This commit is contained in:
@@ -7,10 +7,14 @@
|
||||
{% block content_description %}Select the domain you'd like to action upon{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form action="{{ url_for('user_bp.handle_tenant_domain_action') }}" method="POST">
|
||||
<form action="{{ url_for('user_bp.handle_tenant_domain_action') }}" method="POST" id="tenantDomainsForm">
|
||||
{{ render_selectable_table(headers=["ID", "Domain Name", "Valid To"], rows=rows, selectable=True, id="tenantDomainsTable") }}
|
||||
<div class="form-group mt-3">
|
||||
<button type="submit" name="action" value="edit_tenant_domain" class="btn btn-primary">Edit Selected Domain</button>
|
||||
<div class="form-group mt-3 d-flex justify-content-between">
|
||||
<div>
|
||||
<button type="submit" name="action" value="edit_tenant_domain" class="btn btn-primary" onclick="return validateTableSelection('tenantDomainsForm')">Edit Selected Domain</button>
|
||||
</div>
|
||||
<button type="submit" name="action" value="create_tenant_domain" class="btn btn-success">Register Domain</button>
|
||||
|
||||
<!-- Additional buttons can be added here for other actions -->
|
||||
</div>
|
||||
</form>
|
||||
@@ -21,30 +25,4 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
{#<script>#}
|
||||
{#$(document).ready(function() {#}
|
||||
{# $('#tenantDomainsTable').DataTable({#}
|
||||
{# 'columnDefs': [#}
|
||||
{# {#}
|
||||
{# 'targets': 0,#}
|
||||
{# 'searchable': false,#}
|
||||
{# 'orderable': false,#}
|
||||
{# 'className': 'dt-body-center',#}
|
||||
{# 'render': function (data, type, full, meta) {#}
|
||||
{# return '<input type="radio" name="user_id" value="' + $('<div/>').text(data).html() + '">';#}
|
||||
{# }#}
|
||||
{# },#}
|
||||
{# {#}
|
||||
{# 'targets': 1,#}
|
||||
{# 'orderable': true,#}
|
||||
{# },#}
|
||||
{# {#}
|
||||
{# 'targets': 2,#}
|
||||
{# 'orderable': true,#}
|
||||
{# },#}
|
||||
{# ],#}
|
||||
{# 'order': [[1, 'asc']]#}
|
||||
{# });#}
|
||||
{#});#}
|
||||
{#</script>#}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user