contentdb/app/templates/admin/licenses/edit.html

25 lines
723 B
HTML
Raw Normal View History

2018-05-27 18:11:02 +02:00
{% extends "base.html" %}
{% block title %}
2018-07-28 18:26:28 +02:00
{% if license %}
Edit {{ license.name }}
2018-05-27 18:11:02 +02:00
{% else %}
2018-07-28 18:26:28 +02:00
New license
2018-05-27 18:11:02 +02:00
{% endif %}
{% endblock %}
{% block content %}
2020-07-12 21:32:32 +02:00
<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>
2018-05-27 18:11:02 +02:00
2021-07-31 22:03:45 +02:00
{% from "macros/forms.html" import render_field, render_checkbox_field, render_submit_field %}
2018-05-27 18:11:02 +02:00
<form method="POST" action="" enctype="multipart/form-data">
{{ form.hidden_tag() }}
2018-07-28 18:26:28 +02:00
{{ render_field(form.name) }}
2021-07-31 22:03:45 +02:00
{{ render_checkbox_field(form.is_foss) }}
{{ render_field(form.url) }}
2018-05-27 18:11:02 +02:00
{{ render_submit_field(form.submit) }}
</form>
{% endblock %}