mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
selected periods are not coming through in POST. Value not valid
This commit is contained in:
@@ -67,21 +67,22 @@
|
||||
<h3>{{ 'Attribute parcours in this list to the following user,'|trans }}</h3>
|
||||
<p><span class="badge rounded-pill bg-primary">{{ paginator.totalItems }}</span> parcours à réassigner (calculé ce jour à {{ null|format_time('medium') }})</p>
|
||||
|
||||
<div class="row filter-box">
|
||||
<div class="col-md-6">
|
||||
{{ form_label(assignForm.user ) }}
|
||||
{{ form_widget(assignForm.user, {'attr': {'class': 'select2'}}) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ form_start(assignForm) }}
|
||||
<div class="row filter-box">
|
||||
<div class="col-md-6">
|
||||
{{ form_label(assignForm.assignUser ) }}
|
||||
{{ form_widget(assignForm.assignUser, {'attr': {'class': 'select2'}}) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="form_periods">
|
||||
<div class="flex-table">
|
||||
{# {{ dump(assignForm.periods.vars.choices) }} #}
|
||||
{% for choice in assignForm.periods.vars.choices %}
|
||||
<div class="form_check">
|
||||
<input id="form_periods_{{ choice.value }}" class="form-check-input" type="checkbox"
|
||||
name="form[periods][{{ choice.value }}]" value="{{ choice.data.id }}">
|
||||
<label class="form-check-label" for="form_periods_{{ choice.value }}">
|
||||
<div class="form_check" style="display:flex; margin-bottom:1rem;">
|
||||
<input id="form_periods_{{ choice.value }}" class="form-check-input" type="checkbox" style="margin-right: 1rem;"
|
||||
name="form[periods][{{ choice.value }}]" value="{{ choice.value }}">
|
||||
<label class="form-check-label" for="form_periods_{{ choice.value }}" style="display: block; width: 100%;">
|
||||
{% include '@ChillPerson/AccompanyingPeriod/_list_item.html.twig' with {'period': choice.data,
|
||||
'recordAction': m.period_actions(choice.data), 'itemMeta': m.period_meta(choice.data) } %}
|
||||
</label>
|
||||
|
Reference in New Issue
Block a user