templates/Registrations/record.html.twig line 1

Open in your IDE?
  1. {% set public = public is defined ? public : false %}
  2. {% macro cell(name, value) %}
  3.     {% if isMobile() %}
  4.     <td class=""><span class="regular upper p-alt">{{name}}</span>
  5.     <br><span class="semibold">{{ value }}</span></td>
  6.     {% else %}
  7.     <th class="regular upper nowrap">{{name}}</th>
  8.     <td><span class="semibold">{{ value }}</span></td>
  9.     {% endif %}
  10. {% endmacro %}
  11. <div class=" {{isMobile() ? 'padding-10' : 'padding-20'}} h4" style="min-height: 100%">
  12.     <div class='record-box bg-white bottom-20 text-left {{desktop("flex row")}} {{mobile("flex col center")}}'>
  13.         <div class="flex row space bottom-20 {{desktop('right-40 third top-25-in')}}">
  14.             <div class="flex col center w100">
  15.                 <figure class="w100 hoverflow relative shadow-alt {{not item.picture ? 'padding-20'}}" style="">
  16.                     {% if item.picture %}
  17.                     <img src="{{asset(item.picture.thumbnail)}}" class="block w100 os-image " data-image="{{item.picture ? asset(item.picture.file)}}">
  18.                     {% endif %}
  19.                 </figure>
  20.                 <div>
  21.                     <h3 class="success-alt top-20">{{item.lname}} {{item.fname}}</h3>
  22.                 </div>
  23.             </div>
  24.         </div>
  25.         <table class="record w100">
  26.             <tbody>
  27.                 <tr>
  28.                     <td class="nopadding" colspan="{{desktop('2')}}">
  29.                         <strong class="extrabold h4 success-alt top-25-in bottom-10-in block">ÉTAT CIVIL</strong>
  30.                     </td>
  31.                 </tr>
  32.                 <tr>{{ _self.cell("Civilité :",item.civility)}}</tr>
  33.                 <tr>{{ _self.cell("Nom :",item.fname)}}</tr>
  34.                 <tr>{{ _self.cell("Prénom(s) :",item.lname)}}</tr>
  35.                 {% if item.status %}
  36.                 <tr>{{ _self.cell("Statut :",item.status.label)}}</tr>
  37.                 {% endif %}
  38.                 <tr>{{ _self.cell("Fonction :",item.function)}}</tr>
  39.                 <tr>{{ _self.cell("Nationalité :",item.nationality ? item.nationality|country)}}</tr>
  40.                 <tr>
  41.                     <td class="nopadding" colspan="{{desktop('2')}}">
  42.                         <strong class="extrabold h4 success-alt top-25-in bottom-10-in block">ENTITÉ</strong>
  43.                     </td>
  44.                 </tr>
  45.                 <tr>{{ _self.cell("Structure :",item.company)}}</tr>
  46.                 <tr>{{ _self.cell("Pays :",item.country ? item.country|country)}}</tr>
  47.                 <tr>{{ _self.cell("Ville :",item.town)}}</tr>
  48.                 <tr>{{ _self.cell("Adresse :",item.address)}}</tr>
  49.                 <tr>
  50.                     <td class="nopadding" colspan="{{desktop('2')}}">
  51.                         <strong class="extrabold h4 success-alt top-25-in bottom-10-in block">CONTACTS ET RÉSEAUX SOCIAUX</strong>
  52.                     </td>
  53.                 </tr>
  54.                 <tr>{{ _self.cell("Email :",item.email)}}</tr>
  55.                 <tr>{{ _self.cell("Téléphone :",item.phone)}}</tr>
  56.                 <tr>{{ _self.cell("Facebook :",item.facebook)}}</tr>
  57.                 <tr>{{ _self.cell("Twitter :",item.twitter)}}</tr>
  58.                 <tr>{{ _self.cell("LinkedIn :",item.linkedin)}}</tr>
  59.                 <tr>{{ _self.cell("Whatsapp :",item.whatsapp)}}</tr>
  60.                 <tr>
  61.                     <td class="nopadding" colspan="{{desktop('2')}}">
  62.                         <strong class="extrabold h4 success-alt top-25-in bottom-10-in block">DOCUMENT DE VOYAGE</strong>
  63.                     </td>
  64.                 </tr>
  65.                 <tr>{{ _self.cell("Type de document :",item.passeportType)}}</tr>
  66.                 <tr>{{ _self.cell("N° du document :",item.passeport)}}</tr>
  67.                 <tr>{{ _self.cell("Date de délivrance :",item.passeportIssueDate ? item.passeportIssueDate|frdate)}}</tr>
  68.                 <tr>{{ _self.cell("Date d'expiration :",item.passeportExpirationDate ? item.passeportExpirationDate|frdate)}}</tr>
  69.                 <tr>
  70.                     <td class="nopadding" colspan="{{desktop('2')}}">
  71.                         <strong class="extrabold h4 success-alt top-25-in bottom-10-in block">TRAJET VERS COTONOU</strong>
  72.                     </td>
  73.                 </tr>
  74.                 <tr>{{ _self.cell("Compagnie de voyage :",item.travelArrivalCompany)}}</tr>
  75.                 <tr>{{ _self.cell("Numéro de vol :",item.travelArrivalFlight)}}</tr>
  76.                 <tr>{{ _self.cell("Point d'arrivée :",item.travelArrivalPoint)}}</tr>
  77.                 <tr>{{ _self.cell("Date d'arrivée :",item.travelArrivalDate ? item.travelArrivalDate|frdate)}}</tr>
  78.                 <tr>{{ _self.cell("Heure d'arrivée :",item.travelArrivalTime ? item.travelArrivalTime|date("H\\H i"))}}</tr>
  79.                 <tr>
  80.                     <td class="nopadding" colspan="{{desktop('2')}}">
  81.                         <strong class="extrabold h4 success-alt top-25-in bottom-10-in block">TRAJET DE RETOUR</strong>
  82.                     </td>
  83.                 </tr>
  84.                 <tr>{{ _self.cell("Compagnie de voyage :",item.travelDepartureCompany)}}</tr>
  85.                 <tr>{{ _self.cell("Numéro de vol :",item.travelDepartureFlight)}}</tr>
  86.                 <tr>{{ _self.cell("Point de départ :",item.travelDeparturePoint)}}</tr>
  87.                 <tr>{{ _self.cell("Date de départ :",item.travelDepartureDate ? item.travelDepartureDate|frdate)}}</tr>
  88.                 <tr>{{ _self.cell("Heure de départ :",item.travelDepartureTime ? item.travelDepartureTime|date("H\\H i"))}}</tr>
  89.                 <tr>
  90.                     <td class="nopadding" colspan="{{desktop('2')}}">
  91.                         <strong class="extrabold h4 success-alt top-25-in bottom-10-in block">PROGRAMMES SÉLECTIONNÉS</strong>
  92.                     </td>
  93.                 </tr>
  94.                 {% for o in item.programs %}
  95.                 <tr>{{ _self.cell(o.isMinistersMeeting ? "Réunion des ministres":"Réunion des experts",o.date|frdate(1))}}</tr>
  96.                 {% else %}
  97.                 <tr>{{ _self.cell("","Aucun")}}</tr>
  98.                 {% endfor %}
  99.             </tbody>
  100.         </table>
  101.     </div>
  102.     {% if is_granted('ROLE_USER') %}
  103.     <div class="hz-20-in vt-30-in text-center adapt shadow radius-5 bg-white top-20">
  104.         {% if item.confirmedAt %}
  105.         <span class="os-confirm btn btn-success-alt upper semibold shadow radius-5 right-10 pointer" data-confirm-href="{{path('participants-validate',{'id':item.id})}}">
  106.             <i class="fa fa-check"></i>
  107.             <span>Valider l'inscription</span>
  108.         </span>
  109.         {% else %}
  110.         <div class="padding-20 text-center">
  111.             <span class="h3 semibold error">Inscription non confirmée par le participant.</span>
  112.         </div>
  113.         {% endif %}
  114.     </div>
  115.     {% else %}
  116.     <div class="hz-20-in vt-30-in text-center radius-5 top-20">
  117.         {% if public and item.confirmedAt is null %}
  118.         <span class="hz-30-in vt-10-in bg-success white upper bold h4 right-10 os-confirm pointer radius-5" data-confirm-class="" data-confirm-href="{{path('inscription-confirm',{'token':item.token})}}">
  119.             <i class='fa fa-check right-10'></i>
  120.             <span>Confirmer{{desktop(" ma demande")}}</span>
  121.         </span>
  122.         {% endif %}
  123.         {% if public %}
  124.         <a class="hz-30-in vt-10-in bg-success-alt white upper bold h4 left-10 radius-5" href="{{path('inscription-edit',{'token':item.token})}}">
  125.             <i class='fa fa-pen right-10'></i>
  126.             <span>Modifier{{desktop(" mes infos")}}</span>
  127.         </a>
  128.         {% endif %}
  129.     </div>
  130.     {% endif %}
  131. </div>