2021-07-20 15:51:32 +01:00
|
|
|
<details class="panel" id="right-container">
|
|
|
|
<summary>{{ icon('drop', 'icon icon-right') | raw }}</summary>
|
|
|
|
<div id='right-panel'>
|
|
|
|
{% if post_form is defined %}
|
|
|
|
{{ form_start(post_form) }}
|
|
|
|
<div class="create-notice">
|
|
|
|
<div class="target">
|
|
|
|
<div class="target-top">
|
|
|
|
{{ form_label(post_form.to) }}
|
|
|
|
</div>
|
|
|
|
<div class="target-bot">
|
|
|
|
{{ form_widget(post_form.to) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="create-right">
|
|
|
|
<div class="create-top-right">
|
|
|
|
<div class="scope">
|
|
|
|
{{ form_row(post_form.visibility) }}
|
2021-07-19 19:19:02 +01:00
|
|
|
</div>
|
2021-07-20 15:51:32 +01:00
|
|
|
<div class="tabs">
|
|
|
|
{% for tab in tabs %}
|
|
|
|
<a href={{ path(tab['href']) }}>{{ tab['title'] }}</a>
|
|
|
|
{% endfor %}
|
2021-07-19 19:19:02 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-20 15:51:32 +01:00
|
|
|
<div class="input-wrapper">
|
|
|
|
<div class="content-input">
|
|
|
|
{{ form_row(post_form.content) }}
|
2021-07-19 19:19:02 +01:00
|
|
|
</div>
|
2021-07-20 15:51:32 +01:00
|
|
|
</div>
|
|
|
|
<div class="notice-options">
|
|
|
|
<div class="attachments">
|
|
|
|
{{ form_widget(post_form.attachments) }}
|
|
|
|
<label for="{{ post_form.attachments.vars.id }}">
|
|
|
|
{{ icon('attach', 'icon icon-attach') | raw }}
|
|
|
|
</label>
|
2021-07-19 19:19:02 +01:00
|
|
|
</div>
|
2021-07-20 15:51:32 +01:00
|
|
|
<div class="post">
|
|
|
|
{{ form_row(post_form.post) }}
|
2021-07-19 19:19:02 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-26 19:08:25 +01:00
|
|
|
</div>
|
2021-07-20 15:51:32 +01:00
|
|
|
</div>
|
|
|
|
{{ form_end(post_form) }}
|
|
|
|
{% endif %}
|
2021-07-19 19:19:02 +01:00
|
|
|
|
2021-07-20 15:51:32 +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-19 19:19:02 +01:00
|
|
|
</div>
|
2021-07-20 13:18:57 +01:00
|
|
|
</details>
|