2025-07-06 16:29:23 +02:00
{% extends 'base.html.twig' %}
{% block title %} = {{ title }} {% endblock %}
{% block body %}
<h1> {{ title }} </h1>
<a href=" {{ path ( routesubmit ) }} " class="btn btn-success">Ajouter</a>
2025-07-23 22:35:07 +02:00
<div class="dataTable_wrapper">
<table class="table table-striped table-bordered table-hover" id="dataTables" style="width:100%">
<thead>
<tr>
<th width="100px" class="no-sort">Action</th>
<th width="70px">Logo</th>
<th width="70px">Modifier</th>
<th>Nom</th>
</tr>
</thead>
<tbody>
{% for project in projects %}
2025-07-06 16:29:23 +02:00
<tr>
2025-07-23 22:35:07 +02:00
<td>
<a href=" {{ path ( routeupdate , { id : project .id } ) }} " class="me-2"><i class="fas fa-file fa-2x"></i></a>
<a href=" {{ path ( 'app_admin_project_reclone' , { id : project .id } ) }} " onclick="return confirm('Es-tu sûr de vouloir reinitialiser et reindexer le projet ?');"><i class="fas fa-rotate-right fa-2x"></i></a>
</td>
<td><img class="avatar" src=" {{ asset ( project .logo ) }} "></td>
<td> {{ project .title }} </td>
<td> {{ project .redmine .updated_on }} </td>
2025-07-06 16:29:23 +02:00
</tr>
2025-07-23 22:35:07 +02:00
{% endfor %}
</tbody>
</table>
</div>
2025-07-06 16:29:23 +02:00
{% endblock %}
{% block localscript %}
<script>
$(document).ready(function() {
$('#dataTables').DataTable( {
columnDefs: [ { "targets": "no-sort", "orderable": false }, { "targets": "no-string", "type" : "num" } ],
responsive: true,
iDisplayLength: 100,
order: [[ 2, "asc" ]]
});
});
</script>
{% endblock %}