Modification style page pour voir un utilisateur
This commit is contained in:
parent
897b9130c1
commit
0a54d50934
|
@ -1,4 +1,4 @@
|
||||||
<form method="post" action="{{ path('app_user_delete', {'id': user.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
<form style="display:inline-block;" method="post" action="{{ path('app_user_delete', {'id': user.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
||||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ user.id) }}">
|
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ user.id) }}">
|
||||||
<button class="btn">Delete</button>
|
<button class="btn btn-outline-danger">Delete</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -3,8 +3,12 @@
|
||||||
{% block title %}User{% endblock %}
|
{% block title %}User{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<h1>User</h1>
|
<div class="card">
|
||||||
|
<div class="card-header">
|
||||||
|
<h1>Utilisateur</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -29,10 +33,15 @@
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<a href="{{ path('app_user_index') }}">back to list</a>
|
<div class="card-footer">
|
||||||
|
<a class="btn btn-outline-primary" href="{{ path('app_user_edit', {'id': user.id}) }}">Modifier</a>
|
||||||
|
|
||||||
<a href="{{ path('app_user_edit', {'id': user.id}) }}">edit</a>
|
<a class="btn btn-outline-primary" href="{{ path('app_user_index') }}">Retour à la liste des
|
||||||
|
utilisateurs</a>
|
||||||
|
|
||||||
{{ include('user/_delete_form.html.twig') }}
|
{{ include('user/_delete_form.html.twig') }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue