user_edit.html
149 lines
| 4.8 KiB
| text/html
|
HtmlLexer
r547 | ## -*- coding: utf-8 -*- | |||
<%inherit file="/base/base.html"/> | ||||
<%def name="title()"> | ||||
r619 | ${_('Edit user')} ${c.user.username} - ${c.rhodecode_name} | |||
r547 | </%def> | |||
<%def name="breadcrumbs_links()"> | ||||
${h.link_to(_('Admin'),h.url('admin_home'))} | ||||
» | ||||
${h.link_to(_('Users'),h.url('users'))} | ||||
» | ||||
${_('edit')} "${c.user.username}" | ||||
</%def> | ||||
<%def name="page_nav()"> | ||||
${self.menu('admin')} | ||||
</%def> | ||||
<%def name="main()"> | ||||
r889 | <div class="box box-left"> | |||
r547 | <!-- box / title --> | |||
<div class="title"> | ||||
${self.breadcrumbs()} | ||||
</div> | ||||
<!-- end box / title --> | ||||
r1266 | ${h.form(url('update_user', id=c.user.user_id),method='put')} | |||
r547 | <div class="form"> | |||
r1116 | <div class="field"> | |||
<div class="gravatar_box"> | ||||
<div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(c.user.email)}"/></div> | ||||
<p> | ||||
Augusto Herrmann
|
r1472 | <strong>${_('Change your avatar at')} <a href="http://gravatar.com">gravatar.com</a></strong><br/> | ||
r1116 | ${_('Using')} ${c.user.email} | |||
</p> | ||||
</div> | ||||
</div> | ||||
<div class="field"> | ||||
<div class="label"> | ||||
<label>${_('API key')}</label> ${c.user.api_key} | ||||
</div> | ||||
</div> | ||||
r547 | <div class="fields"> | |||
<div class="field"> | ||||
<div class="label"> | ||||
<label for="username">${_('Username')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
r889 | ${h.text('username',class_='medium')} | |||
r547 | </div> | |||
</div> | ||||
<div class="field"> | ||||
<div class="label"> | ||||
Thayne Harbaugh
|
r991 | <label for="ldap_dn">${_('LDAP DN')}:</label> | ||
</div> | ||||
<div class="input"> | ||||
r1116 | ${h.text('ldap_dn',class_='medium')} | |||
Thayne Harbaugh
|
r991 | </div> | ||
</div> | ||||
<div class="field"> | ||||
<div class="label"> | ||||
r547 | <label for="new_password">${_('New password')}:</label> | |||
</div> | ||||
<div class="input"> | ||||
r1366 | ${h.password('new_password',class_='medium',autocomplete="off")} | |||
r547 | </div> | |||
</div> | ||||
<div class="field"> | ||||
<div class="label"> | ||||
r697 | <label for="name">${_('First Name')}:</label> | |||
r547 | </div> | |||
<div class="input"> | ||||
r889 | ${h.text('name',class_='medium')} | |||
r547 | </div> | |||
</div> | ||||
<div class="field"> | ||||
<div class="label"> | ||||
r697 | <label for="lastname">${_('Last Name')}:</label> | |||
r547 | </div> | |||
<div class="input"> | ||||
r889 | ${h.text('lastname',class_='medium')} | |||
r547 | </div> | |||
</div> | ||||
<div class="field"> | ||||
<div class="label"> | ||||
<label for="email">${_('Email')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
r889 | ${h.text('email',class_='medium')} | |||
r547 | </div> | |||
</div> | ||||
<div class="field"> | ||||
<div class="label label-checkbox"> | ||||
<label for="active">${_('Active')}:</label> | ||||
</div> | ||||
<div class="checkboxes"> | ||||
${h.checkbox('active',value=True)} | ||||
</div> | ||||
</div> | ||||
<div class="field"> | ||||
<div class="label label-checkbox"> | ||||
<label for="admin">${_('Admin')}:</label> | ||||
</div> | ||||
<div class="checkboxes"> | ||||
${h.checkbox('admin',value=True)} | ||||
</div> | ||||
</div> | ||||
<div class="buttons"> | ||||
Augusto Herrmann
|
r1472 | ${h.submit('save',_('Save'),class_="ui-button")} | ||
${h.reset('reset',_('Reset'),class_="ui-button")} | ||||
r547 | </div> | |||
</div> | ||||
</div> | ||||
${h.end_form()} | ||||
r889 | </div> | |||
<div class="box box-right"> | ||||
<!-- box / title --> | ||||
<div class="title"> | ||||
<h5>${_('Permissions')}</h5> | ||||
</div> | ||||
r1266 | ${h.form(url('user_perm', id=c.user.user_id),method='put')} | |||
r1116 | <div class="form"> | |||
<!-- fields --> | ||||
<div class="fields"> | ||||
<div class="field"> | ||||
<div class="label label-checkbox"> | ||||
<label for="">${_('Create repositories')}:</label> | ||||
</div> | ||||
<div class="checkboxes"> | ||||
r1266 | ${h.checkbox('create_repo_perm',value=True)} | |||
r1116 | </div> | |||
</div> | ||||
<div class="buttons"> | ||||
Augusto Herrmann
|
r1472 | ${h.submit('save',_('Save'),class_="ui-button")} | ||
${h.reset('reset',_('Reset'),class_="ui-button")} | ||||
r1116 | </div> | |||
</div> | ||||
</div> | ||||
${h.end_form()} | ||||
r889 | </div> | |||
Thayne Harbaugh
|
r991 | </%def> | ||