{% if section is not defined and sectionId is defined %} {% set section = blx.sections.id(sectionId).first %} {% if not section %}{% exit 404 %}{% endif %} {% endif %} {% extends "settings/sections/_edit/layout" %} {% set tab = 'settings' %} {% import "_includes/forms" as forms %} {% set isNewSection = (section is not defined or not section.id) %} {% set content %}
{% endset %} {% set js %} {% if section is not defined or not section.handle %}new Blocks.ui.HandleGenerator('#name', '#handle');{% endif %} {% if section is not defined or not section.urlFormat %}new Blocks.ui.EntryUrlFormatGenerator('#name', '#urlFormat');{% endif %} {% endset %} {% includeJs js %}