<%namespace name="base" file="/base/base.html"/>

${_('My Profile')}

Close
${h.secure_form(url('my_account'), method='post', class_='form')} <% readonly = None %> <% disabled = "" %> % if c.extern_type != 'rhodecode': <% readonly = "readonly" %> <% disabled = "disabled" %>

${_('Your user account details are managed by an external source, i.e. LDAP. Details cannot be managed here.')}.

${h.text('username', class_='input-valuedisplay', readonly=readonly)}
${h.text('firstname', class_='input-valuedisplay', readonly=readonly)}
${h.text('lastname', class_='input-valuedisplay', readonly=readonly)}
% else:
${_('Photo')}:
%if c.visual.use_gravatar: ${base.gravatar(c.user.email, 100)}

${_('Change your avatar at')} gravatar.com.

%else: ${base.gravatar(c.user.email, 20)} ${_('Avatars are disabled')} %endif
${h.text('username', class_='medium%s' % disabled, readonly=readonly)} ${h.hidden('extern_name', c.extern_name)} ${h.hidden('extern_type', c.extern_type)}
${h.text('firstname', class_="medium")}
${h.text('lastname', class_="medium")}
## we should be able to edit email ! ${h.text('email', class_="medium")}
${h.submit('save', _('Save'), class_="btn")} ${h.reset('reset', _('Reset'), class_="btn")}
% endif