{# * Copyright (C) 2014-2015, Champs Libres Cooperative SCRLFS, / * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . #} {% extends "@ChillMain/layout.html.twig" %} {% block title %}{{"user.profile.title"|trans}}{% endblock %} {% block content %}

{{ 'user.profile.title'|trans }}

{{ 'Job'|trans }}
{% if user.getUserJob is not null %}
{{ user.getUserJob.label|localize_translatable_string }}
{% else %}
{{ 'user.profile.no job'|trans }}
{% endif %}
{{ 'Scope'|trans }}
{% if user.getMainScope is not null %}
{{ user.getMainScope.name|localize_translatable_string }}
{% else %}
{{ 'user.profile.no scope'|trans }}
{% endif %}
{{ form_start(form) }} {{ form_row(form.phonenumber) }}

{{ 'user.profile.notification_preferences'|trans }}

{% for flag in form.notificationFlags %} {% endfor %}
{{ 'notification.flags.type'|trans }} {{ 'notification.flags.preferences.immediate_email'|trans }} {{ 'notification.flags.preferences.daily_email'|trans }}
{{ form_label(flag, null, {'label_attr': {'div_col_width': false}}) }} {{ form_widget(flag.immediate_email, {'label_attr': { 'class': 'checkbox-inline checkbox-switch'}}) }} {{ form_widget(flag.daily_email, {'label_attr': { 'class': 'checkbox-inline checkbox-switch'}}) }}
{{ form_end(form) }}
{% endblock %}