% if request.is_xhr:
<%include file="../includes/flash.html"/>
% endif
<div class="row-fluid">
	<div class="span1 hidden-phone"></div>
	<div class="span10">
		<h3 class="head smaller lighter blue">${_('Delete sender from a list')}</h3>
	</div>
	<div class="span1 hidden-phone"></div>
</div>
<div class="row-fluid">
	<div class="span1 hidden-phone"></div>
	<div class="span10">
		${h.form(url('list-delete', listid=c.id), id="list-form", method='post')}
		% if not hasattr(c, 'delflag'):
		<%include file="../forms/disabled.base.html"/>
		% endif
		<div class="form-actions">
			% if request.is_xhr:
			<button id="cancel-button" class="btn btn-small btn-success" type="reset"><i class="icon-undo"></i> ${_('Close')}</button>
			% else:
			&nbsp;
			% endif
			% if not hasattr(c, 'delflag'):
				<button id="submit-button" class="btn btn-small btn-success"><i class="icon-ok"></i> ${_('Delete from list')}</button>
			% endif
	    </div>
		${h.end_form()}
	</div>
	<div class="span1 hidden-phone"></div>
</div>


<%def name="title()">
${_('Delete from list')}
</%def>

<%def name="heading()">
${_('Delete from List')} 
</%def>

<%def name="submenu()">
<div class="navbar navbar-static-top">
    <div class="navbar-inner">
        <div class="nav-collapse collapse">
            <ul class="nav navbar-nav">
                <li class="nav_item">${h.link_to(_('Approved senders'), url('lists-index', list_type=1))}</li>
                <li class="nav_item">${h.link_to(_('Banned senders'), url('lists-index', list_type=2))}</li>
                <li class="nav_item">${h.link_to(_('Add to List'), url('lists-add'), id='list-add')}</li>
            </ul>
        </div>
    </div>
</div>
</%def>

<%def name="headers()">
</%def>
<%def name="localscripts()">
<script type="text/javascript">
$(function() {
	$('.settings-popover').popover();
});
</script>
</%def>
<%inherit file="${None if context.get('c').is_ajax else '../base.html'}"/>
