2018-01-25 12:25:32 +01:00
|
|
|
| {% extends 'users/settings/page.html' %}
|
|
|
|
| {% block settings_page_title %}{{ _("Profile") }}{% endblock %}
|
2018-09-12 14:34:29 +02:00
|
|
|
| {% block css %}
|
|
|
|
| {{ super() }}
|
|
|
|
//- TODO(Pablo): properly style badges, and move the styling to one of the SASS files.
|
|
|
|
style.
|
|
|
|
ul.blender-id-badges {
|
|
|
|
padding-left: 0;
|
|
|
|
list-style-type: none;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
ul.blender-id-badges > li {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
ul.blender-id-badges > li a {
|
|
|
|
display: block;
|
|
|
|
padding: 0.4em;
|
|
|
|
}
|
|
|
|
| {% endblock %}
|
2018-01-25 12:25:32 +01:00
|
|
|
| {% block settings_page_content %}
|
|
|
|
.settings-form
|
|
|
|
form#settings-form(method='POST', action="{{url_for('settings.profile')}}")
|
2019-05-24 17:36:06 +02:00
|
|
|
.row
|
|
|
|
.form-group.col-md-6
|
2018-01-25 12:25:32 +01:00
|
|
|
| {{ form.username.label }}
|
|
|
|
| {{ form.username(size=20, class='form-control') }}
|
|
|
|
| {% if form.username.errors %}
|
|
|
|
| {% for error in form.username.errors %}{{ error|e }}{% endfor %}
|
|
|
|
| {% endif %}
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2019-05-24 17:36:06 +02:00
|
|
|
button.mt-3.btn.btn-outline-success.px-5.button-submit(type='submit')
|
|
|
|
i.pi-check.pr-2
|
|
|
|
| {{ _("Save Changes") }}
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2019-05-24 17:36:06 +02:00
|
|
|
.row.mt-3
|
|
|
|
.col-md-9
|
|
|
|
.form-group
|
|
|
|
label {{ _("Full name") }}
|
|
|
|
p {{ current_user.full_name }}
|
|
|
|
.form-group
|
|
|
|
label {{ _("E-mail") }}
|
|
|
|
p {{ current_user.email }}
|
|
|
|
.form-group
|
|
|
|
| {{ _("Change your full name, email, avatar, and password at") }} #[a(href="{{ blender_profile_url }}",target='_blank') Blender ID].
|
2017-12-07 17:31:26 +01:00
|
|
|
|
2019-05-24 17:36:06 +02:00
|
|
|
| {% if current_user.badges_html %}
|
|
|
|
.form-group
|
|
|
|
p Your Blender ID badges:
|
|
|
|
| {{ current_user.badges_html|safe }}
|
|
|
|
p.hint-text Note that updates to these badges may take a few minutes to be visible here.
|
|
|
|
| {% endif %}
|
|
|
|
|
|
|
|
.col-md-3
|
|
|
|
a(href="{{ blender_profile_url }}",target='_blank')
|
|
|
|
current-user-avatar
|
|
|
|
p
|
|
|
|
small Your #[a(href="{{ blender_profile_url }}",target='_blank') Blender ID] avatar
|
|
|
|
//- Avatar Sync button is commented out here, because it's not used by Blender Cloud.
|
|
|
|
//- This tag, and the commented-out script tag below, are just examples.
|
|
|
|
//- avatar-sync-button
|
2018-09-18 15:23:38 +02:00
|
|
|
|
2019-05-24 17:36:06 +02:00
|
|
|
| {% endblock %}
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2019-05-24 17:36:06 +02:00
|
|
|
| {% block footer_scripts %}
|
|
|
|
| {{ super() }}
|
|
|
|
//- script(src="{{ url_for('static_pillar', filename='assets/js/avatar.min.js') }}")
|
|
|
|
script.
|
|
|
|
new Vue({el:'#settings-form'});
|
2016-08-19 09:19:06 +02:00
|
|
|
| {% endblock %}
|