Files
myriad/myriad/templates/manage/admin.html

73 lines
2.5 KiB
HTML

{% extends 'base.html' %}
{% block header %}
<div class="title">{% block title %}Site Administration{% endblock %}</div>
{% endblock %}
{% block content %}
<div class="container">
<div class="mobile">
<div class="heading">Manage Members</div>
<a href="{{ url_for('manage.new') }}">Add new member</a><br><br>
<a href="{{ url_for('manage.groups') }}">Manage groups</a><br><br>
<a href="{{ url_for('manage.assets') }}">Site assets</a>
</div>
<div class="heading">Front Log</div>
<div class="maintext">Front change history</div>
<div class="log">
{% for front in front_log %}
<p><b>{{ get_datetime_str(front[2]) }}</b> - {{ get_member(front[1])[3] }}{% if front[3] %} <i>(ended: {{ get_datetime_str(front[3]) }})</i> | <a class="danger" href="{{ url_for('manage.delete_front_log', fid=front[0]) }}">delete</a>{% endif %}</p>
{% endfor %}
</div>
<div class="heading">Backup</div>
<a href="{{ url_for('manage.export_system') }}">Export entire system as JSON</a> (without images)<br>
<a href="{{ url_for('manage.export_system_full') }}">Export entire system as ZIP</a> (with images)
<hr>
<div class="heading">Import system from JSON</div>
<p>You must only run full system imports on a fresh database</p>
<form method="post" enctype="multipart/form-data" id="json">
<input type="file" name="json">
<input type="submit" value="Upload JSON">
</form>
<hr>
<div class="heading">Import system from ZIP</div>
<p>You must only run full system imports on a fresh database</p>
<form method="post" enctype="multipart/form-data" id="zip">
<input type="file" name="zip">
<input type="submit" value="Upload ZIP">
</form>
<hr>
<div class="heading big pink">WIP ZONE</div>
<div class="heading">Site Users</div>
<div class="maintext">These are the usernames that can log in to the site</div>
{% for user in users %}
<p><b>{{ user[1] }}</b>{% if user[0]!=g.user[0] %} | <a>Delete user</a>{% endif %}</p>
{% endfor %}
<p><a>Add New User</a></p>
<div class="heading">Admin Log</div>
<div class="maintext">Actions taken by registered users</div>
<div class="heading">Site Theme</div>
<div class="maintext">Choose the overall theme for the site here</div>
<form>
<select name="theme" id="theme">
{% for theme in get_themes() %}
{% set theme_name = theme.split(".")[0] %}
<option value="{{theme_name}}">{{theme_name}}</option>
{% endfor %}
</select>
<input type="submit" value="Submit">
</form>
</div>
{% endblock %}