Commit c5fed77d authored by Mat's avatar Mat
Browse files

Templates twig

parent 3e74a115
{% extends "@Asso/base.html.twig" %}
{% block title %}
Créer une association
{% endblock %}
{% block body %}
<h2>Créer une association</h2>
<h2>{{ block('title') }}</h2>
{{ form(formAssociation) }}
{% endblock %}
{% extends "@Asso/base.html.twig" %}
{% block body %}
<h2>Hello les associations</h2>
{% block title %}
Liste des associations
{% endblock %}
<a href="{{ path('asso_association_create') }}">Ajouter une association</a><br>
<a href="{{ path('asso_membre_create') }}">Ajouter un membre</a>
{% block body %}
<h2>{{ block('title') }}</h2>
<ul>
{% for asso in associations %}
<li>
......
{% extends "@Asso/base.html.twig" %}
{% block title %}
Créer les membres
{% endblock %}
{% block body %}
<h2>Créer les membres</h2>
<h2>{{ block('title') }}</h2>
{{ form(formMembre) }}
{% endblock %}
\ No newline at end of file
{% endblock %}
{% extends "@Asso/base.html.twig" %}
{% block title %}
Liste des membres
{% endblock %}
{% block body %}
<h2>Hello les membres</h2>
<a href="{{ path('asso_membre_create') }}">Ajouter un membre</a>
<h2>{{ block('title') }}</h2>
<ul>
{% for membre in membres %}
<li>
......
......@@ -7,6 +7,18 @@
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
</head>
<body>
<h1>Backoffice Associations</h1>
{% block menu %}
<h3>Menu</h3>
<ul>
<li><a href="{{ path('asso_association_read') }}">Les associations</a></li>
<li><a href="{{ path('asso_membre_read') }}">Les membres</a></li>
<li><a href="{{ path('asso_association_create') }}">Ajouter une association</a></li>
<li><a href="{{ path('asso_membre_create') }}">Ajouter un membre</a></li>
</ul>
{% endblock %}
{% block body %}{% endblock %}
{% block javascripts %}{% endblock %}
{{ dump() }}
......
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