Skip to content

Commit

Permalink
[#1635] Spaces... not tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Dec 18, 2012
1 parent 503cb9a commit c04ca74
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions ckan/templates/user/edit_user_form.html
@@ -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>

0 comments on commit c04ca74

Please sign in to comment.