templates/front/product/location/location_form.html.twig line 1

Open in your IDE?
  1. {# <div class="card">
  2.     <div class="card-body">
  3.         {% if product.company.abonnement != null %}
  4.             {% if product.company.abonnement.isActive == true %}
  5.                 {% if product.company.abonnement.typeAbonnement.prix != 49 %}
  6.                     {% include "front/product/location/subform_location.html.twig" with {'product' : product} %}
  7.                 {% else %}
  8.                     <div class="d-flex justify-content-center align-items-center h-100">
  9.                         <div class="alert alert-info text-center" style="margin-bottom: 0;">
  10.                             <i class="fas fa-info-circle"></i><br>
  11.                             Les conditions requises pour l'activation du paiement en ligne du prestataire ne sont pas satisfaites.
  12.                         </div>
  13.                     </div>
  14.                 {% endif %}
  15.             {% elseif product.company.abonnement.isActive == false and product.company.commissionActive == true %}
  16.                 {% include "front/product/location/subform_location.html.twig" with {'product' : product} %}
  17.             {% else %}
  18.                 <div class="d-flex justify-content-center align-items-center h-100">
  19.                     <div class="alert alert-info text-center" style="margin-bottom: 0;">
  20.                         <i class="fas fa-info-circle"></i><br>
  21.                         Le paiement en ligne n'est pas encore disponible pour le prestataire.
  22.                         <br>
  23.                         <a 
  24.                             href="{{ path('send_email_to_company', { companyId: product.company.id, productId: product.id }) }}" 
  25.                             class="btn btn-info mt-2 text-light"
  26.                         >
  27.                                 Informer le prestataire
  28.                         </a>
  29.                     </div>
  30.                 </div>
  31.             {% endif %}
  32.         {% elseif product.company.abonnement == null and product.company.commissionActive == true %}
  33.             {% include "front/product/location/subform_location.html.twig" with {'product' : product} %}
  34.         {% else %}
  35.             <div class="d-flex justify-content-center align-items-center h-100">
  36.                 <div class="alert alert-info text-center" style="margin-bottom: 0;">
  37.                     <i class="fas fa-info-circle"></i><br>
  38.                     La fonctionnalité paiement en ligne du prestataire n'est pas encore accessible.
  39.                     <br>
  40.                     <a 
  41.                         href="{{ path('send_email_to_company', { companyId: product.company.id, productId: product.id }) }}" 
  42.                         class="btn btn-info mt-2 text-light"
  43.                     >
  44.                             Informer le prestataire
  45.                     </a>
  46.                 </div>
  47.             </div>
  48.         {% endif %}
  49.     </div>
  50. </div> #}
  51. <div class="card">
  52.     <div class="card-body">
  53.         {% include "front/product/location/subform_location.html.twig" with {'product' : product} %}
  54.     </div>
  55. </div>