2021-12-01 20:13:24 +00:00
|
|
|
{% block rightpanel %}
|
|
|
|
<label class="panel-right-icon" for="panel-right-toggle" aria-hidden="true"
|
2021-12-23 21:29:46 +00:00
|
|
|
tabindex="-1">{{ icon('chevron-left', 'icon icon-right') | raw }}</label>
|
2021-12-01 20:13:24 +00:00
|
|
|
<input type="checkbox" id="panel-right-toggle" aria-hidden="true" tabindex="-1">
|
|
|
|
|
2021-12-02 22:44:58 +00:00
|
|
|
<div class="header-panel section-panel-right">
|
2021-12-02 15:49:09 +00:00
|
|
|
<a id="anchor-right-panel" class="anchor-hidden" title="{{ 'Press tab to access selected region!' | trans }}"></a>
|
2021-12-02 22:44:58 +00:00
|
|
|
<aside class="panel-content accessibility-target">
|
2021-12-01 20:13:24 +00:00
|
|
|
|
|
|
|
{% set blocks = handle_event('AppendRightPostingBlock', request) %}
|
|
|
|
{% if blocks['post_form'] is defined %}
|
2021-12-08 14:28:58 +00:00
|
|
|
<section class="section-widget" title="{{ 'Create a new note.' | trans }}">
|
2021-12-06 21:07:45 +00:00
|
|
|
<details class="section-widget-title-details" open="open"
|
2021-12-08 14:28:58 +00:00
|
|
|
title="{{ 'Expand if you want to access more options.' | trans }}">
|
2021-12-01 20:13:24 +00:00
|
|
|
<summary class="section-title-summary">
|
2021-12-08 15:16:30 +00:00
|
|
|
<h2>
|
2021-12-29 21:20:02 +00:00
|
|
|
{% set current_path = app.request.get('_route') %}
|
2021-12-31 23:26:39 +00:00
|
|
|
{% if current_path == 'conversation_reply_to' %}
|
2021-12-29 21:20:02 +00:00
|
|
|
{{ "Reply to note" | trans }}
|
|
|
|
{% else %}
|
|
|
|
{{ "Create a note" | trans }}
|
|
|
|
{% endif %}
|
2021-12-08 15:16:30 +00:00
|
|
|
</h2>
|
|
|
|
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
2021-12-01 20:13:24 +00:00
|
|
|
</summary>
|
|
|
|
|
2021-12-06 21:07:45 +00:00
|
|
|
<div class="section-form">
|
|
|
|
<fieldset>
|
2021-12-07 15:33:02 +00:00
|
|
|
{{ form_start(blocks['post_form']) }}
|
2022-01-04 18:55:34 +00:00
|
|
|
{{ form_errors(blocks['post_form']) }}
|
2021-12-25 11:23:25 +00:00
|
|
|
{% if blocks['post_form'].in is defined %}
|
|
|
|
{{ form_row(blocks['post_form'].in) }}
|
|
|
|
{% endif %}
|
2021-12-07 15:33:02 +00:00
|
|
|
{{ form_row(blocks['post_form'].visibility) }}
|
|
|
|
{{ form_row(blocks['post_form'].content) }}
|
|
|
|
{{ form_row(blocks['post_form'].attachments) }}
|
|
|
|
|
|
|
|
<details class="section-widget-subtitle-details">
|
|
|
|
<summary class="section-subtitle-summary">
|
2021-12-23 21:29:46 +00:00
|
|
|
<strong>
|
2021-12-08 15:16:30 +00:00
|
|
|
{{ "Additional options" | trans }}
|
2021-12-23 21:29:46 +00:00
|
|
|
</strong>
|
2021-12-08 15:16:30 +00:00
|
|
|
{{ icon('arrow-down', 'icon icon-details-close') | raw }}
|
2021-12-07 15:33:02 +00:00
|
|
|
</summary>
|
|
|
|
{{ form_row(blocks['post_form'].language) }}
|
|
|
|
{{ form_row(blocks['post_form'].tag_use_canonical) }}
|
|
|
|
</details>
|
2021-12-08 14:28:58 +00:00
|
|
|
{{ form_rest(blocks['post_form']) }}
|
2021-12-07 15:33:02 +00:00
|
|
|
{{ form_end(blocks['post_form']) }}
|
2021-12-06 21:07:45 +00:00
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
</details>
|
2021-12-01 20:13:24 +00:00
|
|
|
</section>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% set current_path = app.request.get('_route') %}
|
2021-12-30 15:14:41 +00:00
|
|
|
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path, 'request': request, 'vars': right_panel_vars | default }, request) %}
|
2021-12-01 20:13:24 +00:00
|
|
|
{{ block | raw }}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</aside>
|
|
|
|
</div>
|
|
|
|
{% endblock rightpanel %}
|