{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2015-2018 CERN. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- extends config.USERPROFILES_SETTINGS_TEMPLATE %} {% from "invenio_userprofiles/settings/_macros.html" import render_field, form_errors %} {% set panel_title = _("Profile") %} {% set panel_icon = "fa fa-user" %} {%- block settings_form %} {%- if security.confirmable and not current_user.confirmed_at %}
{{ verification_form.csrf_token }}
{{ _("You have not yet verified your email address.") }} {{ verification_form.send_verification_email(class_="btn btn-default btn-xs") }}
{%- endif %} {%- set form = profile_form %}
{%- for field in form %} {%- if field.widget.input_type == 'hidden' %} {{ field() }} {%- else %} {{ render_field(field, autofocus=True, placeholder=field.label.text) }} {%- endif %} {%- endfor %}
{{ _('Cancel') }}
{%- endblock settings_form %}