1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- {% extends 'base.html.twig' %}
- {% block title %}Article{% endblock %}
- {% block body %}
- <h1>Article</h1>
- <table class="table">
- <tbody>
- <tr>
- <th>Id</th>
- <td>{{ article.id }}</td>
- </tr>
- <tr>
- <th>Titre</th>
- <td>{{ article.title }}</td>
- </tr>
- <tr>
- <th>Permalien</th>
- <td>{{ url('app_view', {slug: article.slug}) }}</td>
- </tr>
- <tr>
- <th>Date de publication</th>
- <td>{{ article.publicationDate ? article.publicationDate|date('Y-m-d H:i:s') : '' }}</td>
- </tr>
- <tr>
- <th>Etat</th>
- <td><span class="badge badge-{{ article.state }}">{{ article.state | trans }}</span></td>
- </tr>
- <tr>
- <th>Contenu</th>
-
- <td>
- {{ article.content | markdown }}
- </td>
- </tr>
- </tbody>
- </table>
- <a href="{{ path('app_article_index') }}">Retour à la liste</a>
- <a href="{{ path('app_article_edit', {'id': article.id}) }}" class="btn btn-blue">Editer</a>
- <a href="{{ path('app_view', {'slug': article.slug}) }}" class="btn btn-green">Aperçu</a>
- {{ include('article/_delete_form.html.twig') }}
- {{ include('article/_bouton_agrandir.html.twig') }}
- {% endblock %}
|