Mise a jour readme et fix

This commit is contained in:
Aymeric SERRA 2023-02-10 21:20:02 +01:00
parent c563e8ec6c
commit 18efd8f02f
Signed by: oupson
GPG Key ID: 3BD88615552EFCB7
3 changed files with 30 additions and 11 deletions

View File

@ -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
@ -111,4 +114,9 @@ symfony console make:controller ApprentiController
symfony console make:entity FormationUser
symfony console make:migration
symfony console d:m:m
```
### Question 18
```bash
symfony console doctrine:fixtures:load
```

View File

@ -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 %}

View File

@ -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 %}