rajout de la modif et suppression des diplomes
This commit is contained in:
parent
bd50807d9f
commit
028f3bdaa5
@ -32,6 +32,22 @@
|
|||||||
Sélectionner
|
Sélectionner
|
||||||
</label>
|
</label>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if 'ROLE_ADMIN' in app.user.roles %}
|
||||||
|
<!-- Modifier le diplôme -->
|
||||||
|
<a href="{{ path('app_degree_edit', {'id': degree.id}) }}" class="text-yellow-500 hover:text-yellow-700 mr-3">
|
||||||
|
<i class="fas fa-edit"></i> Modifier
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<!-- Formulaire pour supprimer le diplôme -->
|
||||||
|
<form method="post" action="{{ path('app_degree_delete', {'id': degree.id}) }}" style="display:inline;">
|
||||||
|
<input type="hidden" name="_method" value="DELETE">
|
||||||
|
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ degree.id) }}">
|
||||||
|
<button type="submit" class="text-red-500 hover:text-red-700">
|
||||||
|
<i class="fas fa-trash-alt"></i> Supprimer
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user