${h.form(url('my_account'), method='post')}
gravatar

%if c.visual.use_gravatar: ${_('Change your avatar at')} gravatar.com
${_('Using')} ${c.user.email} %else: ${_('Avatars are disabled')}
${c.user.email or _('Missing email, please update your user email address.')} [${_('current IP')}: ${c.perm_user.ip_addr or "?"}] %endif

<% readonly = None %> <% disabled = "" %>
%if c.extern_type != 'rhodecode': <% readonly = "readonly" %> <% disabled = " disabled" %> ${_('Your user is in an external Source of Record; some details cannot be managed here')}. %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")}
${h.end_form()}