${_('Default ip whitelist for all users')}

%if c.user_ip_map: %for ip in c.user_ip_map: %endfor %else: %endif
${ip.ip_addr}
${h.ip_range(ip.ip_addr)}
${h.form(url('edit_user_ips', id=c.user.user_id),method='delete')} ${h.hidden('del_ip_id',ip.ip_id)} ${h.hidden('default_user', 'True')} ${h.submit('remove_',_('delete'),id="remove_ip_%s" % ip.ip_id, class_="action_button", onclick="return confirm('"+_('Confirm to delete this ip: %s') % ip.ip_addr+"');")} ${h.end_form()}
${_('All IP addresses are allowed')}
${h.form(url('edit_user_ips', id=c.user.user_id),method='put')}
${h.hidden('default_user', 'True')} ${h.text('new_ip', class_='medium')}
${h.submit('save',_('Add'),class_="btn")} ${h.reset('reset',_('Reset'),class_="btn")}
${h.end_form()}