connexion base et création premier crud
This commit is contained in:
@@ -3,9 +3,15 @@
|
||||
{% block title %}Membre{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Membre</h1>
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h1 class="h3 mb-0">Membre #{{ membre.id }}</h1>
|
||||
<div>
|
||||
<a href="{{ path('app_membre_edit', {'id': membre.id}) }}" class="btn btn-secondary me-2">Edit</a>
|
||||
<a href="{{ path('app_membre_index') }}" class="btn btn-outline-secondary">Back to list</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="table">
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
@@ -17,14 +23,16 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Password</th>
|
||||
<td>{{ membre.password }}</td>
|
||||
<td>********</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Droit</th>
|
||||
<td>{{ membre.droit }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_membre_index') }}">back to list</a>
|
||||
|
||||
<a href="{{ path('app_membre_edit', {'id': membre.id}) }}">edit</a>
|
||||
|
||||
{{ include('membre/_delete_form.html.twig') }}
|
||||
<div class="mt-3">
|
||||
{{ include('membre/_delete_form.html.twig') }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user