Commit d809a437 authored by Mat's avatar Mat

habillage bootstrap des vues read

parent d420eb37
......@@ -6,18 +6,33 @@
{% block body %}
<h2>{{ block('title') }}</h2>
<ul>
{% for asso in associations %}
<li>
{{ asso.nom }}
{{ asso.objetSocial }}
{{ asso.email }}
{{ asso.tva }}
<a href="{{ path('asso_association_update', {'id': asso.id }) }}">Editer</a>
<a href="{{ path('asso_association_delete', {'id': asso.id }) }}">Effacer</a>
</li>
{% endfor %}
</ul>
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Nom</th>
<th scope="col">Prenom</th>
<th scope="col">Email</th>
<th scope="col">Association</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody>
{% for asso in associations %}
<tr>
<th scope="row">{{ asso.id }}</th>
<td>{{ asso.nom }}</td>
<td>{{ asso.objetSocial }}</td>
<td>{{ asso.email }}</td>
<td>{{ asso.tva }}</td>
<td>
<a class="btn btn-primary btn-sm" role="button"
href="{{ path('asso_association_update', {'id': asso.id }) }}">Editer</a>
<a class="btn btn-danger btn-sm" role="button"
href="{{ path('asso_association_delete', {'id': asso.id }) }}">Effacer</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
......@@ -6,17 +6,33 @@
{% block body %}
<h2>{{ block('title') }}</h2>
<ul>
{% for membre in membres %}
<li>
{{ membre.nom }}
{{ membre.prenom }}
{{ membre.email }}
{{ membre.getAssociation().nom }}
<a href="{{ path('asso_membre_update', {'id': membre.id }) }}">Editer</a>
<a href="{{ path('asso_membre_delete', {'id': membre.id }) }}">Effacer</a>
</li>
{% endfor %}
</ul>
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Nom</th>
<th scope="col">Prenom</th>
<th scope="col">Email</th>
<th scope="col">Association</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody>
{% for membre in membres %}
<tr>
<th scope="row">{{ membre.id }}</th>
<td>{{ membre.nom }}</td>
<td>{{ membre.prenom }}</td>
<td>{{ membre.email }}</td>
<td>{{ membre.getAssociation().nom }}</td>
<td>
<a class="btn btn-primary btn-sm" role="button"
href="{{ path('asso_membre_update', {'id': membre.id }) }}">Editer</a>
<a class="btn btn-danger btn-sm" role="button"
href="{{ path('asso_membre_delete', {'id': membre.id }) }}">Effacer</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
......@@ -3,10 +3,15 @@
<head>
<meta charset="UTF-8" />
<title>{% block title %}Welcome!{% endblock %}</title>
{% block stylesheets %}{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.10/css/all.css" integrity="sha384-+d0P83n9kaQMCwj8F4RJB66tzIwOKmrdb46+porD/OvrJ+37WqIM7UoBtwHO6Nlg" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="{{ asset('css/style.css') }}">
{% endblock %}
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
</head>
<body>
<body id="office">
<h1>Backoffice Associations</h1>
{% block menu %}
<h3>Menu</h3>
......
......@@ -14,6 +14,9 @@ body {
font-family: 'Open Sans', sans-serif;
font-size: 12pt;
}
body#office {
margin: 2em;
}
.clearfix {
clear: both;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment