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) }}">
|
||||
<button class="btn">Delete</button>
|
||||
<button class="btn btn-outline-danger">Delete</button>
|
||||
</form>
|
||||
|
|
|
@ -3,8 +3,12 @@
|
|||
{% block title %}User{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>User</h1>
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h1>Utilisateur</h1>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
|
@ -29,10 +33,15 @@
|
|||
</tr>
|
||||
</tbody>
|
||||
</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') }}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue