my_account_profile_edit.mako
75 lines
| 2.7 KiB
| application/x-mako
|
MakoHtmlLexer
r1282 | <%namespace name="base" file="/base/base.mako"/> | ||
<div class="panel panel-default user-profile"> | |||
<div class="panel-heading"> | |||
<h3 class="panel-title">${_('My Profile')}</h3> | |||
r1540 | <a href="${h.route_path('my_account_profile')}" class="panel-edit">Close</a> | ||
r1282 | </div> | ||
<div class="panel-body"> | |||
<% readonly = None %> | |||
<% disabled = "" %> | |||
Bartłomiej Wołyńczyk
|
r2592 | %if c.extern_type != 'rhodecode': | |
r1282 | <% readonly = "readonly" %> | ||
r4240 | <% disabled = " disabled" %> | ||
<div class="alert-warning" style="margin:0px 0px 20px 0px; padding: 10px"> | |||
<strong>${_('This user was created from external source (%s). Editing some of the settings is limited.' % c.extern_type)}</strong> | |||
</div> | |||
<div style="margin:-10px 0px 20px 0px;"> | |||
${_('For VCS access please generate')} | |||
<a href="${h.route_path('my_account_auth_tokens', _query={'token_role':'token_role_vcs'})}">Authentication Token</a> or <a href="${h.route_path('my_account_ssh_keys_generate')}">SSH Key</a>. | |||
</div> | |||
%endif | |||
%if c.extern_type != 'rhodecode': | |||
r1282 | <div class="infoform"> | ||
<div class="fields"> | |||
<div class="field"> | |||
<div class="label"> | |||
<label for="username">${_('Username')}:</label> | |||
</div> | |||
<div class="input"> | |||
Bartłomiej Wołyńczyk
|
r2592 | ${c.user.username} | |
r1282 | </div> | ||
</div> | |||
<div class="field"> | |||
<div class="label"> | |||
<label for="name">${_('First Name')}:</label> | |||
</div> | |||
<div class="input"> | |||
Bartłomiej Wołyńczyk
|
r2592 | ${c.user.firstname} | |
r1282 | </div> | ||
</div> | |||
<div class="field"> | |||
<div class="label"> | |||
<label for="lastname">${_('Last Name')}:</label> | |||
</div> | |||
<div class="input-valuedisplay"> | |||
Bartłomiej Wołyńczyk
|
r2592 | ${c.user.lastname} | |
r1282 | </div> | ||
</div> | |||
</div> | |||
</div> | |||
% else: | |||
<div class="form"> | |||
<div class="fields"> | |||
<div class="field"> | |||
<div class="label photo"> | |||
${_('Photo')}: | |||
</div> | |||
<div class="input profile"> | |||
%if c.visual.use_gravatar: | |||
${base.gravatar(c.user.email, 100)} | |||
<p class="help-block">${_('Change your avatar at')} <a href="http://gravatar.com">gravatar.com</a>.</p> | |||
%else: | |||
r3686 | ${base.gravatar(c.user.email, 100)} | ||
r1282 | %endif | ||
</div> | |||
</div> | |||
Bartłomiej Wołyńczyk
|
r2592 | ${c.form.render()| n} | |
r1282 | </div> | ||
</div> | |||
% endif | |||
</div> | |||
</div> |