templates/backend/certif_conference/index.html.twig line 1

Open in your IDE?
  1. {% extends 'backend/backend/add.html.twig' %}
  2. {% block body %}
  3.     <div class="content-body">
  4.         <div class="container-fluid">
  5.             <div class="row page-titles mx-0">
  6.                 <div class="col-sm-6 p-md-0">
  7.                     <div class="welcome-text">
  8.                         <h4>Bienvenue!</h4>
  9.                     </div>
  10.                 </div>
  11.                 <div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex">
  12.                     <ol class="breadcrumb">
  13.                         <li class="breadcrumb-item">
  14.                             <a href="{{path('app_dashboard')}}">Dashboard</a>
  15.                         </li>
  16.                         <li class="breadcrumb-item active">
  17.                             <a href="{{path('app_certif_conference_index')}}">Les certificats des conferenciers</a>
  18.                         </li>
  19.                     </ol>
  20.                 </div>
  21.             </div>
  22.             <div class="row">
  23.                 <div class="col-12 p-2">
  24.                     <a href="{{ path('app_certif_conference_new')}}" style="color: white">
  25.                         <button type="button" class="btn btn-primary" style="background-color: green; border-color: green;">
  26.                             <i class="fa fa-plus">
  27.                                 Ajouter une certificat</i>
  28.                         </button>
  29.                     </a>
  30.                 </div>
  31.             </div>
  32.             <div class="row">
  33.                 <div class="col-12">
  34.                     <div class="card">
  35.                         <div class="card-body">
  36.                             <div class="table-responsive">
  37.                                 <table class="table text-muted" id="example">
  38.                                     <thead>
  39.                                         <tr>
  40.                                             <th>Id</th>
  41.                                             <th>Orateur</th>
  42.                                             <th>Titre</th>
  43.                                             <th>Session</th>
  44.                                             <th>Event</th>
  45.                                             <th>Download</th>
  46.                                             <th>Category</th>
  47.                                             <th>actions</th>
  48.                                         </tr>
  49.                                     </thead>
  50.                                     <tbody>
  51.                                         {% for certif_conference in certif_conferences %}
  52.                                             <tr>
  53.                                                 <td>{{ certif_conference.id }}</td>
  54.                                                 <td>{{ certif_conference.orateur }}</td>
  55.                                                 <td>{{ certif_conference.titre }}</td>
  56.                                                 <td>{{ certif_conference.session }}</td>
  57.                                                 <td>{{ certif_conference.IsEvent ? certif_conference.event.titre : certif_conference.congres.label }}</td>
  58.                                                 <td>
  59.                                                     <a href="{{path('certificats-conference-download',{'id' : certif_conference.id })}}" target="_blank" class="btn btn-outline-warning">Download</a>
  60.                                                 </td>
  61.                                                 <td>{{ certif_conference.IsLecture ? 'Conférencier/deleguate' : certif_conference.IsModerator ? 'moderator' : certif_conference.IsWorkshop ? 'Workshop' : certif_conference.IsDirectorWorkshop ? 'Director Workshop'}}</td>
  62.                                                 <td class="text-muted">
  63.                                                     <a class="btn btn-outline-info" href="{{ path('app_certif_conference_show', {'id': certif_conference.id}) }}">show</a>
  64.                                                     <a class="btn btn-outline-warning" href="{{ path('app_certif_conference_edit', {'id': certif_conference.id}) }}">edit</a>
  65.                                                     <form method="post" action="{{ path('app_certif_conference_delete', {'id': certif_conference.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
  66.                                                         <input type="hidden" name="_token" value="{{ csrf_token('delete' ~ certif_conference.id) }}">
  67.                                                         <button class="btn btn-outline-danger">delete</button>
  68.                                                     </form>
  69.                                                 </td>
  70.                                             </tr>
  71.                                         {% else %}
  72.                                             <tr>
  73.                                                 <td colspan="9">no records found</td>
  74.                                             </tr>
  75.                                         {% endfor %}
  76.                                     </tbody>
  77.                                     <tfoot>
  78.                                         <tr>
  79.                                             <th>Id</th>
  80.                                             <th>Orateur</th>
  81.                                             <th>Titre</th>
  82.                                             <th>Session</th>
  83.                                             <th>Event</th>
  84.                                             <th>Download</th>
  85.                                             <th>Category</th>
  86.                                             <th>actions</th>
  87.                                         </tr>
  88.                                     </tfoot>
  89.                                 </table>
  90.                             </div>
  91.                         </div>
  92.                     </div>
  93.                 </div>
  94.             </div>
  95.         </div>
  96.     </div>
  97. {% endblock %}