2021-07-24 17:38:57 +01:00
|
|
|
<aside id='right-panel'>
|
2021-07-21 00:17:05 +01:00
|
|
|
{% if post_form is defined %}
|
2021-08-10 21:05:47 +01:00
|
|
|
<section class="section-widget">
|
2021-08-03 16:43:41 +01:00
|
|
|
<legend class="section-title">
|
2021-08-10 21:05:47 +01:00
|
|
|
<details>
|
|
|
|
<summary class="section-title-hamburger">
|
|
|
|
Create a note {{ icon('plus-circle', 'icon icon-plus') | raw }}
|
2021-08-03 16:43:41 +01:00
|
|
|
</summary>
|
2021-08-10 21:05:47 +01:00
|
|
|
|
|
|
|
{% for tab in tabs %}
|
|
|
|
<a class="section-title-hamburger-element" href={{ path(tab['href']) }}>{{ tab['title'] }}</a>
|
|
|
|
{% endfor %}
|
2021-08-03 16:43:41 +01:00
|
|
|
</details>
|
|
|
|
</legend>
|
2021-07-26 18:11:14 +01:00
|
|
|
|
2021-08-10 21:05:47 +01:00
|
|
|
<div class="section-form">
|
2021-08-09 18:27:24 +01:00
|
|
|
{{ form_start(post_form) }}
|
2021-07-26 18:11:14 +01:00
|
|
|
|
2021-08-10 21:05:47 +01:00
|
|
|
<span class="form-target">
|
|
|
|
{{ form_label(post_form.to) }}
|
|
|
|
{{ form_widget(post_form.to) }}
|
2021-08-09 18:27:24 +01:00
|
|
|
</span>
|
2021-07-26 18:11:14 +01:00
|
|
|
|
2021-08-10 21:05:47 +01:00
|
|
|
{{ form_row(post_form.visibility, {'attr': {'class': 'form-scope'}}) }}
|
2021-07-26 18:11:14 +01:00
|
|
|
|
2021-08-10 21:05:47 +01:00
|
|
|
{{ form_row(post_form.content, {'attr': {'class': 'form-input'}}) }}
|
2021-07-26 18:11:14 +01:00
|
|
|
|
2021-08-10 21:05:47 +01:00
|
|
|
<label for="{{ post_form.attachments.vars.id }}" class="form-options">
|
|
|
|
{{ form_widget(post_form.attachments) }}
|
|
|
|
</label>
|
2021-08-03 16:43:41 +01:00
|
|
|
|
2021-08-10 21:05:47 +01:00
|
|
|
{{ form_row(post_form.post, {'attr': {'class': 'form-send'}}) }}
|
2021-07-26 18:11:14 +01:00
|
|
|
|
2021-08-09 18:27:24 +01:00
|
|
|
{{ form_end(post_form) }}
|
|
|
|
</div>
|
2021-07-26 18:11:14 +01:00
|
|
|
</section>
|
2021-07-21 00:17:05 +01:00
|
|
|
{% endif %}
|
2021-07-19 19:19:02 +01:00
|
|
|
|
2021-07-21 00:17:05 +01:00
|
|
|
{% 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}) %}
|
2021-08-10 21:05:47 +01:00
|
|
|
<section class="section-widget">
|
|
|
|
{{ block | raw }}
|
|
|
|
</section>
|
2021-07-21 00:17:05 +01:00
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path}) %}
|
2021-08-10 21:05:47 +01:00
|
|
|
<section class="section-widget">
|
|
|
|
{{ block | raw }}
|
|
|
|
</section>
|
2021-07-21 00:17:05 +01:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2021-07-24 17:38:57 +01:00
|
|
|
</aside>
|