add progression
This commit is contained in:
12
templates/contribution/index.html.twig
Normal file
12
templates/contribution/index.html.twig
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
{% block title %}Liste des Contributions{% endblock %}
|
||||
{% block body %}
|
||||
<h2>Liste des Contributions</h2>
|
||||
<ul>
|
||||
{% for c in contributions %}
|
||||
<li><a href="{{ path('contribution_show', {'id': c.id}) }}">Contribution #{{ c.id }}</a></li>
|
||||
{% else %}
|
||||
<li>Aucune contribution trouvée.</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
7
templates/contribution/show.html.twig
Normal file
7
templates/contribution/show.html.twig
Normal file
@@ -0,0 +1,7 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
{% block title %}Détail Contribution{% endblock %}
|
||||
{% block body %}
|
||||
<h2>Détail Contribution</h2>
|
||||
<pre>{{ dump(contribution) }}</pre>
|
||||
<a href="{{ path('contribution_index') }}">Retour à la liste</a>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user