Initial commit
This commit is contained in:
commit
3bc898dd10
130 changed files with 25918 additions and 0 deletions
22
templates/membre_fractal/edit.html.twig
Normal file
22
templates/membre_fractal/edit.html.twig
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Éditer {{membre_fractal.pseudo}}{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
|
||||
{% if 'ROLE_ADMIN' in app.user.roles %}
|
||||
|
||||
<h1>Éditer {{membre_fractal.pseudo}}</h1>
|
||||
{{ include('membre_fractal/_form.html.twig', {'button_label': 'Update'}) }}
|
||||
<a href="{{ path('app_membre_fractal_index') }}", class="btn btn-primary">Retour à la liste</a>
|
||||
{{ include('membre_fractal/_delete_form.html.twig') }}
|
||||
|
||||
{% else %}
|
||||
|
||||
<h1>Éditer mon profil</h1>
|
||||
{{ include('membre_fractal/_form.html.twig', {'button_label': 'Update'}) }}
|
||||
<a href="{{ path('app_membre_fractal_show',{'id':membre_fractal.id}) }}", class="btn btn-primary">Retour au profil</a>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue