<%inherit file="/instance/settings.html" />
<%namespace name="forms" file="/forms.html"/>
<%namespace name="components" file="/components.html"/>


<%block name="settings_content">
<form name="create_instance" class="well" method="POST">

    ${components.flashmessages()}
    <h2>${c.settings_menu.current['label']}</h2>
    <input type="hidden" name="_method" value="PUT" />
    ${h.field_token()|n}

    <h3>${_('Collecting ideas')}</h3>

    ${forms.checkbox(_("Show proposals navigation item"), 'show_proposals_navigation', help=_("Show proposals as an extra tab"), autofocus=True)}

    ${components.hidden_badge_table(c.delegateable_badge_tables, 'proposal', _(u'proposal badges'))}
    ${components.hidden_badge_table(c.thumbnail_badge_tables, 'status', _(u'status badges'))}

    <h3>${_('Collaboratively drafting texts')}</h3>

    ${forms.checkbox(_("Enable norms"), 'use_norms', help=_("Unlike proposals, norms are documents that you introduce to be discussed on the platform."))}
    <div style="padding-left: 2em">
        ${forms.checkbox(_("Allow members to propose norms"), 'allow_propose')}
        ${forms.checkbox(_("Allow members to change norms from within proposals"), 'allow_propose_changes', help=_("Members will be able to propose changes of the norms you introduce."))}
        ${forms.checkbox(_("Show norms navigation item"), 'show_norms_navigation', help=_("Show norms as an extra tab"))}
    </div>

    ${components.savebox(h.base_url("/instance/%s" % c.page_instance.key))}

</form>
</%block>
