my_account_profile_edit.mako
69 lines
| 2.3 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" %> | ||
<% disabled = "disabled" %> | |||
<div class="infoform"> | |||
<div class="fields"> | |||
<p>${_('Your user account details are managed by an external source. Details cannot be managed here.')} | |||
<br/>${_('Source type')}: <strong>${c.extern_type}</strong> | |||
</p> | |||
<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> |