%if c.default_user_ip_map: %for ip in c.default_user_ip_map: %endfor %endif %if c.user_ip_map: %for ip in c.user_ip_map: %endfor %endif %if not c.default_user_ip_map and not c.user_ip_map: %endif
${ip.ip_addr}
${h.ip_range(ip.ip_addr)}
${h.HTML(_('Inherited from %s')) % h.link_to('*default*',h.url('admin_permissions_ips'))}
${ip.ip_addr}
${h.ip_range(ip.ip_addr)}
${h.form(url('edit_user_ips_delete', id=c.user.user_id))} ${h.hidden('del_ip_id',ip.ip_id)} ${h.submit('remove_',_('Delete'),id="remove_ip_%s" % ip.ip_id, class_="btn btn-default btn-xs", onclick="return confirm('"+_('Confirm to delete this IP address: %s') % ip.ip_addr+"');")} ${h.end_form()}
${_('All IP addresses are allowed.')}
${h.form(url('edit_user_ips_update', id=c.user.user_id))}
${h.text('new_ip', class_='form-control')}
${h.submit('save',_('Add'),class_="btn btn-default")} ${h.reset('reset',_('Reset'),class_="btn btn-default")}
${h.end_form()}