engelsystem/resources/views/pages/settings/settings.twig

37 lines
1.3 KiB
Twig
Raw Normal View History

2020-11-15 18:47:30 +01:00
{% extends 'layouts/app.twig' %}
2020-11-23 20:41:02 +01:00
{% import 'macros/base.twig' as m %}
2020-11-15 18:47:30 +01:00
{% block title %}{{ __(title|default(__('settings.settings'))) }}{% endblock %}
2020-11-15 18:47:30 +01:00
{% block content %}
<div class="container user-settings">
{% block container_title %}
<h1>{{ __('settings.settings') }} <small>{{ block('title') }}</small></h1>
{% endblock %}
2020-11-15 18:47:30 +01:00
<div class="row">
2020-11-23 20:41:02 +01:00
<div class="col-md-3 settings-menu">
2020-11-15 18:47:30 +01:00
<ul class="nav nav-pills nav-stacked">
{% for url,title in {
2020-11-23 20:41:02 +01:00
(url('/user-settings')): __('settings.profile'),
(url('/settings/password')): __('settings.password'),
2020-11-15 18:47:30 +01:00
(url('/settings/oauth')): __('settings.oauth'),
} %}
<li{% if url == request.url() %} class="active"{% endif %}>
<a href="{{ url }}">{{ title }}</a>
</li>
{% endfor %}
</ul>
</div>
2020-11-23 20:41:02 +01:00
<div class="col-md-9">
2020-11-15 18:47:30 +01:00
{% include 'layouts/parts/messages.twig' %}
2020-11-23 20:41:02 +01:00
{% block row_content %}
{{ content|raw }}
2020-11-23 20:41:02 +01:00
{% endblock %}
2020-11-15 18:47:30 +01:00
</div>
</div>
</div>
{% endblock %}