Mise a jour readme et fix
This commit is contained in:
parent
c563e8ec6c
commit
18efd8f02f
|
@ -5,6 +5,9 @@
|
|||
- Zakarya BEN JABALLAH
|
||||
- Aymeric SERRA
|
||||
|
||||
## Acceder à un compte Admin
|
||||
Par défaut la fixture créé un compte admin@admin.fr avec comme mot de passe admin.
|
||||
|
||||
## Questions
|
||||
### Question 1
|
||||
#### Création du projet
|
||||
|
@ -112,3 +115,8 @@ symfony console make:entity FormationUser
|
|||
symfony console make:migration
|
||||
symfony console d:m:m
|
||||
```
|
||||
|
||||
### Question 18
|
||||
```bash
|
||||
symfony console doctrine:fixtures:load
|
||||
```
|
|
@ -42,16 +42,21 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="card-footer d-flex justify-content-center">
|
||||
<a class="btn btn-primary" href="{{ path('app_atelier_new') }}">Créer atelier</a>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="alert alert-info" role="alert">
|
||||
Il n'y a pas encore d'ateliers. Vous pouvez commencer par <a class="alert-link"
|
||||
href="{{ path('app_atelier_new') }}">en créer
|
||||
un !</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if is_granted('ROLE_INSTRUCTEUR') %}
|
||||
<div class="card-footer d-flex justify-content-center">
|
||||
<a class="btn btn-primary" href="{{ path('app_atelier_new') }}">Créer atelier</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if is_granted('ROLE_INSTRUCTEUR') %}
|
||||
<div class="alert alert-info" role="alert">
|
||||
Il n'y a pas encore d'ateliers. Vous pouvez commencer par <a class="alert-link"
|
||||
href="{{ path('app_atelier_new') }}">en
|
||||
créer
|
||||
un !</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -30,10 +30,16 @@
|
|||
</h1>
|
||||
|
||||
<div class="row mt-4 mx-auto w-50">
|
||||
<a class="btn btn-primary btn-lg" href="{{ path('app_atelier_index') }} }">Afficher tous les
|
||||
<a class="btn btn-primary btn-lg" href="{{ path('app_atelier_index') }}">Afficher tous les
|
||||
ateliers</a>
|
||||
{% if is_granted('ROLE_INSTRUCTEUR') %}
|
||||
<a class="btn btn-primary btn-lg mt-2" href="{{ path('app_atelier_by_me') }}">Afficher mes
|
||||
ateliers</a>
|
||||
{% endif %}
|
||||
{% if is_granted('ROLE_APPRENTI') %}
|
||||
<a class="btn btn-primary btn-lg mt-2" href="{{ path('app_atelier_inscrit') }}">Afficher mes
|
||||
formations</a>
|
||||
{% endif %}
|
||||
<a class="btn btn-primary btn-lg mt-2" href="{{ path('app_logout') }}">Déconnexion</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue