Browse Source

Quelques traductions et css

Sangfroid 5 months ago
parent
commit
341717b90f

+ 1 - 1
templates/article/edit.html.twig

@@ -3,7 +3,7 @@
 {% block title %}Editer un article{% endblock %}
 
 {% block body %}
-    <h1>Editer un article</h1>
+    <h1>Editer l'article #{{ article.id }}</h1>
 
     {{ include('article/_form.html.twig', {'button_label': 'Mettre à jour'}) }}
 

+ 2 - 2
templates/article/index.html.twig

@@ -26,11 +26,11 @@
                 <td><span class="badge badge-{{ article.state }}">{{ article.state | trans }}</span></td>
                 <td>
                     {% if is_granted('view', article) %}
-                    <a href="{{ path('app_article_show', {'id': article.id}) }}">Voir</a>
+                    <a href="{{ path('app_article_show', {'id': article.id}) }}" class="btn btn-blue">Voir</a>
                     {% endif %}
 
                     {% if is_granted('edit', article) %}
-                    <a href="{{ path('app_article_edit', {'id': article.id}) }}">Editer</a>
+                    <a href="{{ path('app_article_edit', {'id': article.id}) }}" class="btn btn-blue">Editer</a>
                     {% endif %}
                 </td>
             </tr>

+ 4 - 4
templates/article/show.html.twig

@@ -12,11 +12,11 @@
                 <td>{{ article.id }}</td>
             </tr>
             <tr>
-                <th>Title</th>
+                <th>Titre</th>
                 <td>{{ article.title }}</td>
             </tr>
             <tr>
-                <th>PublicationDate</th>
+                <th>Date de publication</th>
                 <td>{{ article.publicationDate ? article.publicationDate|date('Y-m-d H:i:s') : '' }}</td>
             </tr>
             <tr>
@@ -24,7 +24,7 @@
                 <td><span class="badge badge-{{ article.state }}">{{ article.state | trans }}</span></td>
             </tr>
             <tr>
-                <th>Content</th>
+                <th>Contenu</th>
                 <td>{{ article.content | raw }}</td>
             </tr>
         </tbody>
@@ -32,7 +32,7 @@
 
     <a href="{{ path('app_article_index') }}">Retour à la liste</a>
 
-    <a href="{{ path('app_article_edit', {'id': article.id}) }}">Editer</a>
+    <a href="{{ path('app_article_edit', {'id': article.id}) }}" class="btn btn-blue">Editer</a>
 
     {{ include('article/_delete_form.html.twig') }}
 {% endblock %}

+ 7 - 1
translations/messages.fr.yaml

@@ -6,4 +6,10 @@ publish: Publier
 to_draft: Retour au brouillon
 reject: Rejeter
 to_review: Faire relire
-Publication choice : Choix de publication
+Publication choice : Choix de publication
+
+Id: Id
+Title: Titre
+Publication Date: Date de publication
+Content: Contenu
+Author: Auteur