<%inherit file="/template.html" />
<%namespace name="components" file="/components.html"/>
<%def name="title()">${c.poll.scope.label}</%def>

<%def name="breadcrumbs()">
    ${h.delegateble.breadcrumbs(c.poll.scope)|n} &raquo; ${_("End a poll")}
</%def>

<%block name="headline">
${tiles.poll.header(c.poll)|n}
</%block>


<%block name="main_content">
<form name="release_proposal" class="inplace" method="POST"
    action="${h.entity_url(c.poll)}">
    ${h.field_token()|n}
    <input type="hidden" name="_method" value="DELETE" />
    <div class="sidebar">&nbsp;</div>
    <div class="mainbar">
        <div class="warning_box">
            ${_("You are about to cancel this poll. This means that the " +
                "proposal will become editable again but that all votes " +
                "that have been cast at this time <strong>will be " +
                "invalidated</strong>.")|n}
        </div>

        <div class="input_wrapper submit">
            ${components.savebox(h.entity_url(c.poll), save_text=_('Confirm'))}
        </div>
    </div>
</form>
</%block>
