% if request.is_xhr:
${_('Add Sender to a list')}
<%include file="/includes/flash.html"/>
${h.form(url(controller='lists', action='new'), id="list-form", method='post')} <%include file="/forms/ajaxformbase.html"/>
${h.checkbox('iptoggle', label=_('Use IP address'))}
${h.checkbox('domaintoggle', label=_('Use Domain'))}
${h.submit('submit', _('Add to list'), id="ajaxsubmit")}
${h.end_form()}
% else:

${_('Add sender to a list')}

${h.form(url(controller='lists', action='new'), id="list-form", method='post')} <%include file="/forms/base.html"/>
 
  ${h.submit('submit', _('Add to list'))}
${h.end_form()}
% endif <%def name="title()"> ${_('Adding to list')} <%def name="heading()"> ${_('Adding to Lists')} <%def name="submenu()"> <%def name="headers()"> <%def name="localscripts()"> <%inherit file="${None if context.get('c').is_ajax else '/base.html'}"/>