{# 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.edit_template", id=template.id), title=title %} {% endblock %} {% block content %}
{% include "templates/snippets/manage_template_menu.html" %}
{{ render_csrf() }}
{% 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) %}
{% if has_permission(current_user, "delete", "template", template.id) %} {% endif %}
{{ render_csrf() }}
{% endblock %} {% block scripts %} {% endblock %}