First shot at an AdminLTE dashboard

This commit is contained in:
Pierre Jaury
2016-03-19 20:37:48 +01:00
parent 3302921cee
commit 4576e1f5c2
48 changed files with 1204 additions and 60 deletions

View File

@@ -0,0 +1,9 @@
{% extends "form.html" %}
{% block title %}
Create alias
{% endblock %}
{% block subtitle %}
{{ domain }}
{% endblock %}

View File

@@ -0,0 +1,9 @@
{% extends "form.html" %}
{% block title %}
Edit alias
{% endblock %}
{% block subtitle %}
{{ alias }}
{% endblock %}

View File

@@ -0,0 +1,35 @@
{% extends "base.html" %}
{% block title %}
Alias list
{% endblock %}
{% block subtitle %}
{{ domain.name }}
{% endblock %}
{% block main_action %}
<a class="btn btn-primary" href="{{ url_for('alias_create', domain_name=domain.name) }}">Add alias</a>
{% endblock %}
{% block box %}
<table class="table table-bordered">
<tbody>
<tr>
<th>Actions</th>
<th>Address</th>
<th>Destination</th>
</tr>
{% for alias in domain.aliases %}
<tr>
<td>
<a href="{{ url_for('alias_edit', alias=alias.get_id()) }}" title="Edit"><i class="fa fa-pencil"></i></a>&nbsp;
<a href="{{ url_for('alias_delete', alias=alias.get_id()) }}" title="Delete"><i class="fa fa-trash"></i></a>
</td>
<td>{{ alias }}</td>
<td>{{ alias.destination or '-' }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}