templates/home/_tombola.html.twig line 1

  1. <div class="col-lg-4 col-md-6 col-sm-12 d-flex">
  2.     <div class="card shadow-sm w-100 h-100">
  3.         <!-- En-tête -->
  4.         <div class="card-header text-center bg-dark text-white">
  5.             <h3 class="mb-0">{{ tombola.titre }}</h3>
  6.         </div>
  7.         <!-- Corps -->
  8.         <div class="card-body">
  9.             <ul class="list-group list-group-flush">
  10.                 <!-- Prix pilote -->
  11.                 <li class="list-group-item d-flex justify-content-between align-items-center">
  12.                     <strong>Prix / ticket</strong>
  13.                     <span>{{ tombola.prix }} €</span>
  14.                 </li>
  15.                 <li class="list-group-item d-flex justify-content-between align-items-center">
  16.                     {{ tombola.description }}
  17.                 </li>
  18.                 <li class="list-group-item">
  19.                     Il ne reste que <strong>{{ tombola.ticketRestant }}</strong> tickets !<br>
  20.                     Vous avez jusqu'au <strong>{{ tombola.dateheureVenteFin|date("d/m/Y H:i") }}</strong> pour participer.
  21.                 </li>
  22.             </ul>
  23.         </div>
  24.         <!-- Footer / Bouton -->
  25.         <div class="card-footer text-center bg-light">
  26. {#            {% if forfait.edition.registerStart|date('U') < 'now'|date('U') and forfait.edition.registerEnd|date('U') > 'now'|date('U') %}#}
  27. {#                <a href="{{ path('app_reservation_new', {'forfait': forfait.id }) }}"#}
  28. {#                   class="btn btn-warning fw-bold text-dark">#}
  29. {#                    Réserver#}
  30. {#                </a>#}
  31. {#            {% elseif forfait.edition.registerStart|date('U') > 'now'|date('U') %}#}
  32. {#                <p class="text-primary small">#}
  33. {#                    <i class="fa-solid fa-circle-exclamation me-2"></i>#}
  34. {#                    Inscriptions le {{ forfait.edition.registerStart|date("d/m/Y") }}#}
  35. {#                </p>#}
  36. {#            {% else %}#}
  37. {#                <p class="text-danger small">#}
  38. {#                    <i class="fa-solid fa-circle-exclamation me-2"></i>#}
  39. {#                    Inscriptions terminées#}
  40. {#                </p>#}
  41. {#            {% endif %}#}
  42. {#            #}
  43.             <a href="{{ path('app_tombola_front_commande', {'tombola': tombola.ulid }) }}"
  44.                class="btn btn-primary fw-bold text-white">
  45.                 Participer
  46.             </a>
  47.         </div>
  48.     </div>
  49. </div>