Răsfoiți Sursa

Mise à jour pour portable

Sangfroid 2 luni în urmă
părinte
comite
4f06603675
3 a modificat fișierele cu 24 adăugiri și 16 ștergeri
  1. 6 1
      assets/styles/app.scss
  2. 3 0
      templates/base.html.twig
  3. 15 15
      templates/index/index.html.twig

+ 6 - 1
assets/styles/app.scss

@@ -1 +1,6 @@
-@use "~@picocss/pico/scss/pico.scss";
+@use "~@picocss/pico/scss/pico.scss";
+
+.title {
+    font-weight: bold;
+    text-align: center;
+}

+ 3 - 0
templates/base.html.twig

@@ -2,6 +2,9 @@
 <html>
     <head>
         <meta charset="UTF-8">
+        <meta charset="utf-8">
+        <meta name="viewport" content="width=device-width, initial-scale=1">
+        <meta name="color-scheme" content="light dark">
         <title>{% block title %}Welcome!{% endblock %}</title>
         <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
         {% block stylesheets %}

+ 15 - 15
templates/index/index.html.twig

@@ -13,50 +13,50 @@
             <th>Realisateur</th>
             <th>Genre</th>
             <th>Ajouté par</th>
-            <th>Date d'ajout</th>
+            {#<th>Date d'ajout</th>#}
             <th></th>
         </tr>
     </thead>
     <tbody>
         <tr>
-            <th colspan="6" class="title">Liste complète</th>
+            <th colspan="6" class="title">Ma liste</th>
         </tr>
     </tbody>
-    <tbody class="common-list" data-controller="sortable" data-sortable-group="shared" data-sortable-url="{{ path('update_list') }}">
-        {% for entry in listeFilms %}
-        {% set film = entry.film %}
-        {% if film not in mesFilms %}
+    <tbody class="user-list" data-sortable-sortable="true" data-controller="sortable" data-sortable-group="shared" data-sortable-url="{{ path('update_list') }}">
+        
+        {% for film in mesFilms %}
         <tr data-id="{{ film.id }}">
             <td>{{ film.name }}</td>
             <td>{{ film.realisateur }}</td>
             <td>{{ film.genre }}</td>
-            <td>{{ entry.addedBy.pseudo }}</td>
-            <td>{{ entry.dateAdded | date('d/m/Y') }}</td>
+            <td>{{ (film.commonLists | first).addedBy.pseudo }}</td>
+            {#<td>{{ (film.commonLists | first).dateAdded | date('d/m/Y') }}</td>#}
             <td>
                 <a href="{{ path('app_index', {'id': film.id} ) }}"><i class="fa fa-edit"></i></a>
             </td>
         </tr>
-        {% endif %}
         {% endfor %}
     </tbody>
     <tbody>
         <tr>
-            <th colspan="6" class="title">Ma liste</th>
+            <th colspan="6" class="title">Liste complète</th>
         </tr>
     </tbody>
-    <tbody class="user-list" data-sortable-sortable="true" data-controller="sortable" data-sortable-group="shared" data-sortable-url="{{ path('update_list') }}">
-        
-        {% for film in mesFilms %}
+    <tbody class="common-list" data-controller="sortable" data-sortable-group="shared" data-sortable-url="{{ path('update_list') }}">
+        {% for entry in listeFilms %}
+        {% set film = entry.film %}
+        {% if film not in mesFilms %}
         <tr data-id="{{ film.id }}">
             <td>{{ film.name }}</td>
             <td>{{ film.realisateur }}</td>
             <td>{{ film.genre }}</td>
-            <td>{{ (film.commonLists | first).addedBy.pseudo }}</td>
-            <td>{{ (film.commonLists | first).dateAdded | date('d/m/Y') }}</td>
+            <td>{{ entry.addedBy.pseudo }}</td>
+            {#<td>{{ entry.dateAdded | date('d/m/Y') }}</td>#}
             <td>
                 <a href="{{ path('app_index', {'id': film.id} ) }}"><i class="fa fa-edit"></i></a>
             </td>
         </tr>
+        {% endif %}
         {% endfor %}
     </tbody>
 </table>