first commit

This commit is contained in:
maher
2025-12-28 13:49:00 +01:00
commit f0b8392c55
6148 changed files with 743662 additions and 0 deletions

View File

@@ -0,0 +1,105 @@
{% extends 'base.html.twig' %}
{% block title %}Enquête{% endblock %}
{% block content %}
<!-- az-header -->
<div class="az-content">
<div class="container">
<div class="az-content-body d-flex flex-column">
<div class="az-content-breadcrumb">
<span>Enquête</span>
<span>Gestion</span>
</div>
<h2 class="az-content-title">Enquête</h2>
<div class="az-content-label mg-b-5"></div>
<p class="mg-b-20">Liste des enquêtes prêt a envoyer à ladministration pour valider</p>
<div class="table-responsive">
<table class="table mg-b-0">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Demande de validation</th>
</tr>
</thead>
<tbody>
{% for invest in invesAdmins %}
<tr>
<td>{{ invest.getId() }}</td>
<td>{{ invest.getNameEn() }}</td>
<td><a href="{{ path('app_investigation_send_validation', {id:invest.getId()}) }}" class="btn btn-success btn-sm">Envoyer</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div><!-- table-responsive -->
<hr class="mg-y-30">
<div class="az-content-label mg-b-5"></div>
<p class="mg-b-20">Liste des enquêtes prêt a envoyer à ladministration pour valider</p>
<div class="table-responsive">
<table class="table mg-b-0">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Date Create</th>
<th>Questions</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{% for investigation in investigations %}
<tr>
<td>{{ investigation.getId() }}</td>
<td>{{ investigation.getNameEn() }}</td>
<td>{{ investigation.getDateCreate()|date("d/m/Y H:i") }}</td>
<td>{{ investigation.getNbrQuestions() }}</td>
<td>
{% if investigation.getLastState() == 10 %}
<div class="badge badge-info">Création Terminer </div>
{% elseif investigation.getLastState() == 11 %}
<div class="badge badge-light">Encour de Création</div>
{% elseif investigation.getLastState() == 12 %}
<div class="badge badge-dark">Dupliquer</div>
{% elseif investigation.getLastState() == 20 %}
<div class="badge badge-success">Demande Valider</div>
{% elseif investigation.getLastState() == 21 %}
<div class="badge badge-warning text-white">Demande Envoyer</div>
{% elseif investigation.getLastState() == 22 %}
<div class="badge badge-danger text-white">Demande Rejeter</div>
{% else %}
--
{% endif %}
</td>
<td>
<div class="btn-icon-list">
<a class="btn btn-indigo btn-icon" title="duplicate" href="{{ path('app_investigation_duplicate', {id:investigation.getId()}) }}"><i class="ion ion-ios-git-branch"></i></a>
<a class="btn btn-indigo btn-icon" title="Edit" href="{{ path('app_investigation_edit', {id:investigation.getId()}) }}"><i class="typcn typcn-edit"></i></a>
<a class="btn btn-indigo btn-icon" title="Afficher" href="{{ path('app_investigation_show', {id:investigation.getId()}) }}"><i class="ion ion-ios-tv"></i></a>
<a class="btn btn-danger btn-icon" title="Delete" href="{{ path('app_investigation_delete', {id:investigation.getId()}) }}"><i class="ion ion-md-trash"></i></a>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div><!-- table-responsive -->
</div>
</div>
</div>
{% endblock %}