<%inherit file="/template.html" /> <%namespace name="components" file="/components.html"/> <%namespace name="forms" file="/forms.html"/> <%def name="title()">${_("New page")} <%def name="breadcrumbs()"> ${h.page.breadcrumbs(None)|n} » ${_("New page")} <%block name="headline">

${_(u"Add section to %s") % c.parent.title if c.section else _("Create norm")}

<%block name="main_content">
${h.field_token()|n} %if c.proposal: %endif %if c.section: %endif
%if c.section: %else:
${_("Norm title")}
%endif %if not c.section:
${_("Category")}
%endif
${_(u"Section content") if c.section else _(u"Norm content")}
%if h.config.get_bool('adhocracy.page.allow_abstracts') and c.instance.page_index_as_tiles and not c.section: <%forms:textarea label="${_('Abstract')}" name="abstract" value="" help="${_(u'Page abstract. This is only used if a page is displayed as a tile.')}"> %endif
${forms.checkbox(_("Use as a container for other norms"), 'container')} %if not c.section:
%endif
<%doc> # uncomment this when it is actually used
%if c.instance.page_index_as_tiles and not c.section: %endif %if c.section: %else:
<% h.need.autocomplete %> ${_("Tag and classify")}
%endif %if c.section: %else: ${tiles.page.select_page(field_name="parent", functions=model.Page.PARENT_FUNCTIONS)} ${_("The new norm will be categorized under the specified parent theme.")} %endif %if not c.section: %if c.instance.milestones: ${tiles.milestone.select(None)} %endif %endif
%if c.section: ${components.savebox(h.entity_url(c.parent))} %else: ${components.savebox(h.base_url('/page'))} %endif
${components.form_watch(None, checked=True)}