{% extends 'layout.html.twig' %} {% set breadcrumb = buildBreadcrumb([{'route': 'app_profile_index', 'trans': 'menu.profile'}]) %} {% block title %} {{ renderTitle(breadcrumb) }} {% endblock %} {% block breadcrumb %} {{ renderBreadcrumb(breadcrumb) }} {% endblock %} {% block content %}

{{ 'menu.settings'|trans }}

{{ form_start(form) }}

{{ 'title.update_settings'|trans }}

{{ form_row(form.locale, {'label' : 'label.locale', 'attr': {'class': 'js-select-locale'}} ) }}
{{ form_row(form.currency, {'label' : 'label.currency'} ) }}
{{ form_row(form.timezone, {'label' : 'label.timezone'} ) }}
{{ form_row(form.dateFormat, {'label' : 'label.date_format'} ) }}

{{ 'title.update_visibility'|trans }}

{{ 'message.visibility'|trans }} {{ url('app_user_collection_index', {username : app.user.username}) }}

{{ 'message.visibility_preview'|trans }} {{ url('app_preview_collection_index') }}

{{ 'message.visibility_per_item'|trans }}

{{ form_row(form.visibility, {'label' : 'label.visibility'} ) }}

{{ 'title.update_dark_mode'|trans }}

{{ form_row(form.automaticDarkModeStartAt, {'label' : 'label.automatic_dark_mode_start_at', 'attr': {'class': 'timepicker'}} ) }}
{{ form_row(form.automaticDarkModeEndAt, {'label' : 'label.automatic_dark_mode_end_at', 'attr': {'class': 'timepicker'}} ) }}
{{ form_row(form.darkModeEnabled, {'label' : 'label.dark_mode_enabled'}) }}

{{ 'title.update_features'|trans }}

{{ form_row(form.wishlistsFeatureEnabled, {'label' : 'label.wishlists_feature_enabled'}) }}
{{ form_row(form.tagsFeatureEnabled, {'label' : 'label.tags_feature_enabled'}) }}
{{ form_row(form.signsFeatureEnabled, {'label' : 'label.signs_feature_enabled'}) }}
{{ form_row(form.albumsFeatureEnabled, {'label' : 'label.albums_feature_enabled'}) }}
{{ form_row(form.loansFeatureEnabled, {'label' : 'label.loans_feature_enabled'}) }}
{{ form_row(form.templatesFeatureEnabled, {'label' : 'label.templates_feature_enabled'}) }}
{{ form_row(form.historyFeatureEnabled, {'label' : 'label.history_feature_enabled'}) }}
{{ form_row(form.statisticsFeatureEnabled, {'label' : 'label.statistics_feature_enabled'}) }}
{{ form_end(form) }}
{% endblock %}