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 %}
|
|
|
|
<p>
|
2019-11-16 00:51:42 +01:00
|
|
|
<a href="{{ url_for('admin.license_list') }}">Back to list</a> |
|
|
|
|
<a href="{{ url_for('admin.create_edit_license') }}">New License</a>
|
2018-05-27 18:11:02 +02:00
|
|
|
</p>
|
|
|
|
|
|
|
|
{% from "macros/forms.html" import render_field, render_submit_field %}
|
|
|
|
<form method="POST" action="" enctype="multipart/form-data">
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
|
2018-07-28 18:26:28 +02:00
|
|
|
{{ render_field(form.name) }}
|
|
|
|
{{ render_field(form.is_foss) }}
|
2018-05-27 18:11:02 +02:00
|
|
|
{{ render_submit_field(form.submit) }}
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|