You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.2 KiB
33 lines
1.2 KiB
{% extends 'layout.html.twig' %} |
|
|
|
{% block body %} |
|
<h1>Create Magazine</h1> |
|
|
|
{{ form_start(form) }} |
|
{{ form_row(form.title) }} |
|
{{ form_row(form.summary) }} |
|
{{ form_row(form.imageUrl) }} |
|
{{ form_row(form.language) }} |
|
{{ form_row(form.tags) }} |
|
|
|
<h3>Categories</h3> |
|
<div |
|
{{ stimulus_controller('form-collection') }} |
|
data-form-collection-index-value="{{ form.categories|length > 0 ? form.categories|last.vars.name + 1 : 0 }}" |
|
data-form-collection-prototype-value="{{ form_widget(form.categories.vars.prototype)|e('html_attr') }}"> |
|
<ul class="list-unstyled" {{ stimulus_target('form-collection', 'collectionContainer') }}> |
|
{% for cat in form.categories %} |
|
<li class="mb-3">{{ form_row(cat) }}</li> |
|
{% endfor %} |
|
</ul> |
|
<div class="actions mt-3"> |
|
<button type="button" class="btn btn-secondary" {{ stimulus_action('form-collection', 'addCollectionElement') }}>Add category</button> |
|
</div> |
|
</div> |
|
|
|
<div class="mt-3 d-flex flex-row gap-2 actions"> |
|
<a class="btn btn-secondary" href="{{ path('mag_wizard_cancel') }}">Cancel</a> |
|
<button class="btn btn-primary">Next: Attach articles</button> |
|
</div> |
|
{{ form_end(form) }} |
|
{% endblock %}
|
|
|