mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
attempts to submit reassign form
This commit is contained in:
@@ -59,15 +59,37 @@
|
||||
|
||||
{{ form_end(form) }}
|
||||
|
||||
<div>
|
||||
<p>{{ 'Attribute all parcours in this list to the following users,'|trans }}</p>
|
||||
{% if form.user.vars.value is empty %}
|
||||
<p class="chill-no-data-statement">{{ 'period_by_user_list.Pick a user'|trans }}</p>
|
||||
{% elseif periods|length == 0 and form.user.vars.value is not empty %}
|
||||
<p class="chill-no-data-statement">{{ 'period_by_user_list.Any course or no authorization to see them'|trans }}</p>
|
||||
{% else %}
|
||||
<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.user ) }}
|
||||
{{ form_widget(assignForm.user, {'attr': {'class': 'select2'}}) }}
|
||||
<div id="form_periods">
|
||||
<div class="flex-table">
|
||||
{% 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 }}">
|
||||
{% include '@ChillPerson/AccompanyingPeriod/_list_item.html.twig' with {'period': choice.data,
|
||||
'recordAction': m.period_actions(choice.data), 'itemMeta': m.period_meta(choice.data) } %}
|
||||
</label>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% do assignForm.periods.setRendered() %}
|
||||
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
@@ -77,22 +99,12 @@
|
||||
</li>
|
||||
</ul>
|
||||
{{ form_end(assignForm) }}
|
||||
</div>
|
||||
|
||||
{% if form.user.vars.value is empty %}
|
||||
<p class="chill-no-data-statement">{{ 'period_by_user_list.Pick a user'|trans }}</p>
|
||||
{% elseif periods|length == 0 and form.user.vars.value is not empty %}
|
||||
<p class="chill-no-data-statement">{{ 'period_by_user_list.Any course or no authorization to see them'|trans }}</p>
|
||||
|
||||
{% else %}
|
||||
<p><span class="badge rounded-pill bg-primary">{{ paginator.totalItems }}</span> parcours à réassigner (calculé ce jour à {{ null|format_time('medium') }})</p>
|
||||
|
||||
<div class="flex-table">
|
||||
{# <div class="flex-table">
|
||||
{% for period in periods %}
|
||||
{% include '@ChillPerson/AccompanyingPeriod/_list_item.html.twig' with {'period': period,
|
||||
'recordAction': m.period_actions(period), 'itemMeta': m.period_meta(period) } %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div> #}
|
||||
{% endif %}
|
||||
|
||||
{{ chill_pagination(paginator) }}
|
||||
|
Reference in New Issue
Block a user