diff options
| author | rubenwardy <rw@rubenwardy.com> | 2019-01-28 23:49:27 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2019-01-28 23:49:27 +0000 |
| commit | 0e5c1f83ff72e5d3a8a45d8874595c8390c5262f (patch) | |
| tree | 32cd688399361a75392c6e94eaec1ed7e8d0c8dd /app/templates/admin | |
| parent | f112756b04f9038cfef950b7a8bafc4d4ad95346 (diff) | |
| download | cheatdb-0e5c1f83ff72e5d3a8a45d8874595c8390c5262f.tar.xz | |
Add MinetestRelease editor
Diffstat (limited to 'app/templates/admin')
| -rw-r--r-- | app/templates/admin/list.html | 1 | ||||
| -rw-r--r-- | app/templates/admin/versions/edit.html | 25 | ||||
| -rw-r--r-- | app/templates/admin/versions/list.html | 16 |
3 files changed, 42 insertions, 0 deletions
diff --git a/app/templates/admin/list.html b/app/templates/admin/list.html index d4e4da6..4e2d70f 100644 --- a/app/templates/admin/list.html +++ b/app/templates/admin/list.html @@ -9,6 +9,7 @@ <li><a href="{{ url_for('user_list_page') }}">User list</a></li> <li><a href="{{ url_for('tag_list_page') }}">Tag Editor</a></li> <li><a href="{{ url_for('license_list_page') }}">License Editor</a></li> + <li><a href="{{ url_for('version_list_page') }}">Version Editor</a></li> <li><a href="{{ url_for('switch_user_page') }}">Sign in as another user</a></li> </ul> diff --git a/app/templates/admin/versions/edit.html b/app/templates/admin/versions/edit.html new file mode 100644 index 0000000..ea84c11 --- /dev/null +++ b/app/templates/admin/versions/edit.html @@ -0,0 +1,25 @@ +{% extends "base.html" %} + +{% block title %} + {% if version %} + Edit {{ version.name }} + {% else %} + New Minetest Version + {% endif %} +{% endblock %} + +{% block content %} + <p> + <a href="{{ url_for('version_list_page') }}">Back to list</a> | + <a href="{{ url_for('createedit_version_page') }}">New Version</a> + </p> + + {% from "macros/forms.html" import render_field, render_submit_field %} + <form method="POST" action="" enctype="multipart/form-data"> + {{ form.hidden_tag() }} + + {{ render_field(form.name) }} + {{ render_field(form.protocol) }} + {{ render_submit_field(form.submit) }} + </form> +{% endblock %} diff --git a/app/templates/admin/versions/list.html b/app/templates/admin/versions/list.html new file mode 100644 index 0000000..cf0e9d4 --- /dev/null +++ b/app/templates/admin/versions/list.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} + +{% block title %} +Minetest Versions +{% endblock %} + +{% block content %} + <p> + <a href="{{ url_for('createedit_version_page') }}">New Tag</a> + </p> + <ul> + {% for v in versions %} + <li><a href="{{ url_for('createedit_version_page', name=v.name) }}">{{ v.name }}</a></li> + {% endfor %} + </ul> +{% endblock %} |
