{# Copyright 2020 Karlsruhe Institute of Technology # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #} {% extends "templates/manage_template_base.html" %} {% block breadcrumbs %} {{ super() }} {% snippet "breadcrumb", url=url_for("templates.view_template", id=template.id), title=template.title %} {% snippet "breadcrumb", url=url_for("templates.edit_template", id=template.id), title=title %} {% endblock %} {% block content %} {% snippet "back_to_template", _module="templates", template=template, tab="overview" %}
{{ render_csrf() }} {% snippet "resources/submit", resource=template, form=form, delete_text=_("Delete template"), pos="top" %}
{% trans %}Metadata{% endtrans %}
{% trans %}The metadata of the template itself.{% endtrans %}
{% include "templates/snippets/base_template_form.html" %}
{% trans %}Template data{% endtrans %}
{% trans %}The actual content of this template, depending on its type.{% endtrans %}
{% include "templates/snippets/{}_template_form.html".format(template.type) %} {% snippet "resources/submit", resource=template, form=form, delete_text=_("Delete template"), pos="bottom" %}
{{ render_csrf() }}
{% endblock %} {% block scripts %} {% endblock %}