{% include 'formMacros.html' %}

{% block action %}New Page{% endblock %}

{{ formText('title', 'Title') }} {# JS will populate it #} {{ formSelect('type', 'Type', []) }} {{ formBoolean('published', 'Published') }} {{ formText('seoDescription', 'SEO Description', { limit: 155 }) }} {# PERMISSIONS #} {# Toggles open apos-view-permissions #}
Who can see this?
{# js shows this class when "Certain People" is chosen #}
{{ formSelective('viewGroupIds', 'Groups', { propagate: true }) }} {{ formSelective('viewPersonIds', 'Individuals', { propagate: true }) }}

Admins can always see everything.

{# This outer div is for hiding the entirety of edit permissions via JS. -Tom #}
{# Toggles open apos-edit-permissions #}
Who can edit this?
{{ formSelective('editGroupIds', 'Groups', { propagate: true }) }} {{ formSelective('editPersonIds', 'Individuals', { propagate: true }) }} {# This won't be true for some site somewhere, give it a class #}

Admins can always edit everything.

{# END PERMISSIONS #} {# We don't allow the slug to be edited for a brand new post, #} {# but provide a block the edit template can override #} {% block slug %} {% endblock %} {{ formTags('tags', 'Tags') }} {# js populates this as needed, for instance blog pages have extra settings #}