{% extends 'backend/backend/add.html.twig' %}{% block body %} <div class="content-body"> <div class="container-fluid"> <div class="row page-titles mx-0"> <div class="col-sm-6 p-md-0"> <div class="welcome-text"> <h4>Bienvenue!</h4> </div> </div> <div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex"> <ol class="breadcrumb"> <li class="breadcrumb-item"> <a href="{{path('app_dashboard')}}">Dashboard</a> </li> <li class="breadcrumb-item active"> <a href="{{path('app_certif_conference_index')}}">Les certificats des conferenciers</a> </li> </ol> </div> </div> <div class="row"> <div class="col-12 p-2"> <a href="{{ path('app_certif_conference_new')}}" style="color: white"> <button type="button" class="btn btn-primary" style="background-color: green; border-color: green;"> <i class="fa fa-plus"> Ajouter une certificat</i> </button> </a> </div> </div> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body"> <div class="table-responsive"> <table class="table text-muted" id="example"> <thead> <tr> <th>Id</th> <th>Orateur</th> <th>Titre</th> <th>Session</th> <th>Event</th> <th>Download</th> <th>Category</th> <th>actions</th> </tr> </thead> <tbody> {% for certif_conference in certif_conferences %} <tr> <td>{{ certif_conference.id }}</td> <td>{{ certif_conference.orateur }}</td> <td>{{ certif_conference.titre }}</td> <td>{{ certif_conference.session }}</td> <td>{{ certif_conference.IsEvent ? certif_conference.event.titre : certif_conference.congres.label }}</td> <td> <a href="{{path('certificats-conference-download',{'id' : certif_conference.id })}}" target="_blank" class="btn btn-outline-warning">Download</a> </td> <td>{{ certif_conference.IsLecture ? 'Conférencier/deleguate' : certif_conference.IsModerator ? 'moderator' : certif_conference.IsWorkshop ? 'Workshop' : certif_conference.IsDirectorWorkshop ? 'Director Workshop'}}</td> <td class="text-muted"> <a class="btn btn-outline-info" href="{{ path('app_certif_conference_show', {'id': certif_conference.id}) }}">show</a> <a class="btn btn-outline-warning" href="{{ path('app_certif_conference_edit', {'id': certif_conference.id}) }}">edit</a> <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?');"> <input type="hidden" name="_token" value="{{ csrf_token('delete' ~ certif_conference.id) }}"> <button class="btn btn-outline-danger">delete</button> </form> </td> </tr> {% else %} <tr> <td colspan="9">no records found</td> </tr> {% endfor %} </tbody> <tfoot> <tr> <th>Id</th> <th>Orateur</th> <th>Titre</th> <th>Session</th> <th>Event</th> <th>Download</th> <th>Category</th> <th>actions</th> </tr> </tfoot> </table> </div> </div> </div> </div> </div> </div> </div>{% endblock %}