<%inherit file="/base/base.mako"/>

<%def name="title()"> ${_('Add user')} %if c.rhodecode_name: · ${h.branding(c.rhodecode_name)} %endif <%def name="breadcrumbs_links()"> ${h.link_to(_('Admin'),h.route_path('admin_home'))} » ${h.link_to(_('Users'),h.route_path('users'))} » ${_('Add User')}

<%def name="menu_bar_nav()"> ${self.menu_items(active='admin')}

<%def name="main()">
${self.breadcrumbs()}
${h.secure_form(h.route_path('users_create'), request=request)}
${_('Username')}:
${h.text('username', class_='medium')}
${_('Password')}:
${h.password('password', class_='medium')} ## install this hidden field so password mismatch will correctly attach error message here ${h.hidden('new_password')}
${_('Password confirmation')}:
${h.password('password_confirmation',autocomplete="off", class_='medium')}
${_('Generate password')}
${_('First Name')}:
${h.text('firstname', class_='medium')}
${_('Last Name')}:
${h.text('lastname', class_='medium')}
${_('Email')}:
${h.text('email', class_='medium')} ${h.hidden('extern_name', c.default_extern_type)} ${h.hidden('extern_type', c.default_extern_type)}
${_('Active')}:
${h.checkbox('active',value=True,checked='checked')}
${_('Password change')}:
${h.checkbox('password_change',value=True)} ${_('Force user to change his password on the next login')}
${_('Add personal repository group')}:
${h.checkbox('create_repo_group',value=True, checked=c.default_create_repo_group)} ${_('New group will be created at: `/{path}`').format(path=c.personal_repo_group_name)}
${_('User will be automatically set as this group owner.')}
${h.submit('save',_('Create User'),class_="btn")}
${h.end_form()}