diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-07-28 17:26:28 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-07-28 17:26:28 +0100 |
| commit | 514a24e2c41686e91df25970b2b624d767c94c18 (patch) | |
| tree | 65ce40f5653d7e518f4dbb697b6891d8023cfdd2 /app/templates/admin/licenses/edit.html | |
| parent | 742a327cbbcd0f8cd19de337e51780f8478acbb1 (diff) | |
| download | cheatdb-514a24e2c41686e91df25970b2b624d767c94c18.tar.xz | |
Add license editor
Diffstat (limited to 'app/templates/admin/licenses/edit.html')
| -rw-r--r-- | app/templates/admin/licenses/edit.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app/templates/admin/licenses/edit.html b/app/templates/admin/licenses/edit.html new file mode 100644 index 0000000..c68b17f --- /dev/null +++ b/app/templates/admin/licenses/edit.html @@ -0,0 +1,25 @@ +{% extends "base.html" %} + +{% block title %} + {% if license %} + Edit {{ license.name }} + {% else %} + New license + {% endif %} +{% endblock %} + +{% block content %} + <p> + <a href="{{ url_for('license_list_page') }}">Back to list</a> | + <a href="{{ url_for('createedit_license_page') }}">New License</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.is_foss) }} + {{ render_submit_field(form.submit) }} + </form> +{% endblock %} |
