{# ========================= _formManageBlockModal.html.twig ========================= #} {# ========================= CSS compact ========================= #} {{ form_start(form, { 'action': path('modal_manage_block', { 'id' : user.id }), 'method': 'POST', 'attr': { 'class': 'm-form m-form--fit m-form--label-align-right', 'name': 'manage_block_form', 'id': 'manage_block_form' } }) }} {# JSON des blocages quotidiens, ex: {"monday":[],"saturday":[{"start":"08:00","end":"15:00"}]} #} {{ form_row(form._token) }} {# IMPORTANT: empêcher le rendu automatique des champs restants (dayOfWeek + blockedHour*) #} {{ form_end(form, {'render_rest': false}) }} {# ========================= JS (scope global + init fiable) ========================= #}