mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 14:32:25 +01:00
aae546a08e
Fixes #326
25 lines
723 B
HTML
25 lines
723 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
{% if license %}
|
|
Edit {{ license.name }}
|
|
{% else %}
|
|
New license
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<a class="btn btn-primary float-right" href="{{ url_for('admin.create_edit_license') }}">New License</a>
|
|
<a class="btn btn-secondary mb-4" href="{{ url_for('admin.license_list') }}">Back to list</a>
|
|
|
|
{% from "macros/forms.html" import render_field, render_checkbox_field, render_submit_field %}
|
|
<form method="POST" action="" enctype="multipart/form-data">
|
|
{{ form.hidden_tag() }}
|
|
|
|
{{ render_field(form.name) }}
|
|
{{ render_checkbox_field(form.is_foss) }}
|
|
{{ render_field(form.url) }}
|
|
{{ render_submit_field(form.submit) }}
|
|
</form>
|
|
{% endblock %}
|