2021-07-25 01:38:57 +09:00
|
|
|
<aside id='right-panel'>
|
2021-07-21 08:17:05 +09:00
|
|
|
|
|
|
|
{% if post_form is defined %}
|
2021-07-22 00:39:55 +09:00
|
|
|
{{ form_start(post_form) }}
|
2021-07-27 02:11:14 +09:00
|
|
|
<section class="create-notice">
|
|
|
|
<form>
|
|
|
|
<fieldset class="section-title">
|
|
|
|
<legend>Create a note</legend>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset class="section-content">
|
|
|
|
<span class="target">
|
|
|
|
<div class="target-top">
|
|
|
|
{{ form_label(post_form.to) }}
|
|
|
|
</div>
|
|
|
|
<div class="target-bot">
|
|
|
|
{{ form_widget(post_form.to) }}
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<span class="scope">
|
|
|
|
<div class="visibility">
|
|
|
|
{{ form_row(post_form.visibility) }}
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<span id="tabs">
|
2021-07-21 08:17:05 +09:00
|
|
|
{% for tab in tabs %}
|
|
|
|
<a href={{ path(tab['href']) }}>{{ tab['title'] }}</a>
|
|
|
|
{% endfor %}
|
2021-07-27 02:11:14 +09:00
|
|
|
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<div class="content-input">
|
|
|
|
{{ form_row(post_form.content) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="notice-options">
|
|
|
|
<div class="attachments">
|
|
|
|
<label for="{{ post_form.attachments.vars.id }}" class="custom-file-upload">
|
|
|
|
{{ form_widget(post_form.attachments) }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ form_row(post_form.post) }}
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</section>
|
2021-07-22 00:39:55 +09:00
|
|
|
{{ form_end(post_form) }}
|
|
|
|
|
2021-07-21 08:17:05 +09:00
|
|
|
{% endif %}
|
2021-07-20 03:19:02 +09:00
|
|
|
|
2021-07-21 08:17:05 +09: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-25 01:38:57 +09:00
|
|
|
</aside>
|