templates/articles/agenda.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {# extension.excerpt #}
  3. {% block style %}
  4.     {{ parent() }}
  5.     {% include "articles/styles/base-css-logic.html.twig" %}
  6.     {% if content.form is defined and content.form is not empty %}
  7.         {% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'agenda_form_css'} %}
  8.         {% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'loader_css'} %}
  9.     {% endif %}
  10. {% endblock %}
  11. {% block content %}
  12.     {% set values = "" %}
  13.     {% set values = ['Actualités', 'Agenda'] %}
  14.     {% include "articles-blocks/breadcrumb.html.twig" with {titles : values} %}
  15.     <section class="single-article-container mb-20px" id="agenda">
  16.         <article>
  17.             <section>
  18.                 <div class="mlr-1em">
  19.                     {% include "articles-blocks/header.html.twig" %}
  20.                     <div class="dflex jcsb lh28 fwwrap">
  21.                         <div>
  22.                             {% include "articles-blocks/contributors.html.twig" %}
  23.                             {% include "articles-blocks/publish-date.html.twig" %}
  24.                         </div>
  25.                         <div class="taright">
  26.                             {% include "articles-blocks/readtime.html.twig" %}
  27.                             {% include "articles-blocks/share-buttons.html.twig" %}
  28.                         </div>
  29.                     </div>
  30.                     {% if extension.excerpt.categories is defined and extension.excerpt.categories is not empty %}
  31.                         {% set categories = extension.excerpt.categories %}
  32.                         {% include "blocks/previews-from-controller/blocks/categories.html.twig" %}
  33.                     {% endif %}
  34.                     {% if content.chapo is defined and content.chapo is not empty %}
  35.                         <div class="fw500 lh28 fs20 text cgrey mt-40px mb-20px">{{ content.chapo|raw }}</div>
  36.                     {% endif %}
  37.                 </div>
  38.             </section>
  39.             {% if content.title is defined and content.title is not empty %}
  40.                 <div class="mb-3em mt-40px">
  41.                     <div class="mlr-1em fs18">
  42.                         <div class="pb1em">
  43.                             <h2>Informations pratiques</h2>
  44.                         </div>
  45.                         {% if content.organisator is defined and content.organisator is not empty %}
  46.                             <div class="container-infos-pratiques">
  47.                                 <div class="icon-ctnr">
  48.                                     <img src="/resources/img/user-offre-icon.svg" alt="Profil" class="mr-1em">
  49.                                 </div>
  50.                                 <span>
  51.                                     Organisateur :
  52.                                     {{ (content.organisator | raw) == "pqna" ? "PQN-A" : "Externe - " ~ content.organisator_attendants | raw }}
  53.                                 </span>
  54.                             </div>
  55.                         {% endif %}
  56.                         {% if content.date is defined and content.date is not empty %}
  57.                             <div class="container-infos-pratiques">
  58.                                 <div class="icon-ctnr">
  59.                                     <img src="/resources/img/calendar-icon.svg" alt="Calendrier" class="mr-1em">
  60.                                 </div>
  61.                                 <span>
  62.                                     {% if content.endDate is defined and content.endDate is not empty and content.endDate != content.date %}
  63.                                         Du
  64.                                     {% endif %}
  65.                                     {{ content.date|format_datetime('full', 'none', locale='fr')|split(' ', 2)[1] }}
  66.                                     {% if content.endDate is defined and content.endDate is not empty and content.endDate != content.date %}
  67.                                         au
  68.                                         {{ content.endDate|format_datetime('full', 'none', locale='fr')|split(' ', 2)[1] }}
  69.                                     {% endif %}
  70.                                 </span>
  71.                                 <div class="icon-ctnr ml-1em">
  72.                                     <img src="/resources/img/clock-icon.svg" alt="Calendrier" class="mr-1em">
  73.                                 </div>
  74.                                 <span>
  75.                                     {% if content.time is defined and content.time is not empty %}
  76.                                         {{ content.time }}
  77.                                     {% endif %}
  78.                                 </span>
  79.                             </div>
  80.                         {% endif %}
  81.                         {% if content.place_text is defined and content.place_text is not empty or 
  82.                         content.place_link is defined and content.place_link is not empty %}
  83.                             <div class="container-infos-pratiques">
  84.                                 <div class="icon-ctnr">
  85.                                     <img src="/resources/img/pin-icon.svg" alt="Structure" class="mr-1em">
  86.                                 </div>
  87.                                 <span>
  88.                                     {% if content.place_select == "texte" %}
  89.                                         {{ content.place_text }}
  90.                                     {% else %}
  91.                                         <a href="{{ content.place_link }}" target="_blank">{{ content.place_link }}</a>
  92.                                     {% endif %}
  93.                                 </span>
  94.                             </div>
  95.                         {% endif %}
  96.                         <div class="container-infos-pratiques">
  97.                             <div class="icon-ctnr">
  98.                                 <img src="/resources/img/cash-icon.svg" alt="Location" class="mr-1em">
  99.                             </div>
  100.                             {% if content.prices is defined and content.prices is not empty %}
  101.                                 <span>
  102.                                     {% if content.prices|length > 0 %}
  103.                                         {% set finalPrice = 0 %}
  104.                                         {% for price in content.prices %}
  105.                                             {% if price.price is defined and price.price is not empty %}
  106.                                                 {% set finalPrice = finalPrice + price.price %}
  107.                                             {% endif %}
  108.                                         {% endfor %}
  109.                                         {% if finalPrice > 0 %}
  110.                                             De 0€ à {{ finalPrice|format_number(locale='fr') }}€
  111.                                         {% else %}
  112.                                             Gratuit
  113.                                         {% endif %}
  114.                                     {% endif %}
  115.                                 </span>
  116.                             {% else %}
  117.                                 Gratuit
  118.                             {% endif %}
  119.                         </div>
  120.                         {% if content.form %}
  121.                             <div id="form-info-container">
  122.                                 {% include "articles/blocks/noscript.html.twig" %}
  123.                                 {% if app.request.get('Erreur') is not null and app.request.get('Erreur') == 00000  or app.request.get('send') == true %}
  124.                                     <p class="primary mt-1em">Vous êtes inscrit.e à cet événement. Pour vous désinscrire, veuillez contacter l'administrateur du site.</p>
  125.                                 {% elseif app.request.get('Erreur') is not null and app.request.get('Erreur') == 00001 %}
  126.                                     <p class="danger mt-1em">Vous avez annulé votre paiement. Veuillez patienter quelques secondes.</p>
  127.                                     <meta http-equiv="refresh" content="15;URL={{sulu_content_root_path() ~ content.routePath}}">
  128.                                 {% else %}
  129.                                     {% if app.user and app.user.contact in content.participants and check_dynamic_entry(uuid, app.user.contact.id) is not null %}
  130.                                         <p class="danger mt-1em">Une erreur s'est produite lors de la validation de votre inscription. Veuillez contacter l'administrateur du site.</p>
  131.                                     {% elseif app.user and app.user.contact in content.participants %}
  132.                                         <p class="primary mt-1em">Vous êtes inscrit.e à cet événement. Pour vous désinscrire, veuillez contacter l'administrateur du site.</p>
  133.                                     {% endif %}
  134.                                 {% endif %}
  135.                             </div>
  136.                             {% if not (app.user and app.user.contact in content.participants) or app.user is empty %}
  137.                                 {% set referer = app.request.server.get('HTTP_REFERER') %}
  138.                                 {% set PBX_SITE = app.request.server.get('PBX_SITE') %}
  139.                                 {% set PBX_RANG = app.request.server.get('PBX_RANG') %}
  140.                                 {% set PBX_IDENTIFIANT = app.request.server.get('PBX_IDENTIFIANT') %}
  141.                                 {% set PBX_TOTAL = "%p%" %}
  142.                                 {% set PBX_DEVISE = "978" %}
  143.                                 {% if app.user %}
  144.                                     {% set PBX_CMD = uuid ~ "_" ~ app.user.contact.id ~ "_" ~ "now"|date("U")  %}
  145.                                     {% set PBX_PORTEUR = app.user.email %}
  146.                                 {% else %}
  147.                                     {% set PBX_CMD = uuid ~ "_" ~ "now"|date("U") %}
  148.                                     {% set PBX_PORTEUR = "%r%" %}
  149.                                 {% endif %}
  150.                                 {% set PBX_RETOUR = "Mt:M;Ref:R;Auto:A;Erreur:E;" %}
  151.                                 {% set PBX_EFFECTUE = sulu_content_root_path() ~ content.routePath %}
  152.                                 {% set PBX_REFUSE = sulu_content_root_path() ~ content.routePath %}
  153.                                 {% set PBX_ANNULE = sulu_content_root_path() ~ content.routePath %}
  154.                                 {% set PBX_ATTENTE = sulu_content_root_path() ~ content.routePath %}
  155.                                 {% set PBX_HASH = "SHA512" %}
  156.                                 {% set PBX_TIME = "now"|date("Y-m-d\\TH:i:sP") %}
  157.                                 {% set PBX_REPONDRE_A = sulu_content_root_path() ~ "/paybox/payment/events" %}
  158.                                 {% set hmac = app.request.server.get('HMAC_SITE') %}
  159.                                 {% set msg = "PBX_SITE=" ~ PBX_SITE ~ 
  160.                                 "&PBX_RANG=" ~ PBX_RANG ~ 
  161.                                 "&PBX_IDENTIFIANT=" ~ PBX_IDENTIFIANT ~
  162.                                 "&PBX_TOTAL=" ~ PBX_TOTAL ~
  163.                                 "&PBX_DEVISE=" ~ PBX_DEVISE ~
  164.                                 "&PBX_CMD=" ~ PBX_CMD ~
  165.                                 "&PBX_PORTEUR=" ~ PBX_PORTEUR ~
  166.                                 "&PBX_RETOUR=" ~ PBX_RETOUR ~
  167.                                 "&PBX_EFFECTUE=" ~ PBX_EFFECTUE ~
  168.                                 "&PBX_REFUSE=" ~ PBX_REFUSE ~
  169.                                 "&PBX_ANNULE=" ~ PBX_ANNULE ~
  170.                                 "&PBX_ATTENTE=" ~ PBX_ATTENTE ~
  171.                                 "&PBX_HASH=" ~ PBX_HASH ~
  172.                                 "&PBX_TIME=" ~ PBX_TIME ~
  173.                                 "&PBX_REPONDRE_A=" ~ PBX_REPONDRE_A %}
  174.                                 {% set form_id = content.form.vars['id'] %}
  175.                                 {% set form_type = content.form.vars['value'].type %}
  176.                                 {% set form_type_id = content.form.vars['value'].typeId %}
  177.                                 {% set form_locale = content.form.vars['value'].locale %}
  178.                                 {% set form_formId = content.form.children['formId'].vars['value'] %}
  179.                                 {% set form_formName = content.form.children['formName'].vars['value'] %}
  180.                                 {% set form_checksum = content.form.children['checksum'].vars['value'] %}
  181.                                 {% if not app.user %}
  182.                                     <p class="mt-2em">
  183.                                         <a href="{{ path('sulu_community.registration') }}" class="cblue fw600">Créez vous un compte</a> ou <a href="{{ path('sulu_community.login') }}" class="cblue fw600">connectez-vous</a> afin de faciliter votre inscription{% if content.form_visible %} ou <span id="show-event-form" class="cblue fw600" tabIndex="0">poursuivez sans compte</span>{% endif %}.
  184.                                     </p>
  185.                                 {% endif %}
  186.                                 {% if (not app.user and content.form_visible) or (app.user is defined and app.user is not empty) %}
  187.                                     <div{% if not app.user %} class="hidden"{% endif %} id="event-form-container">
  188.                                         {{ form_start(content.form, {"attr": {"id": "sulu-agenda-form", "class": "dflex fdc prelative", "data-id": form_type_id}}) }}
  189.                                             <div class="w100 h100 pabsolute with-loader">
  190.                                                 <div class="lds-dual-ring pabsolute form-loader" id="loader"></div>
  191.                                             </div>
  192.                                             {% set excludedValues = ['firstName', 'lastName', 'email', 'locale', 'type', 'typeId', 'formId', 'formName', 'checksum', 'text', 'text1', 'text2'] %}
  193.                                             {% if app.user %}    
  194.                                                 <input type="hidden" id="{{form_id ~ "_firstName" }}" name="{{form_id ~ "[firstName]"}}" value="{{ app.user.firstName }}">
  195.                                                 <input type="hidden" id="{{form_id ~ "_lastName" }}" name="{{form_id ~ "[lastName]"}}" value="{{ app.user.lastName }}">
  196.                                                 <input type="hidden" id="{{form_id ~ "_email" }}" name="{{form_id ~ "[email]"}}" value="{{ app.user.email }}">
  197.                                                 <input type="hidden" id="{{form_id ~ "_text2" }}" name="{{form_id ~ "[text2]"}}" value="{{ app.user.contact.structure }}">
  198.                                             {% else %}
  199.                                                 {% if content.form.firstName is defined and content.form.firstName is not null %}
  200.                                                     <label for="{{form_id ~ "_firstName" }}" class="fw400 fs16 lh20 mb-8px mt-1em">Prénom *</label>
  201.                                                     <input type="text" id="{{form_id ~ "_firstName" }}" name="{{form_id ~ "[firstName]"}}" required="">
  202.                                                 {% endif %}
  203.                                                 {% if content.form.lastName is defined and content.form.lastName is not null %}
  204.                                                     <label for="{{form_id ~ "_lastName" }}" class="fw400 fs16 lh20 mb-8px mt-1em">Nom *</label>
  205.                                                     <input type="text" id="{{form_id ~ "_lastName" }}" name="{{form_id ~ "[lastName]" }}" required="">
  206.                                                 {% endif %}
  207.                                                 {% if content.form.email is defined and content.form.email is not null %}
  208.                                                     <label for="{{form_id ~ "_email" }}" class="fw400 fs16 lh20 mb-8px mt-1em">Email *</label>
  209.                                                     <input type="text" id="{{form_id ~ "_email" }}" name="{{form_id ~ "[email]" }}" required="">
  210.                                                 {% endif %}
  211.                                                 {% if content.form.text2 is defined and content.form.text2 is not null %}
  212.                                                     <label for="{{form_id ~ "_text2" }}" class="fw400 fs16 lh20 mb-8px mt-1em">Structure *</label>
  213.                                                     <input type="text" id="{{form_id ~ "_text2" }}" name="{{form_id ~ "[text2]" }}" required="">
  214.                                                 {% endif %}
  215.                                             {% endif %}
  216.                                             <input type="hidden" id="{{form_id ~ "_locale" }}" name="{{form_id ~ "[locale]"}}" value="{{ form_locale }}">
  217.                                             <input type="hidden" id="{{form_id ~ "_type" }}" name="{{form_id ~ "[type]"}}" value="{{ form_type }}">
  218.                                             <input type="hidden" id="{{form_id ~ "_typeId" }}" name="{{form_id ~ "[typeId]"}}" value="{{ form_type_id }}">
  219.                                             <input type="hidden" id="{{form_id ~ "_formId" }}" name="{{form_id ~ "[formId]"}}" value="{{ form_formId }}">
  220.                                             <input type="hidden" id="{{form_id ~ "_formName" }}" name="{{form_id ~ "[formName]"}}" value="{{ form_formName }}">
  221.                                             <input type="hidden" id="{{form_id ~ "_checksum" }}" name="{{form_id ~ "[checksum]"}}" value="{{ form_checksum }}">
  222.                                             <input type="hidden" id="{{form_id ~ "_text" }}" name="{{form_id ~ "[text]"}}" value="{{ PBX_CMD }}">
  223.                                             <input type="hidden" id="{{form_id ~ "_text1" }}" name="{{form_id ~ "[text1]"}}" value="">
  224.                                             {% for i, child in content.form.children|keys %}
  225.                                                 {% if child not in excludedValues %}
  226.                                                     {% set newChild = attribute(content.form, child) %}
  227.                                                     {% if "textarea" in child and "pqna description" in newChild.vars.label %}
  228.                                                         <input type="hidden" id="{{form_id ~ "_" ~ child }}" name="{{form_id ~ "[" ~ child ~ "]"}}">
  229.                                                     {% elseif "dropdown" in child and "Département" in newChild.vars.label %}
  230.                                                         {% if app.user.contact.departement is defined and app.user.contact.departement is not null %}
  231.                                                             {% set contact_dpmt = app.user.contact.departement.translations[0].translation %}
  232.                                                         {% else %}
  233.                                                             {% set contact_dpmt = "" %}
  234.                                                         {% endif %}
  235.                                                         <div class="mt-1em dflex fdc">
  236.                                                             <label class="fw400 fs16 lh20" for="{{ form_id ~ "_" ~ child }}" label_html="true">{{ field_label(content.form.children[child]) }}</label>
  237.                                                             <select name="{{ field_name(content.form.children[child]) }}" class="form-control" id="{{ form_id ~ "_" ~ child }}"{% if content.form.children[child].vars.required %} required{% endif %}>
  238.                                                                 <option value=""></option>
  239.                                                                 {% for label, value in field_choices(content.form.children[child]) %}
  240.                                                                     {% set selected = (value == contact_dpmt) ? 'selected' : '' %}
  241.                                                                     <option value="{{ value }}" {{ selected }}>{{ label }}</option>
  242.                                                                 {% endfor %}
  243.                                                             </select>
  244.                                                             {% if contact_dpmt is not empty %}
  245.                                                                 <input type="hidden" name="{{ field_name(content.form.children[child]) }}" value="{{ contact_dpmt }}">
  246.                                                             {% endif %}
  247.                                                         </div>
  248.                                                     {% elseif "dropdown" in child and "Fonction" in newChild.vars.label %}
  249.                                                         {% set contact_dpmt = "" %}
  250.                                                         {% if app.user %}
  251.                                                             {% if app.user.fonction is defined and app.user.fonction is not null %}
  252.                                                                 {% set contact_dpmt = app.user.fonction %}
  253.                                                             {% elseif 'opérateur' in app.user.typologieActeurValue|lower or 'partenaire' in app.user.typologieActeurValue|lower or app.user.typologieActeurValue|lower == 'autres' %}
  254.                                                                 {% set contact_dpmt = app.user.typologieActeurValue %}
  255.                                                                 {% if app.user.typologieActeurValue|lower == 'partenaires' %}
  256.                                                                     {% set contact_dpmt = 'Partenaire' %}
  257.                                                                 {% endif %}
  258.                                                                 {% if app.user.typologieActeurValue|lower == 'opérateurs' %}
  259.                                                                     {% set contact_dpmt = 'Opérateur' %}
  260.                                                                 {% endif %}
  261.                                                             {% else %}
  262.                                                                 {% set contact_dpmt = "" %}
  263.                                                             {% endif %}
  264.                                                         {% endif %}
  265.                                                         <div class="mt-1em dflex fdc{% if app.user %} dnone{% endif %}">
  266.                                                             <label class="fw400 fs16 lh20" for="{{ form_id ~ "_" ~ child }}" label_html="true">{{ field_label(content.form.children[child]) }}</label>
  267.                                                             <select name="{{ field_name(content.form.children[child]) }}" class="form-control" id="{{ form_id ~ "_" ~ child }}"{% if contact_dpmt is not empty %} disabled{% endif %}{% if content.form.children[child].vars.required %} required{% endif %}>
  268.                                                                 <option value=""></option>
  269.                                                                 {% for label, value in field_choices(content.form.children[child]) %}
  270.                                                                     {% set selected = (value == contact_dpmt) ? 'selected' : '' %}
  271.                                                                     <option value="{{ value }}" {{ selected }}>{{ label }}</option>
  272.                                                                 {% endfor %}
  273.                                                             </select>
  274.                                                             {% if contact_dpmt is not empty %}
  275.                                                                 <input type="hidden" name="{{ field_name(content.form.children[child]) }}" value="{{ contact_dpmt }}">
  276.                                                             {% endif %}
  277.                                                         </div>
  278.                                                     {% elseif "salutation" in child %}
  279.                                                         <div class="mt-1em dflex fdc">
  280.                                                             <label class="fw400 fs16 lh20" for="{{ form_id ~ "_" ~ child }}" label_html="true">{{ field_label(content.form.children[child]) }}</label>
  281.                                                             <select name="{{ field_name(content.form.children[child]) }}" class="form-control" id="{{ form_id ~ "_" ~ child }}"{% if content.form.children[child].vars.required %} required{% endif %}>
  282.                                                                 <option value=""></option>
  283.                                                                 {% for label, value in field_choices(content.form.children[child]) %}
  284.                                                                     <option value="{{ value }}">{{ label }}</option>
  285.                                                                 {% endfor %}
  286.                                                             </select>
  287.                                                         </div>
  288.                                                     {% elseif child == "submit" %}
  289.                                                         {% if content.prices|length > 0 %}
  290.                                                             <div class="mt-1em dflex fdc" id="prices_checkbox_container">
  291.                                                                 {% for i, price in content.prices %}
  292.                                                                     {% set true_price = price.price %}
  293.                                                                     {% if true_price is null %}
  294.                                                                         {% set true_price = 0 %}
  295.                                                                     {% endif %}
  296.                                                                     {% set id = true_price ~ "_" ~ i %}
  297.                                                                     <div class="dflex mt-8px">
  298.                                                                         <input type="checkbox" class="price_checkboxes" id="{{id}}" value="{{ true_price }}">
  299.                                                                         <label for="{{ id }}" class="fw400 fs16 lh20">{{ price.label }} - {{ true_price|format_number(locale='fr') }}€</label>
  300.                                                                     </div>
  301.                                                                 {% endfor %}
  302.                                                             </div>
  303.                                                         {% endif %}
  304.                                                         <div class="mt-1em dflex fdc">
  305.                                                             {{ form_label(newChild, {'attr': {'class': 'fw400 fs16 lh20'}, 'label_html': true}) }}
  306.                                                             {{ form_widget(newChild, {'attr': {'class': 'CTA nodeco diblock mt-1em lh28'}}) }}
  307.                                                         </div>
  308.                                                     {% elseif "checkbox" in child and "checkboxMultiple" not in child %}    
  309.                                                         <div class="mt-1em checkbox dflex mb-8px">
  310.                                                             {{ form_widget(newChild, {'attr': {'class': 'mr-0p5em'}}) }}
  311.                                                             {{ form_label(newChild, '', {'label_attr': {'class': 'fw400 fs16 lh20'}, 'label_html': true}) }}
  312.                                                         </div>
  313.                                                     {% elseif "checkboxMultiple" in child or "radio" in child %}
  314.                                                         <div class="mt-1em{% if "checkboxMultiple" in child %} checkboxMultiple{% endif %}{% if "radio" in child %} radio{% endif %} mb-8px">
  315.                                                             {{form_label(newChild, '', {'label_attr': {'class': 'fw400 fs16 lh20 mb-1em dblock'}, 'label_html': true}) }}
  316.                                                             {% for subChild in newChild %}
  317.                                                                 {% set margin = ' mb-8px' %}
  318.                                                                 {% if "radio" in child %}
  319.                                                                     {% set margin = '' %}
  320.                                                                 {% endif %}
  321.                                                                 <div class="mt-0p5em dflex{{ margin }}">
  322.                                                                     {{ form_widget(subChild, {'attr': {'class': 'fw400 fs16 lh20 mr-0p5em' ~ margin}}) }}
  323.                                                                     {{ form_label(subChild, '', {'label_attr': {'class': 'fw400 fs16 lh20' ~ margin}, 'label_html': true}) }}
  324.                                                                 </div>
  325.                                                             {% endfor %}
  326.                                                         </div>
  327.                                                     {% elseif "please_fill_me" in child %}
  328.                                                         {%- block honeypot_row -%}
  329.                                                             <div class="dnone">
  330.                                                                 {{ form_widget(newChild) }}
  331.                                                             </div>
  332.                                                         {%- endblock -%}
  333.                                                     {% elseif "dropdownMultiple" in child %}
  334.                                                         <div class="mt-1em dflex fdc checkboxMultiple">
  335.                                                             {{ form_label(newChild, '', {'label_attr': {'class': 'fw400 fs16 lh20 mb-8px'}, 'label_html': true}) }}
  336.                                                             <ul>
  337.                                                                 {% for choice in newChild.vars.choices %}
  338.                                                                     <li class="dflex jcsb aic">
  339.                                                                         <div class="mt-0p5em dflex aic mb-8px">
  340.                                                                             <input type="checkbox" id="{{ choice.value }}" value="{{ choice.value }}" name="{{ form_id ~ "[" ~ child ~ "]" }}[]" class="fw400 fs16 lh20 mr-0p5em mb-8px">
  341.                                                                             <label for="{{ choice.value }}" class="fw400 fs16 lh20 mr-0p5em mb-8px">{{ choice.label|raw|trim }}</label>
  342.                                                                         </div>
  343.                                                                     </li>
  344.                                                                 {% endfor %}
  345.                                                             </ul>
  346.                                                         </div>
  347.                                                     {% else %}
  348.                                                         <div class="mt-1em dflex fdc">
  349.                                                             {{ form_label(newChild, '', {'label_attr': {'class': 'fw400 fs16 lh20 mb-8px'}, 'label_html': true}) }}
  350.                                                             {{ form_widget(newChild) }}
  351.                                                         </div>
  352.                                                     {% endif %}
  353.                                                 {% endif %}
  354.                                             {% endfor %}
  355.                                         {{ form_end(content.form, {render_rest: false}) }}
  356.                                     </div>
  357.                                     <form id="paybox-form" action="{{ app.request.server.get('PBX_URL') }}" method="POST">
  358.                                         <input type="hidden" name="PBX_SITE" value="{{ PBX_SITE }}">
  359.                                         <input type="hidden" name="PBX_RANG" value="{{ PBX_RANG }}">
  360.                                         <input type="hidden" name="PBX_IDENTIFIANT" value="{{ PBX_IDENTIFIANT }}">
  361.                                         <input type="hidden" name="PBX_TOTAL" value="{{ PBX_TOTAL }}">
  362.                                         <input type="hidden" name="PBX_DEVISE" value="{{ PBX_DEVISE }}">
  363.                                         <input type="hidden" name="PBX_CMD" value="{{ PBX_CMD }}">
  364.                                         <input type="hidden" name="PBX_PORTEUR" value="{{ PBX_PORTEUR }}">
  365.                                         <input type="hidden" name="PBX_RETOUR" value="{{ PBX_RETOUR }}">
  366.                                         <input type="hidden" name="PBX_EFFECTUE" value="{{ PBX_EFFECTUE }}">
  367.                                         <input type="hidden" name="PBX_REFUSE" value="{{ PBX_REFUSE }}">
  368.                                         <input type="hidden" name="PBX_ANNULE" value="{{ PBX_ANNULE }}">
  369.                                         <input type="hidden" name="PBX_ATTENTE" value="{{ PBX_ATTENTE }}">
  370.                                         <input type="hidden" name="PBX_HASH" value="{{ PBX_HASH }}">
  371.                                         <input type="hidden" name="PBX_TIME" value="{{ PBX_TIME }}">
  372.                                         <input type="hidden" name="PBX_REPONDRE_A" value="{{ PBX_REPONDRE_A }}">
  373.                                         <input type="hidden" name="PBX_HMAC" value="{{ hash_hmac('sha512', msg, hmac)}}">
  374.                                     </form>
  375.                                 {% endif %}
  376.                             {% endif %}
  377.                         {% endif %}
  378.                     </div>
  379.                 </div>
  380.             {% endif %}
  381.             {% if content.main_content is defined and content.main_content is not empty and content.main_content|length > 0 %}
  382.                 {% for data in content.main_content %}
  383.                     {% if data.type == "sub_content" %}
  384.                         {% include "articles-blocks/articles-content.html.twig" %}
  385.                     {% endif %}
  386.                     {% if data.type == "linked_with" %}
  387.                         {% include "articles-blocks/linked-with.html.twig" %}
  388.                     {% endif %}
  389.                     {% if data.type == "see_more" %}
  390.                         {% include "articles-blocks/see-more.html.twig" %}
  391.                     {% endif %}
  392.                 {% endfor %}
  393.             {% endif %}
  394.         </article>
  395.     </section>
  396. {% endblock %}
  397. {% block javascripts %}
  398.     {% include "articles/javascripts/base-article-js.html.twig" %}
  399.     {{ encore_entry_script_tags('paybox') }}
  400.     {{ parent() }}
  401. {% endblock %}