{% extends "admin_base.html" %} {% from "publish/inc_field_macros.html" import input, help, disp_class with context %} {% block copyright %} {% endblock %} {% block extra_head %} {{ super() }} {% if settings.DEBUG %} {% else %} {% endif%} {% endblock %} {% set body_id = 'template_edit' %} {% set page_heading = 'Edit template' if user else 'Add template' %} {% block body %} {{ super() }}
{% if err_msg %}
{{ err_msg|newlines }}
{% else %} {% set form_method = 'put' if template else 'post' %} {% set form_action = url_for('api.admin-template', template_id=template.id) if template else url_for('api.admin-template') %} {% set allow_edit = is_permitted(SystemPermission.PERMIT_SUPER_USER) %} {% set disabled = 'disabled="disabled"'|safe %}


Template options

All values are optional and can be left blank. {% if app_edition() == 'Standard' %} Items marked with a Premium Edition icon are only supported in the Premium Edition. {% endif %} {% include "publish/inc_common_fields.html" %}
{{ input(fields, field_values, supported_fields, 'expiry_secs') }} seconds {{ help('option_expires') }}
{% include "inc_preview_popup.html" %} {% endif %} {% endblock %}