Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
503cb9a
commit c04ca74
Showing
1 changed file
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
{% import 'macros/form.html' as form %} | ||
|
||
<form class="dataset-form form-horizontal" method="post" action="{{ action }}"> | ||
{{ form.errors(error_summary) }} | ||
{{ form.errors(error_summary) }} | ||
|
||
<fieldset> | ||
<legend>{{ _('Change your details') }}</legend> | ||
<fieldset> | ||
<legend>{{ _('Change your details') }}</legend> | ||
|
||
{{ form.input('name', label=_('Username'), id='field-username', value=data.name, error=errors.name, classes=['control-medium']) }} | ||
{{ form.input('name', label=_('Username'), id='field-username', value=data.name, error=errors.name, classes=['control-medium']) }} | ||
|
||
{{ form.input('fullname', label=_('Full name'), id='field-fullname', value=data.fullname, error=errors.fullname, placeholder=_('eg. Joe Bloggs'), classes=['control-medium']) }} | ||
{{ form.input('fullname', label=_('Full name'), id='field-fullname', value=data.fullname, error=errors.fullname, placeholder=_('eg. Joe Bloggs'), classes=['control-medium']) }} | ||
|
||
{{ form.input('email', label=_('Email'), id='field-email', type='email', value=data.email, error=errors.email, placeholder=_('eg. joe@example.com'), classes=['control-medium']) }} | ||
{{ form.input('email', label=_('Email'), id='field-email', type='email', value=data.email, error=errors.email, placeholder=_('eg. joe@example.com'), classes=['control-medium']) }} | ||
|
||
{{ form.markdown('about', label=_('About'), id='field-about', value=data.about, error=errors.about, placeholder=_('A little information about yourself')) }} | ||
{{ form.markdown('about', label=_('About'), id='field-about', value=data.about, error=errors.about, placeholder=_('A little information about yourself')) }} | ||
|
||
{% if c.show_email_notifications %} | ||
{% call form.checkbox('email_notifications', label=_('Subscribe to activity notification emails'), id='field-email-notifications', value=True, checked=c.userobj.email_notifications) %} | ||
{{ form.help(_('Whenever there\'s a new activity on the site related to a thing that you follow you\'ll get a notification email'), classes=['info-help-tight']) }} | ||
{% endcall %} | ||
{% endif %} | ||
{% if c.show_email_notifications %} | ||
{% call form.checkbox('email_notifications', label=_('Subscribe to activity notification emails'), id='field-email-notifications', value=True, checked=c.userobj.email_notifications) %} | ||
{{ form.help(_('Whenever there\'s a new activity on the site related to a thing that you follow you\'ll get a notification email'), classes=['info-help-tight']) }} | ||
{% endcall %} | ||
{% endif %} | ||
|
||
</fieldset> | ||
</fieldset> | ||
|
||
<fieldset> | ||
<legend>{{ _('Change your password') }}</legend> | ||
<fieldset> | ||
<legend>{{ _('Change your password') }}</legend> | ||
|
||
{{ form.input('password1', label=_('Password'), id='field-password', value=data.password1, error=errors.password1, classes=['control-medium']) }} | ||
{{ form.input('password1', label=_('Password'), id='field-password', value=data.password1, error=errors.password1, classes=['control-medium']) }} | ||
|
||
{{ form.input('password2', label=_('Confirm Password'), id='field-password-confirm', value=data.password2, error=errors.password2, classes=['control-medium']) }} | ||
</fieldset> | ||
{{ form.input('password2', label=_('Confirm Password'), id='field-password-confirm', value=data.password2, error=errors.password2, classes=['control-medium']) }} | ||
</fieldset> | ||
|
||
<div class="form-actions"> | ||
<button class="btn btn-primary" type="submit" name="save">{{ _('Update Profile') }}</button> | ||
</div> | ||
<div class="form-actions"> | ||
<button class="btn btn-primary" type="submit" name="save">{{ _('Update Profile') }}</button> | ||
</div> | ||
</form> |