2021-09-09 01:27:28 +09:00
|
|
|
<div class="panel panel-right">
|
2021-09-07 23:59:19 +09:00
|
|
|
<input type="checkbox" id="panel-right-toggle" aria-hidden="true" tabindex="-1">
|
|
|
|
<label id="panel-right-icon" for="panel-right-toggle" aria-hidden="true" tabindex="-1">{{ icon('notes', 'icon icon-right') | raw }}</label>
|
2021-08-29 05:23:25 +09:00
|
|
|
|
2021-09-07 23:59:19 +09:00
|
|
|
<a id="anchor-right-panel" class="anchor-hidden" title="{{ 'Press tab to access selected region!' | trans }}"></a>
|
2021-09-09 01:27:28 +09:00
|
|
|
<aside class="panel-content accessibility-target">
|
2021-08-31 01:56:59 +09:00
|
|
|
|
2021-09-18 15:27:17 +09:00
|
|
|
{% set post_form = handle_event('AppendRightPostingBlock', {'request': request}) %}
|
2021-09-20 20:34:28 +09:00
|
|
|
{% if post_form is defined %}
|
|
|
|
<section class="section-widget" title={{ 'Create a new note.' | trans }}>
|
|
|
|
<details class="section-title-details" title={{ 'Expand if you want to access more options.' | trans }}>
|
|
|
|
<summary class="section-title-summary">
|
|
|
|
{{ "Create a note" | trans }}{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
|
|
|
</summary>
|
|
|
|
</details>
|
2021-08-29 05:23:25 +09:00
|
|
|
|
2021-09-20 20:34:28 +09:00
|
|
|
<div class="section-form">
|
|
|
|
<fieldset>
|
|
|
|
{{ form_start(post_form) }}
|
2021-08-29 05:23:25 +09:00
|
|
|
|
2021-09-20 20:34:28 +09:00
|
|
|
{{ form_row(post_form.to, {'attr': {'class': 'section-form-scope'}}) }}
|
2021-08-29 05:23:25 +09:00
|
|
|
|
2021-09-20 20:34:28 +09:00
|
|
|
{{ form_row(post_form.visibility, {'attr': {'class': 'section-form-scope'}}) }}
|
2021-07-27 02:11:14 +09:00
|
|
|
|
2021-09-20 20:34:28 +09:00
|
|
|
{{ form_row(post_form.content, {'attr': {'class': 'section-form-textarea'}}) }}
|
2021-07-27 02:11:14 +09:00
|
|
|
|
2021-09-20 20:34:28 +09:00
|
|
|
<label for="{{ post_form.attachments.vars.id }}" class="section-form-options">
|
|
|
|
{{ form_widget(post_form.attachments) }}
|
|
|
|
</label>
|
2021-07-27 02:11:14 +09:00
|
|
|
|
2021-09-20 20:34:28 +09:00
|
|
|
{{ form_row(post_form.post_note, {'attr': {'class': 'section-form-send'}}) }}
|
2021-08-04 00:43:41 +09:00
|
|
|
|
2021-09-20 20:34:28 +09:00
|
|
|
{{ form_end(post_form) }}
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{% endif %}
|
2021-08-29 05:23:25 +09:00
|
|
|
|
|
|
|
{% set current_path = app.request.get('_route') %}
|
2021-09-20 20:34:28 +09:00
|
|
|
|
2021-08-29 05:23:25 +09:00
|
|
|
{% if right_panel_vars is defined %}
|
|
|
|
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path, 'vars': right_panel_vars}) %}
|
2021-09-17 00:27:28 +09:00
|
|
|
{{ block | raw }}
|
2021-08-29 05:23:25 +09:00
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path}) %}
|
2021-09-17 00:27:28 +09:00
|
|
|
{{ block | raw }}
|
2021-08-29 05:23:25 +09:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2021-09-20 20:34:28 +09:00
|
|
|
|
2021-08-29 05:23:25 +09:00
|
|
|
</aside>
|
|
|
|
</div>
|