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>
|
|
|
|
{{ "Create a note" | trans }}
|
|
|
|
</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']) }}
|
|
|
|
{{ form_row(blocks['post_form'].to) }}
|
|
|
|
{{ 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') %}
|
|
|
|
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path, 'vars': right_panel_vars | default }) %}
|
|
|
|
{{ block | raw }}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</aside>
|
|
|
|
</div>
|
|
|
|
{% endblock rightpanel %}
|