2021-08-28 21:23:25 +01:00
|
|
|
<div class="panel panel-right">
|
|
|
|
<input type="checkbox" id="panel-right-toggle">
|
2021-08-30 21:01:32 +01:00
|
|
|
<label id="panel-right-icon" for="panel-right-toggle">{{ icon('notes', 'icon icon-right') | raw }}</label>
|
2021-08-28 21:23:25 +01:00
|
|
|
|
2021-08-30 17:56:59 +01:00
|
|
|
<a id="anchor-right-panel" class="anchor-hidden"></a>
|
2021-08-28 21:23:25 +01:00
|
|
|
<aside class="panel-content">
|
2021-08-30 17:56:59 +01:00
|
|
|
|
2021-08-28 21:23:25 +01:00
|
|
|
{% if post_form is defined %}
|
2021-09-07 15:23:41 +01:00
|
|
|
<section class="section-widget" title={{ 'Create a new note.' | trans }}>
|
|
|
|
<details class="section-title-details" title={{ 'Expand if you want to access more options.' | trans }}>
|
2021-08-31 18:33:58 +01:00
|
|
|
<summary class="section-title-summary">
|
2021-09-07 15:23:41 +01:00
|
|
|
{{ "Create a note" | trans }}{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
2021-08-28 21:23:25 +01:00
|
|
|
</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) }}
|
|
|
|
|
2021-09-03 11:51:29 +01:00
|
|
|
{{ form_row(post_form.to, {'attr': {'class': 'section-form-scope'}}) }}
|
2021-07-26 18:11:14 +01:00
|
|
|
|
2021-08-28 21:23:25 +01:00
|
|
|
{{ form_row(post_form.visibility, {'attr': {'class': 'section-form-scope'}}) }}
|
2021-07-26 18:11:14 +01:00
|
|
|
|
2021-08-28 21:23:25 +01:00
|
|
|
{{ form_row(post_form.content, {'attr': {'class': 'section-form-textarea'}}) }}
|
2021-07-26 18:11:14 +01:00
|
|
|
|
2021-08-28 21:23:25 +01:00
|
|
|
<label for="{{ post_form.attachments.vars.id }}" class="section-form-options">
|
|
|
|
{{ form_widget(post_form.attachments) }}
|
|
|
|
</label>
|
2021-08-03 16:43:41 +01:00
|
|
|
|
2021-08-28 21:23:25 +01:00
|
|
|
{{ form_row(post_form.post_note, {'attr': {'class': 'section-form-send'}}) }}
|
2021-07-26 18:11:14 +01:00
|
|
|
|
2021-08-28 21:23:25 +01:00
|
|
|
{{ form_end(post_form) }}
|
|
|
|
</div>
|
2021-08-10 21:05:47 +01:00
|
|
|
</section>
|
2021-08-28 21:23:25 +01:00
|
|
|
{% 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>
|