First shot at an AdminLTE dashboard
This commit is contained in:
13
admin/freeposte/templates/user/create.html
Normal file
13
admin/freeposte/templates/user/create.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}
|
||||
New user
|
||||
{% endblock %}
|
||||
|
||||
{% block subtitle %}
|
||||
{{ domain.name }}
|
||||
{% endblock %}
|
||||
|
||||
{% block box_content %}
|
||||
{{ wtf.quick_form(form) }}
|
||||
{% endblock %}
|
||||
9
admin/freeposte/templates/user/edit.html
Normal file
9
admin/freeposte/templates/user/edit.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{% extends "form.html" %}
|
||||
|
||||
{% block title %}
|
||||
Edit user
|
||||
{% endblock %}
|
||||
|
||||
{% block subtitle %}
|
||||
{{ user }}
|
||||
{% endblock %}
|
||||
1
admin/freeposte/templates/user/fetchmail.html
Normal file
1
admin/freeposte/templates/user/fetchmail.html
Normal file
@@ -0,0 +1 @@
|
||||
{% extends "working.html" %}
|
||||
9
admin/freeposte/templates/user/forward.html
Normal file
9
admin/freeposte/templates/user/forward.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{% extends "form.html" %}
|
||||
|
||||
{% block title %}
|
||||
Forward emails
|
||||
{% endblock %}
|
||||
|
||||
{% block subtitle %}
|
||||
{{ user }}
|
||||
{% endblock %}
|
||||
42
admin/freeposte/templates/user/list.html
Normal file
42
admin/freeposte/templates/user/list.html
Normal file
@@ -0,0 +1,42 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}
|
||||
User list
|
||||
{% endblock %}
|
||||
|
||||
{% block subtitle %}
|
||||
{{ domain.name }}
|
||||
{% endblock %}
|
||||
|
||||
{% block main_action %}
|
||||
<a class="btn btn-primary" href="{{ url_for('user_create', domain_name=domain.name) }}">Add user</a>
|
||||
{% endblock %}
|
||||
|
||||
{% block box %}
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Actions</th>
|
||||
<th>Address</th>
|
||||
<th>Forward</th>
|
||||
<th>Quota</th>
|
||||
</tr>
|
||||
{% for user in domain.users %}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ url_for('user_settings', user_email=user.get_id()) }}" title="Settings"><i class="fa fa-wrench"></i></a>
|
||||
<a href="{{ url_for('user_password', user_email=user.get_id()) }}" title="Update password"><i class="fa fa-lock"></i></a>
|
||||
<a href="{{ url_for('user_forward', user_email=user.get_id()) }}" title="Auto-forward"><i class="fa fa-share"></i></a>
|
||||
<a href="{{ url_for('user_vacation', user_email=user.get_id()) }}" title="Vacation"><i class="fa fa-plane"></i></a>
|
||||
<a href="{{ url_for('user_fetchmail', user_email=user.get_id()) }}" title="Fetched accounts"><i class="fa fa-download"></i></a>
|
||||
<a href="{{ url_for('user_edit', user_email=user.get_id()) }}" title="Edit"><i class="fa fa-pencil"></i></a>
|
||||
<a href="{{ url_for('user_delete', user_email=user.get_id()) }}" title="Delete"><i class="fa fa-trash"></i></a>
|
||||
</td>
|
||||
<td>{{ user }}</td>
|
||||
<td>{{ user.forward or '-' }}</td>
|
||||
<td>{{ user.quota_bytes | filesizeformat }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock %}
|
||||
9
admin/freeposte/templates/user/password.html
Normal file
9
admin/freeposte/templates/user/password.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{% extends "form.html" %}
|
||||
|
||||
{% block title %}
|
||||
Password update
|
||||
{% endblock %}
|
||||
|
||||
{% block subtitle %}
|
||||
{{ user }}
|
||||
{% endblock %}
|
||||
1
admin/freeposte/templates/user/settings.html
Normal file
1
admin/freeposte/templates/user/settings.html
Normal file
@@ -0,0 +1 @@
|
||||
{% extends "working.html" %}
|
||||
1
admin/freeposte/templates/user/vacation.html
Normal file
1
admin/freeposte/templates/user/vacation.html
Normal file
@@ -0,0 +1 @@
|
||||
{% extends "working.html" %}
|
||||
Reference in New Issue
Block a user