|
@@ -1,11 +1,12 @@
|
|
{% extends 'base.html.twig' %}
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
|
-{% block title %}Article index{% endblock %}
|
|
|
|
|
|
+{% block title %}Gestion des articles{% endblock %}
|
|
|
|
|
|
{% block body %}
|
|
{% block body %}
|
|
- <h1>Article index</h1>
|
|
|
|
|
|
+<div>
|
|
|
|
+ <h1>gestion des articles</h1>
|
|
|
|
|
|
- <table class="table">
|
|
|
|
|
|
+ <table class="table-articles">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
<th>Id</th>
|
|
<th>Id</th>
|
|
@@ -25,11 +26,11 @@
|
|
<td>{{ article.state | trans }}</td>
|
|
<td>{{ article.state | trans }}</td>
|
|
<td>
|
|
<td>
|
|
{% if is_granted('view', article) %}
|
|
{% if is_granted('view', article) %}
|
|
- <a href="{{ path('app_article_show', {'id': article.id}) }}">show</a>
|
|
|
|
|
|
+ <a href="{{ path('app_article_show', {'id': article.id}) }}">Voir</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
|
|
{% if is_granted('edit', article) %}
|
|
{% if is_granted('edit', article) %}
|
|
- <a href="{{ path('app_article_edit', {'id': article.id}) }}">edit</a>
|
|
|
|
|
|
+ <a href="{{ path('app_article_edit', {'id': article.id}) }}">Editer</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
@@ -42,5 +43,7 @@
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
|
|
|
|
- <a href="{{ path('app_article_new') }}">Create new</a>
|
|
|
|
|
|
+ <a class="btn btn-primary" href="{{ path('app_article_new') }}">Créer un nouvel article</a>
|
|
|
|
+
|
|
|
|
+</div>
|
|
{% endblock %}
|
|
{% endblock %}
|