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-07-26 19:08:25 +01:00
|
|
|
|
2021-08-03 15:49:22 +01:00
|
|
|
<section class="create-notice bg">
|
2021-07-26 19:08:25 +01:00
|
|
|
{{ form_start(post_form) }}
|
2021-08-03 16:43:41 +01:00
|
|
|
<legend class="section-title">
|
|
|
|
<h1>Create a note</h1>
|
|
|
|
|
|
|
|
<details class="section-title-plus">
|
|
|
|
<summary>
|
|
|
|
{{ icon('plus-circle', 'icon icon-plus') | raw }}
|
|
|
|
</summary>
|
|
|
|
<div id="note-types">
|
|
|
|
{% for tab in tabs %}
|
|
|
|
<a href={{ path(tab['href']) }}>{{ tab['title'] }}</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</details>
|
|
|
|
</legend>
|
2021-07-26 18:11:14 +01:00
|
|
|
|
2021-07-27 16:48:17 +01:00
|
|
|
<div class="section-content">
|
|
|
|
<span class="target">
|
|
|
|
<div class="target-top">
|
|
|
|
{{ form_label(post_form.to) }}
|
|
|
|
</div>
|
|
|
|
<div class="target-bot">
|
|
|
|
{{ form_widget(post_form.to) }}
|
|
|
|
</div>
|
|
|
|
</span>
|
2021-07-26 18:11:14 +01:00
|
|
|
|
2021-07-27 16:48:17 +01:00
|
|
|
<hr>
|
2021-07-26 18:11:14 +01:00
|
|
|
|
2021-07-27 16:48:17 +01:00
|
|
|
<span class="scope">
|
|
|
|
<div class="visibility">
|
|
|
|
{{ form_row(post_form.visibility) }}
|
|
|
|
</div>
|
|
|
|
</span>
|
2021-07-26 18:11:14 +01:00
|
|
|
|
2021-07-27 16:48:17 +01:00
|
|
|
<hr>
|
2021-07-26 18:11:14 +01:00
|
|
|
|
2021-07-27 16:48:17 +01:00
|
|
|
<span id="input">
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<div class="content-input">
|
|
|
|
{{ form_row(post_form.content) }}
|
2021-07-26 18:11:14 +01:00
|
|
|
</div>
|
2021-07-27 16:48:17 +01:00
|
|
|
</div>
|
2021-07-26 18:11:14 +01:00
|
|
|
|
2021-07-27 16:48:17 +01:00
|
|
|
<div class="notice-options">
|
|
|
|
<div class="attachments">
|
|
|
|
<label for="{{ post_form.attachments.vars.id }}" class="custom-file-upload">
|
|
|
|
{{ form_widget(post_form.attachments) }}
|
|
|
|
</label>
|
2021-07-26 18:11:14 +01:00
|
|
|
</div>
|
2021-07-27 16:48:17 +01:00
|
|
|
|
|
|
|
<br>
|
|
|
|
{{ form_row(post_form.post) }}
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</div>
|
2021-07-26 19:08:25 +01:00
|
|
|
{{ form_end(post_form) }}
|
|
|
|
|
2021-08-03 16:43:41 +01:00
|
|
|
|
2021-07-26 18:11:14 +01:00
|
|
|
|
|
|
|
</section>
|
2021-07-26 19:08:25 +01:00
|
|
|
|
2021-07-21 16:39:55 +01:00
|
|
|
|
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}) %}
|
|
|
|
{{ block | raw }}
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path}) %}
|
|
|
|
{{ block | raw }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2021-07-24 17:38:57 +01:00
|
|
|
</aside>
|