|
@@ -1,4 +1,5 @@
|
|
- {{ form_start(form, {'attr': {'class': ''}}) }}
|
|
|
|
|
|
+ {% set classLi = "list-group-item mb-3" %}
|
|
|
|
+ {{ form_start(form, {'attr': {'class': ''} }) }}
|
|
<div class="container-fluid">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="row">
|
|
<div class="col-md">
|
|
<div class="col-md">
|
|
@@ -24,13 +25,13 @@
|
|
{{ form_label(form.mediaVideos, 'Bandes annonces') }}
|
|
{{ form_label(form.mediaVideos, 'Bandes annonces') }}
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="card-body">
|
|
- <button type="button" id="add_media-video" class="btn btn-link add-another-collection-widget mb-3" data-path="" data-list-selector="#media-video-fields-list">Ajouter une bande annonce</button>
|
|
|
|
- <ul id="media-video-fields-list"
|
|
|
|
- data-prototype="{{ form_widget(form.mediaVideos.vars.prototype)|e }}"
|
|
|
|
- data-widget-tags="{{ '<li class="list-group-item mb-3"></li>'|e }}"
|
|
|
|
- data-widget-counter="{{ form.children|length }}">
|
|
|
|
|
|
+ <button type="button" id="add_media-video" class="btn btn-link add_item_link mb-3" data-collection-holder-id="media-video">Ajouter une bande annonce</button>
|
|
|
|
+ <ul id="media-video" class="collection-form ps-0"
|
|
|
|
+ data-index="{{ form.mediaVideos|length > 0 ? form.mediaVideos|last.vars.name + 1 : 0 }}"
|
|
|
|
+ data-class-li="{{ classLi }}"
|
|
|
|
+ data-prototype="{{ form_widget(form.mediaVideos.vars.prototype)|e('html_attr') }}">
|
|
{% for mediaVideoField in form.mediaVideos %}
|
|
{% for mediaVideoField in form.mediaVideos %}
|
|
- <li class="list-group-item mb-3">
|
|
|
|
|
|
+ <li class="{{ classLi }}">
|
|
{{ form_widget(mediaVideoField) }}
|
|
{{ form_widget(mediaVideoField) }}
|
|
{{ form_errors(mediaVideoField) }}
|
|
{{ form_errors(mediaVideoField) }}
|
|
</li>
|
|
</li>
|
|
@@ -50,13 +51,14 @@
|
|
{{ form_label(form.genres, 'Genres') }}
|
|
{{ form_label(form.genres, 'Genres') }}
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="card-body">
|
|
- <button type="button" id="add_genre" class="btn btn-link add-another-collection-widget mb-3" data-path="{{ path('videotheque_ajax_genres') }}" data-list-selector="#genre-fields-list">Ajouter un genre</button>
|
|
|
|
- <ul id="genre-fields-list"
|
|
|
|
- data-prototype="{{ form_widget(form.genres.vars.prototype)|e }}"
|
|
|
|
- data-widget-tags="{{ '<li class="list-group-item mb-3"></li>'|e }}"
|
|
|
|
- data-widget-counter="{{ form.children|length }}">
|
|
|
|
|
|
+ <button type="button" id="add_genre" class="btn btn-link add_item_link mb-3" data-path="{{ path('videotheque_ajax_genres') }}" data-collection-holder-id="genre-fields-list">Ajouter un genre</button>
|
|
|
|
+ <ul id="genre-fields-list" class="collection-form ps-0"
|
|
|
|
+ data-index="{{ form.genres|length > 0 ? form.genres|last.vars.name + 1 : 0 }}"
|
|
|
|
+ data-prototype="{{ form_widget(form.genres.vars.prototype)|e('html_attr') }}"
|
|
|
|
+ data-class-li="{{ classLi }}"
|
|
|
|
+ >
|
|
{% for genreField in form.genres %}
|
|
{% for genreField in form.genres %}
|
|
- <li class="list-group-item mb-3">
|
|
|
|
|
|
+ <li class="{{ classLi }}">
|
|
{{ form_widget(genreField) }}
|
|
{{ form_widget(genreField) }}
|
|
{{ form_errors(genreField) }}
|
|
{{ form_errors(genreField) }}
|
|
</li>
|
|
</li>
|
|
@@ -74,13 +76,14 @@
|
|
{{ form_label(form.realisateurs, 'Réalisateurs') }}
|
|
{{ form_label(form.realisateurs, 'Réalisateurs') }}
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="card-body">
|
|
- <button type="button" id="add_realisateur" class="btn btn-link add-another-collection-widget mb-3" data-path="{{ path('videotheque_ajax_realisateurs') }}" data-list-selector="#realisateur-fields-list">Ajouter un réalisateur</button>
|
|
|
|
- <ul id="realisateur-fields-list"
|
|
|
|
- data-prototype="{{ form_widget(form.realisateurs.vars.prototype)|e }}"
|
|
|
|
- data-widget-tags="{{ '<li class="list-group-item mb-3"></li>'|e }}"
|
|
|
|
- data-widget-counter="{{ form.children|length }}">
|
|
|
|
|
|
+ <button type="button" id="add_realisateur" class="btn btn-link add_item_link mb-3" data-path="{{ path('videotheque_ajax_realisateurs') }}" data-collection-holder-id="realisateur-fields-list">Ajouter un réalisateur</button>
|
|
|
|
+ <ul id="realisateur-fields-list" class="collection-form ps-0"
|
|
|
|
+ data-index="{{ form.realisateurs|length > 0 ? form.realisateurs|last.vars.name + 1 : 0 }}"
|
|
|
|
+ data-prototype="{{ form_widget(form.realisateurs.vars.prototype)|e('html_attr') }}"
|
|
|
|
+ data-class-li="{{ classLi }}"
|
|
|
|
+ >
|
|
{% for realisateurField in form.realisateurs %}
|
|
{% for realisateurField in form.realisateurs %}
|
|
- <li class="list-group-item mb-3">
|
|
|
|
|
|
+ <li class="{{ classLi }}">
|
|
{{ form_widget(realisateurField) }}
|
|
{{ form_widget(realisateurField) }}
|
|
{{ form_errors(realisateurField) }}
|
|
{{ form_errors(realisateurField) }}
|
|
</li>
|
|
</li>
|