templates/admin/country/listDestinations.html.twig line 1

Open in your IDE?
  1. {% extends 'admin/baseAdmin.html.twig' %}
  2. {% block page_title %}Liste des destinations{% endblock %}
  3. {% block breadcump_main %}Pays{% endblock %}
  4. {% block breadcump_subtitle %}Destinations{% endblock %}
  5. {% block menu_left_sidebar %}
  6.     {% include 'include/menu/menuAdmin.html.twig' with { menu_active_event : '2'} %}
  7. {% endblock %}
  8. {% block stylesheets %}
  9.     <link href="{{ asset('admin/libs/select2/css/select2.min.css') }}" rel="stylesheet" type="text/css">
  10.     <link href="{{ asset('admin/css/tailwind.min.css') }}" rel="stylesheet" type="text/css">
  11.     <link href="{{ asset('admin/css/tailwind2.css') }}" rel="stylesheet" type="text/css">
  12. {% endblock %}
  13. {% block title %}{{"Liste des destinations"|trans }}{% endblock %} 
  14. {% block content %}
  15.     <div class="container-fluid px-0">
  16.         <div class="card dark:bg-zink-700 ">
  17.             <div class=" p-3 sm:p-6">
  18.                 <div class="grid grid-cols-12">
  19.                     <div class="col-span-12">
  20.                         <div class="md:flex justify-between space-y-2 md:space-y-0">
  21.                             <div class="relative">
  22.                                 <i class="bx bx-search-alt text-16 text-zink-600  dark:text-zink-200 absolute top-3 left-4 right-4 transform w-1/12"></i>
  23.                                 <input
  24.                                     class="border border-gray-400 focus:border focus:border-gray-400 focus:outline-none focus:ring-0 p-3 ps-5 pl-10 placeholder:text-[13px] placeholder:text-gray-600 py-2 rounded-full rtl:pr-10 text-gray-700 w-full"
  25.                                     type="search" placeholder="Rechercher par titre , category..." id="search-input">
  26.                             </div>
  27.                             <a href="{{ path('add_destination') }}"
  28.                                class="mb-3 text-13 px-4 rounded-full text-white  bg-orange-500 border-transparent btn hover:bg-green-600" style="background: #ffaa00;"><i class="bx bx-plusme-1"></i>Ajouter pays</a>
  29.                         </div>
  30.                         <div class="my-6 overflow-x-auto">
  31.                             <div id="cards-container" class="grid grid-cols-2 gap-6 mb-5 mx-1 ">
  32.                                 {% for destination in   destinations %}
  33.                                     <div class="mb-0 border rounded-lg dark:bg-zink-700">
  34.                                         <div class="card-body">
  35.                                             <div class="grid items-start grid-cols-12">
  36.                                                 <div class="mr-2 shrink-0 col-span-4 text-center">
  37.                                                     <div>
  38.                                                         <span class="flex mx-auto items-center justify-center  overflow-hidden h-32 w-full font-medium text-blue-500 rounded-xl text-16 bg-blue-500/20 mt-1">
  39.                                                             <img src="{{asset(''~destination.image)}}" class="w-full h-full object-cover" alt="">
  40.                                                         </span>
  41.                                                     </div>
  42.                                                 </div>
  43.                                                 <div class=" grow col-span-8 ">
  44.                                                     <div class="title-sejour">
  45.                                                         <h2 class="font-medium text-16 mt-2">{{ destination.name }}</h2>
  46.                                                         <p>ID : #{{ destination.id }}</p>
  47.                                                     </div>
  48.                                                 </div>
  49.                                                 <div class="col-span-12 flex justify-end mt-3 text-xs w-full">
  50.                                                     <a href="{{ path('edit_destination',{'id':destination.id}) }}" class=" text-blue-500   font-medium dark:text-white cursor-pointer">Modifier</a>
  51.                                                     <p class=" text-blue-500 mx-3  font-medium dark:text-white cursor-pointer">Expériences</p>
  52.                                                     <p class="text-blue-500  font-medium dark:text-white cursor-pointer"> Appearances</p>
  53.                                                     {#                                                            <p class="text-blue-500  font-medium dark:text-white cursor-pointer"> Experiences</p>#}
  54.                                                 </div>
  55.                                             </div>
  56.                                         </div>
  57.                                     </div>
  58.                                 {% endfor %}
  59.                             </div>
  60.                         </div>
  61.                         <!-- end table -->
  62.                     </div>
  63.                     <div class="col-span-12">
  64.                         <div class="flex justify-between items-center">
  65.                             <p class="text-13">Showing 1 to 7 of 7 entries</p>
  66.                             <ul class=" flex items-center justify-between">
  67.                                 <li class="cursor-pointer flex h-8 items-center justify-center rounded-full text-white w-8"style=";border:1px solid #ffaa00; "><i style="color:#ffaa00" class="bx bx-chevron-left  text-16 dark:text-zink-200 rtl:rotate-180 block"></i></li>
  68.                                 <li class="cursor-pointer mx-1 flex h-8 items-center justify-center rounded-full text-white w-8" style="background: #ffaa00; ">1</li>
  69.                                 <li class="cursor-pointer mx-1 flex h-8 items-center justify-center rounded-full text-orange-light w-8" style="border: 1px solid #ffaa00; ">2</li>
  70.                                 <li class="cursor-pointer mx-1 flex h-8 items-center justify-center rounded-full text-orange-light w-8" style="border: 1px solid #ffaa00; ">3</li>
  71.                                 <li class="cursor-pointer flex h-8 items-center justify-center rounded-full text-white w-8"style=";border:1px solid #ffaa00; "><i style="color:#ffaa00" class="bx bx-chevron-right  text-16 dark:text-zink-200 rtl:rotate-180 block"></i></li>
  72.                             </ul>
  73.                         </div>
  74.                     </div>
  75.                 </div>
  76.                 <!-- end grid -->
  77.             </div>
  78.         </div>
  79.     </div>
  80.     <!-- container-fluid -->
  81.     <!-- End main -->
  82. {% endblock %}
  83. {% block javascripts %}
  84.     <script src="{{ asset('admin/js/app.js')}}"></script>
  85. {% endblock %}