36 lines
1.3 KiB
Twig
36 lines
1.3 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{%- block title -%}
|
|
{{- 'create_new_magazine'|trans }} - {{ parent() -}}
|
|
{%- endblock -%}
|
|
|
|
{% block mainClass %}page-entry-create page-entry-create-link{% endblock %}
|
|
|
|
{% block header_nav %}
|
|
{% endblock %}
|
|
|
|
{% block sidebar_top %}
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
{% include 'entry/_create_options.html.twig' %}
|
|
|
|
<h1 hidden>{{ 'create_new_magazine'|trans }}</h1>
|
|
<div id="content" class="section">
|
|
<div class="container">
|
|
{{ form_start(form) }}
|
|
{{ form_row(form.name, {label: 'name', attr: {placeholder: '/m/'}}) }}
|
|
{{ form_row(form.title, {label: 'title'}) }}
|
|
{{ component('editor_toolbar', {id: 'magazine_description'}) }}
|
|
{{ form_row(form.description, {label: false, attr: {placeholder: 'description'}}) }}
|
|
{{ component('editor_toolbar', {id: 'magazine_rules'}) }}
|
|
{{ form_row(form.rules, {label: false, attr: {placeholder: 'rules'}}) }}
|
|
{{ form_row(form.isAdult, {label:'is_adult', row_attr: {class: 'checkbox'}}) }}
|
|
<div class="row actions">
|
|
{{ form_row(form.submit, {label: 'create_new_magazine', attr: {class: 'btn btn__primary'}, row_attr: {class: 'float-end'}}) }}
|
|
</div>
|
|
{{ form_end(form) }}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|