templates/index/fragments/derniers_experts.html.twig line 1

Open in your IDE?
  1. {% if experts|default %}
  2.  
  3.     <div class="card col-12 col-lg-12 col-xl-6 no_shadow  no_border" style="background-color:#003366">
  4.         <div class="row">
  5.             <div class="col-12 col-sm-7 mt-3 mb-2">
  6.                 <i class="fa-light fa-magnifying-glass fa-2x blanc"></i>&nbsp;&nbsp;
  7.                 <span class="soustitre_medium fs13 blanc gris_333">
  8.                     <a href="{{ path('annuaires_experts_index',{'codePays':codePays }) }}" class="blanc">  
  9.                         {{ translate('annuaire $$d expert$${p|des experts}' ,lang,"","M","p") | raw }}
  10.                     </a>  
  11.                 </span>
  12.             </div>
  13.             {{ form_start(form, {'attr': {'class': 'col-12 col-sm-5 input-group my-3'}}) }}
  14.             {{ form_widget(form.searchWord, { 'attr': {'class': 'form-control','placeholder':'Rechercher'} }) }}
  15.             <div class="input-group-append">
  16.                 <button class="btn btn-secondary" type="submit">
  17.                     {{ translate("ok",lang,"","M") | raw }}
  18.                 </button>
  19.             </div>
  20.             {{ form_end(form, {'render_rest': false}) }}
  21.             <div class="col-12 pt-2 bleu_fusacq">
  22.                 <table class="table_sans_lignes table table-sm font_90">
  23.                     <tbody>
  24.                         {% for   expert   in experts %}
  25.                             <tr class="">
  26.                                 {% if codePays == "_fr_" and expert.date_mise_en_ligne |default  %}
  27.                                     <td><span class="blanc">{{ expert.date_mise_en_ligne|date("d/m") }}</span></td>
  28.                                     {% endif %}
  29.                                 {% set lien = path('annuaires_experts_activite_expert',{'titreslug':expert.titre_service|  slugify,'codePays':codePays,'idServicePrestataire':expert.id_service_prestataire })  %}
  30.                                 <td><a href="{{ lien}}" class="blanc only1linesIndexPage">{{ expert.titre_service| truncateLongText(40,"..")| raw }}</a></td>
  31.                                 {% if expert.nom_localisation |default  %}
  32.                                     <td class=""><span class="blanc only1linesIndexPage">{{ expert.nom_localisation| abv_nom_localisation|raw }}</span></td>
  33.                                 {% else %} 
  34.                                    <td class=""><span class="blanc only1linesIndexPage">{{ expert.id_localisation_prestataire | nom_localisation }}</span></td>
  35.                                 {% endif %}
  36.                                 
  37.                             </tr>
  38.                         {% endfor %}
  39.                     </tbody>
  40.                 </table>
  41.             </div>
  42.             <div class="col-12 card-footer text-center" style="border-top: 1px solid #2c5a87;">
  43.                 <a href="{{ path('annuaires_experts_index',{'codePays':codePays }) }}" class="font_90 blanc">{{ translate("trouver un expert" ,lang,"","M","p") | raw }}</a>
  44.                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  45.                 <span style="color: #2c5a87;">|</span>
  46.                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  47.               {% set lien = path('annuaires_experts_espace_admin_index',{'codePays':codePays })  %}
  48.                 <a href="{{ lien}}" class="font_90 blanc">{{ translate("se referencer" ,lang,"","M","p") | raw }}</a>
  49.             </div>
  50.         </div>
  51.     </div>
  52. {% endif %}