mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-09 15:10:27 +00:00
Completed first-found updates for the API keys list view.
This commit is contained in:
parent
4a12d62828
commit
db70e34c98
@ -1,22 +1,13 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% set active_page = "admin_keys" %}
|
||||
|
||||
{% block title %}
|
||||
<title>
|
||||
Key Management - {{ SITE_NAME }}
|
||||
</title>
|
||||
{% endblock %}
|
||||
{% block title %}<title>API Keys - {{ SITE_NAME }}</title>{% endblock %}
|
||||
|
||||
{% block dashboard_stat %}
|
||||
<div class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1 class="m-0 text-dark">
|
||||
API Keys
|
||||
<small>Management</small>
|
||||
</h1>
|
||||
<h1 class="m-0 text-dark">API Keys</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
@ -34,15 +25,19 @@
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<div class="card-header with-border">
|
||||
<h3 class="card-title">Key Management</h3>
|
||||
<h3 class="card-title">API Keys</h3>
|
||||
<div class="card-tools">
|
||||
<a href="{{ url_for('admin.edit_key') }}">
|
||||
<button type="button" class="btn btn-primary float-right button_add_key">
|
||||
<i class="fa-solid fa-plus"></i> Add Key
|
||||
<button type="button" class="btn btn-primary float-right button_add_key" title="Create Key">
|
||||
<i class="fa-solid fa-plus"></i> Create Key
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="tbl_keys" class="table table-bordered table-striped">
|
||||
<!-- /.card-tools -->
|
||||
</div>
|
||||
<!-- /.card-header -->
|
||||
<div class="card-body table-responsive">
|
||||
<table id="tbl_keys" class="table table-bordered table-striped table-hover table-sm records">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
@ -59,19 +54,24 @@
|
||||
<td>{{ key.id }}</td>
|
||||
<td>{{ key.role.name }}</td>
|
||||
<td>{{ key.description }}</td>
|
||||
<td>{% for domain in key.domains %}{{ domain.name }}{% if not loop.last %}, {% endif %}{% endfor %}</td>
|
||||
<td>{% for account in key.accounts %}{{ account.name }}{% if not loop.last %}, {% endif %}{% endfor %}</td>
|
||||
<td width="15%">
|
||||
<td>{% for domain in key.domains %}{{ domain.name }}{% if not loop.last %},
|
||||
{% endif %}{% endfor %}</td>
|
||||
<td>{% for account in key.accounts %}{{ account.name }}{% if not loop.last %},
|
||||
{% endif %}{% endfor %}</td>
|
||||
<td>
|
||||
<div class="dropdown">
|
||||
<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 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>
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenu">
|
||||
<button type="button" class="dropdown-item btn-warning" onclick="window.location.href='{{ url_for('admin.edit_key', key_id=key.id) }}'">
|
||||
<button type="button" class="dropdown-item btn-warning"
|
||||
onclick="window.location.href='{{ url_for('admin.edit_key', key_id=key.id) }}'">
|
||||
<i class="fa-solid fa-edit"></i> Edit API Key
|
||||
</button>
|
||||
<div class="dropdown-divider"></div>
|
||||
<button type="button"class="dropdown-item btn-secondary button_delete" id="{{ key.id }}">
|
||||
<button type="button" class="dropdown-item btn-secondary button_delete"
|
||||
id="{{ key.id }}">
|
||||
<font color="red">
|
||||
<i class="fa-solid fa-trash"></i> Delete API Key
|
||||
</font>
|
||||
@ -84,8 +84,11 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- /.card-body -->
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
<!-- /.container-fluid -->
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user