|
@@ -17,12 +17,35 @@
|
|
{{ form_errors(form.mediaVideo) }}
|
|
{{ form_errors(form.mediaVideo) }}
|
|
{{ form_widget(form.mediaVideo) }}
|
|
{{ form_widget(form.mediaVideo) }}
|
|
#}
|
|
#}
|
|
-
|
|
|
|
|
|
+ </div>
|
|
|
|
+ <div class="">
|
|
|
|
+ <div class="card mb-3">
|
|
|
|
+ <div class="card-header">
|
|
|
|
+ {{ form_label(form.mediaVideos, 'Bandes annonces') }}
|
|
|
|
+ </div>
|
|
|
|
+ <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 }}">
|
|
|
|
+ {% for mediaVideoField in form.mediaVideos %}
|
|
|
|
+ <li class="list-group-item mb-3">
|
|
|
|
+ {{ form_widget(mediaVideoField) }}
|
|
|
|
+ {{ form_errors(mediaVideoField) }}
|
|
|
|
+ </li>
|
|
|
|
+ {% else %}
|
|
|
|
+ {{ form_widget(form.mediaVideos) }}
|
|
|
|
+ {{ form_errors(form.mediaVideos) }}
|
|
|
|
+ {% endfor %}
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="col-md">
|
|
<div class="col-md">
|
|
- <div class="card">
|
|
|
|
|
|
+ <div class="card mb-3">
|
|
<div class="card-header">
|
|
<div class="card-header">
|
|
{{ form_label(form.genres, 'Genres') }}
|
|
{{ form_label(form.genres, 'Genres') }}
|
|
</div>
|
|
</div>
|
|
@@ -46,7 +69,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md">
|
|
<div class="col-md">
|
|
- <div class="card">
|
|
|
|
|
|
+ <div class="card mb-3">
|
|
<div class="card-header">
|
|
<div class="card-header">
|
|
{{ form_label(form.realisateurs, 'Réalisateurs') }}
|
|
{{ form_label(form.realisateurs, 'Réalisateurs') }}
|
|
</div>
|
|
</div>
|
|
@@ -69,30 +92,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="">
|
|
|
|
- <div class="card">
|
|
|
|
- <div class="card-header">
|
|
|
|
- {{ form_label(form.mediaVideos, 'Bandes annonces') }}
|
|
|
|
- </div>
|
|
|
|
- <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 }}">
|
|
|
|
- {% for mediaVideoField in form.mediaVideos %}
|
|
|
|
- <li class="list-group-item mb-3">
|
|
|
|
- {{ form_widget(mediaVideoField) }}
|
|
|
|
- {{ form_errors(mediaVideoField) }}
|
|
|
|
- </li>
|
|
|
|
- {% else %}
|
|
|
|
- {{ form_widget(form.mediaVideos) }}
|
|
|
|
- {{ form_errors(form.mediaVideos) }}
|
|
|
|
- {% endfor %}
|
|
|
|
- </ul>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ form_rest(form) }}
|
|
{{ form_rest(form) }}
|