2021-12-02 05:13:24 +09:00
|
|
|
{% block rightpanel %}
|
2022-01-20 03:21:51 +09:00
|
|
|
<label class="panel-right-icon" for="toggle-panel-right" tabindex="-1">{{ icon('chevron-left', 'icon icon-right') | raw }}</label>
|
|
|
|
<a id="anchor-right-panel" class="anchor-hidden" tabindex="0" title="{{ 'Press tab followed by a space to access right panel' | trans }}"></a>
|
2022-02-07 06:37:04 +09:00
|
|
|
<input type="checkbox" id="toggle-panel-right" tabindex="0" title="{{ 'Open right panel' | trans }}" {% if app.request.get('_route') == 'conversation_reply_to' %}checked{% endif %}>
|
2021-12-02 05:13:24 +09:00
|
|
|
|
2022-01-20 03:21:51 +09:00
|
|
|
<aside class="section-panel section-panel-right">
|
2022-01-20 08:54:45 +09:00
|
|
|
<section class="panel-content accessibility-target">
|
|
|
|
{% set prepend_right_panel = handle_event('PrependRightPanel', request) %}
|
|
|
|
{% for widget in prepend_right_panel %}
|
|
|
|
{{ widget | raw }}
|
|
|
|
{% endfor %}
|
2021-12-02 05:13:24 +09:00
|
|
|
|
2022-01-20 03:21:51 +09:00
|
|
|
{% set blocks = handle_event('AppendRightPostingBlock', request) %}
|
|
|
|
{% if blocks['post_form'] is defined %}
|
2022-01-20 08:54:45 +09:00
|
|
|
<section class="frame-section" title="{{ 'Create a new note.' | trans }}">
|
2022-01-26 04:17:40 +09:00
|
|
|
<details class="section-details-title" open="open" title="{{ 'Expand if you want to access more options.' | trans }}">
|
2022-01-20 08:54:45 +09:00
|
|
|
<summary class="details-summary-title">
|
2022-01-24 04:46:47 +09:00
|
|
|
<span>
|
2022-02-07 06:37:04 +09:00
|
|
|
{% if app.request.get('_route') == 'conversation_reply_to' %}
|
2022-01-20 03:21:51 +09:00
|
|
|
{{ "Reply to note" | trans }}
|
|
|
|
{% else %}
|
|
|
|
{{ "Create a note" | trans }}
|
|
|
|
{% endif %}
|
2022-01-24 04:46:47 +09:00
|
|
|
</span>
|
2022-01-20 03:21:51 +09:00
|
|
|
</summary>
|
2021-12-02 05:13:24 +09:00
|
|
|
|
2022-02-07 06:37:04 +09:00
|
|
|
{% if app.request.get('_route') == 'conversation_reply_to' %}
|
2022-01-26 04:17:40 +09:00
|
|
|
<section class="frame-section-padding">
|
|
|
|
{% set prepend_posting_form = handle_event('PrependPostingForm', request) %}
|
|
|
|
{% for widget in prepend_posting_form %}
|
|
|
|
{{ widget | raw }}
|
|
|
|
{% endfor %}
|
|
|
|
</section>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-01-20 03:21:51 +09:00
|
|
|
<section class="section-form">
|
|
|
|
{{ form_start(blocks['post_form']) }}
|
|
|
|
{{ form_errors(blocks['post_form']) }}
|
|
|
|
{% if blocks['post_form'].in is defined %}
|
|
|
|
{{ form_row(blocks['post_form'].in) }}
|
|
|
|
{% endif %}
|
|
|
|
{{ form_row(blocks['post_form'].visibility) }}
|
|
|
|
{{ form_row(blocks['post_form'].content_type) }}
|
|
|
|
{{ form_row(blocks['post_form'].content) }}
|
|
|
|
{{ form_row(blocks['post_form'].attachments) }}
|
2021-12-08 00:33:02 +09:00
|
|
|
|
2022-01-20 08:54:45 +09:00
|
|
|
<details class="section-details-subtitle">
|
|
|
|
<summary class="details-summary-subtitle">
|
2022-01-20 03:21:51 +09:00
|
|
|
<strong>
|
|
|
|
{{ "Additional options" | trans }}
|
|
|
|
</strong>
|
|
|
|
</summary>
|
2022-01-22 03:02:27 +09:00
|
|
|
<section class="section-form">
|
|
|
|
{{ form_row(blocks['post_form'].language) }}
|
|
|
|
{{ form_row(blocks['post_form'].tag_use_canonical) }}
|
|
|
|
</section>
|
2022-01-18 01:32:41 +09:00
|
|
|
</details>
|
2022-01-20 03:21:51 +09:00
|
|
|
{{ form_rest(blocks['post_form']) }}
|
|
|
|
{{ form_end(blocks['post_form']) }}
|
2022-01-18 01:32:41 +09:00
|
|
|
</section>
|
2022-01-20 03:21:51 +09:00
|
|
|
</details>
|
|
|
|
</section>
|
|
|
|
{% endif %}
|
2021-12-02 05:13:24 +09:00
|
|
|
|
2022-02-07 06:37:04 +09:00
|
|
|
{% set extra_blocks = get_right_panel_blocks({'path': app.request.get('_route'), 'request': app.request, 'vars': right_panel_vars | default }) %}
|
2022-01-20 03:21:51 +09:00
|
|
|
{% for block in extra_blocks %}
|
|
|
|
{{ block | raw }}
|
|
|
|
{% endfor %}
|
2022-01-20 08:54:45 +09:00
|
|
|
</section>
|
2022-01-20 03:21:51 +09:00
|
|
|
</aside>
|
2021-12-02 05:13:24 +09:00
|
|
|
{% endblock rightpanel %}
|