<%inherit file="/template.html" />
<%namespace name="components" file="/components.html"/>
<%def name="title()">${_("Delete: %s") % c.page.title}</%def>

<%def name="breadcrumbs()">
    ${h.page.breadcrumbs(c.page)|n} &raquo; ${_("Delete")}
</%def>

<%block name="main_content">
<h2>${c.page.title}</h2>

<form name="ask_delete" class="inplace" method="POST"
    action="${h.entity_url(c.page, in_context=False)}">
    ${h.field_token()|n}
    <input type="hidden" name="_method" value="DELETE" />
    <input type="hidden" name="came_from" value="${c.came_from}"/>
    <div class="sidebar">
        &nbsp;
    </div>
    <div class="mainbar">
        <div class="warning_box">
            ${_("Are you sure you want to delete this page?")}
        </div>

        <div class="input_wrapper submit">
            %if c.section:
            ${components.savebox(h.entity_url(c.parent, anchor=u'subpage-%i' % c.page.id), save_text=_('Confirm'))}
            %else:
            ${components.savebox(h.entity_url(c.page), save_text=_('Confirm'))}
            %endif
        </div>
    </div>
</form>
</%block>
