templates/famillesdarticles/recherche.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Liste des produits{% endblock %}
  3. {% block body %}
  4.     <div class="page-content">
  5.         <div class="container-fluid">
  6.             <div class="row">
  7.                 <div class="col-lg-12">
  8.                     <div class="card">
  9.                         <div class="card-header">
  10.                             <h5 class="card-title mb-0">Liste des articles</h5>
  11.                         </div>
  12.                         <div class="card-body">
  13.                             <div id="scroll-vertical_wrapper" class="dataTables_wrapper dt-bootstrap5 no-footer">
  14.                                 <div class="row">
  15.                                     <div class="col-sm-12 col-md-6"></div>
  16.                                     {#                                <div class="col-sm-12 col-md-6"> #}
  17.                                     {#                                    <div id="scroll-vertical_filter" class="dataTables_filter"><label>Search:<input #}
  18.                                     {#                                                    type="search" class="form-control form-control-sm" placeholder="" #}
  19.                                     {#                                                    aria-controls="scroll-vertical"></label></div> #}
  20.                                     {#                                </div> #}
  21.                                     <div class="row g-3 mb-3 align-items-center">
  22.                                         <div class="col-auto">
  23.                                             <a href="{{ path('app_famillesdarticles_new') }}"
  24.                                                class="btn btn-success add-btn">
  25.                                                 <i class="ri-add-line align-bottom me-1"></i>Ajouter un article
  26.                                             </a>
  27.                                         </div>
  28.                                         <div class="col">
  29.                                             <form method="get" action="{{ path('app_famillesdarticles_filter') }}">
  30.                                                 <div class="row g-2 align-items-center">
  31.                                                     <div class="col-12 col-md-6 position-relative">
  32.                                                         <input type="text" id="searchProduit" name="nomprenom"
  33.                                                                class="form-control"
  34.                                                                placeholder="Rechercher par référence ou fournisseur...">
  35.                                                         {#                                                    <input type="text" id="searchProduit" name="nomprenom" class="form-control" placeholder="Recherche..." autocomplete="off"> #}
  36.                                                         {#                                                    <ul id="autocomplete-list" class="list-group position-absolute w-100" style="display: none; max-height: 200px; overflow-y: auto; z-index: 1000;"></ul> #}
  37.                                                     </div>
  38.                                                     <div class="col-auto">
  39.                                                         <button type="submit"
  40.                                                                 class="btn btn-primary btn-label waves-effect waves-light rounded-pill">
  41.                                                             <i class="ri-search-2-line label-icon align-middle rounded-pill fs-16 me-2"></i>
  42.                                                             Rechercher
  43.                                                         </button>
  44.                                                     </div>
  45.                                                 </div>
  46.                                             </form>
  47.                                             {#                                        <div id="resultsContainer"> #}
  48.                                             {#                                            <!-- Les résultats de la recherche AJAX seront insérés ici --> #}
  49.                                             {#                                        </div> #}
  50.                                         </div>
  51.                                     </div>
  52.                                 </div>
  53.                                 <div class="row">
  54.                                     <div class="col-sm-12">
  55.                                         <div id="resultsContainer">
  56.                                             <div class="dataTables_scroll">
  57.                                                 <div class="dataTables_scrollBody"
  58.                                                      style="position: relative; overflow: auto; max-height: 475px; width: 100%;">
  59.                                                     <table id="scroll-vertical"
  60.                                                            class="table table-bordered dt-responsive nowrap align-middle mdl-data-table dataTable no-footer dtr-inline"
  61.                                                            style="width: 100%;" aria-describedby="scroll-vertical_info">
  62.                                                         <thead>
  63.                                                         <tr>
  64.                                                             <th>ID</th>
  65.                                                             <th>Référence</th>
  66.                                                             <th>Logo</th>
  67.                                                             <th>Stock</th>
  68.                                                             <th>Stock NF</th>
  69.                                                             <th>Total Stock</th>
  70.                                                             <th>Unité</th>
  71.                                                             <th>Prix d'achat</th>
  72.                                                             <th>Prix vente (HT)</th>
  73.                                                             <th>Prix vente (TTC)</th>
  74.                                                             <th>Familles</th>
  75.                                                             <th>Fournisseur</th>
  76.                                                             <th>Actions</th>
  77.                                                         </tr>
  78.                                                         </thead>
  79.                                                         <tbody>
  80.                                                         {% for famillesdarticle in famillesdarticles|sort|reverse %}
  81.                                                             <tr class="odd">
  82.                                                                 <td>{{ famillesdarticle.id }}</td>
  83.                                                                 <td class="email">{{ famillesdarticle.reference }}</td>
  84.                                                                 <td class="status">
  85.                                                                     {% if famillesdarticle.logo is not empty %}
  86.                                                                         <img style="width: 88px;"
  87.                                                                              src="{{ asset('uploads/article/' ~ famillesdarticle.logo) }}"
  88.                                                                              class="costumimgfrontproduit"/>
  89.                                                                     {% else %}
  90.                                                                         <span class="badge-soft-danger">Vide</span>
  91.                                                                     {% endif %}
  92.                                                                 </td>
  93.                                                                 <td>{{ famillesdarticle.qunatity }}</td>
  94.                                                                 <td>{{ famillesdarticle.qtenf }}</td>
  95.                                                                 <td>{{ famillesdarticle.qtetotal }}</td>
  96.                                                                 <td class="phone">{{ famillesdarticle.unite }}</td>
  97.                                                                 <td>{{ famillesdarticle.prixachat }}</td>
  98.                                                                 <td>{{ famillesdarticle.prixvente }}</td>
  99.                                                                 <td>
  100.                                                                     {% if famillesdarticle.prixttc %}
  101.                                                                         {{ famillesdarticle.prixttc }}
  102.                                                                     {% else %}
  103.                                                                         <span class="badge bg-danger">Vide</span>
  104.                                                                     {% endif %}
  105.                                                                 </td>
  106.                                                                 <td class="status">{{ famillesdarticle.familles }}</td>
  107.                                                                 <td class="status">{{ famillesdarticle.fournisseur.raisonsocial }}</td>
  108.                                                                 <td class="action">
  109.                                                                     <div class="d-flex gap-2">
  110.                                                                         <div class="edit">
  111.                                                                             <a href="{{ path('app_famillesdarticles_edit', {'id': famillesdarticle.id}) }}"
  112.                                                                                class="btn btn-sm btn-success edit-item-btn">Modifier</a>
  113.                                                                         </div>
  114.                                                                         <div class="show">
  115.                                                                             <a href="{{ path('app_famillesdarticles_show', {'id': famillesdarticle.id}) }}"
  116.                                                                                class="btn btn-sm btn-primary edit-item-btn" >Voir</a>
  117.                                                                         </div>
  118.                                                                         <div class="remove">
  119.                                                                             <a data-bs-toggle="modal"
  120.                                                                                data-bs-target="#staticBackdrop3"
  121.                                                                                class="btn btn-sm btn-danger edit-item-btn trigger-btn3"
  122.                                                                                title="Supprimer"
  123.                                                                                data-id="{{ path('app_famillesdarticles_delete', {'id': famillesdarticle.id}) }}">
  124.                                                                                 Supprimer
  125.                                                                             </a>
  126.                                                                         </div>
  127.                                                                     </div>
  128.                                                                 </td>
  129.                                                             </tr>
  130.                                                         {% endfor %}
  131.                                                         </tbody>
  132.                                                     </table>
  133.                                                 </div>
  134.                                             </div>
  135.                                         </div>
  136.                                     </div>
  137.                                 </div>
  138. {#                                <div class="row">#}
  139. {#                                    <div class="col-sm-12 col-md-5">#}
  140. {#                                        <div class="dataTables_info" id="scroll-vertical_info" role="status"#}
  141. {#                                             aria-live="polite">Showing 1 to 14 of 14 entries#}
  142. {#                                        </div>#}
  143. {#                                    </div>#}
  144. {#                                    <div class="col-sm-12 col-md-7"></div>#}
  145. {#                                </div>#}
  146.                             </div>
  147.                         </div>
  148.                     </div>
  149.                 </div><!--end col-->
  150.             </div>
  151.             <!--end row-->
  152.         </div>
  153.     </div>
  154. {% endblock %}