56 lines
2.3 KiB
Twig
56 lines
2.3 KiB
Twig
<div class="panel panel-right">
|
|
<input type="checkbox" id="panel-right-toggle">
|
|
<label id="panel-right-icon" for="panel-right-toggle">{{ icon('notes', 'icon icon-right') | raw }}</label>
|
|
|
|
<a id="anchor-right-panel" class="anchor-hidden"></a>
|
|
<aside class="panel-content">
|
|
|
|
{% if post_form is defined %}
|
|
<section class="section-widget" role="complementary" aria-label={{ 'Create a new note.' | trans }}>
|
|
<details class="section-title-details">
|
|
<summary class="section-title-summary">
|
|
{{ "Create a note" | trans }} {{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
|
</summary>
|
|
|
|
{% for tab in tabs %}
|
|
<a class="section-title-menu-element" href={{ path(tab['href']) }}>{{ tab['title'] }}</a>
|
|
{% endfor %}
|
|
</details>
|
|
|
|
<div class="section-form">
|
|
{{ form_start(post_form) }}
|
|
|
|
{{ form_row(post_form.to, {'attr': {'class': 'section-form-scope'}}) }}
|
|
|
|
{{ form_row(post_form.visibility, {'attr': {'class': 'section-form-scope'}}) }}
|
|
|
|
{{ form_row(post_form.content, {'attr': {'class': 'section-form-textarea'}}) }}
|
|
|
|
<label for="{{ post_form.attachments.vars.id }}" class="section-form-options">
|
|
{{ form_widget(post_form.attachments) }}
|
|
</label>
|
|
|
|
{{ form_row(post_form.post_note, {'attr': {'class': 'section-form-send'}}) }}
|
|
|
|
{{ form_end(post_form) }}
|
|
</div>
|
|
</section>
|
|
{% endif %}
|
|
|
|
{% set current_path = app.request.get('_route') %}
|
|
{% if right_panel_vars is defined %}
|
|
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path, 'vars': right_panel_vars}) %}
|
|
<section class="section-widget">
|
|
{{ block | raw }}
|
|
</section>
|
|
{% endfor %}
|
|
{% else %}
|
|
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path}) %}
|
|
<section class="section-widget">
|
|
{{ block | raw }}
|
|
</section>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</aside>
|
|
</div>
|