From 4efd42d79ff008f19bbb2b8e83d8f4b79a56696e Mon Sep 17 00:00:00 2001
From: Julian Leucker <leuckerj@gmail.com>
Date: Thu, 3 Sep 2020 17:19:05 +0200
Subject: [PATCH] New table for Tablets

---
 .../alsijil/class_register/week_view.html     | 28 +++++++++++++------
 1 file changed, 19 insertions(+), 9 deletions(-)

diff --git a/aleksis/apps/alsijil/templates/alsijil/class_register/week_view.html b/aleksis/apps/alsijil/templates/alsijil/class_register/week_view.html
index af413a55d..798797354 100644
--- a/aleksis/apps/alsijil/templates/alsijil/class_register/week_view.html
+++ b/aleksis/apps/alsijil/templates/alsijil/class_register/week_view.html
@@ -117,17 +117,27 @@
                   {% for period in periods %}
                     <a class="collection-item avatar"
                        href="{% url 'lesson_by_week_and_period' week.year week.week period.id %}">
-                      <p class="title">
-                        {% include "alsijil/partials/lesson_status_icon.html" with period=period css_class="circle" color_suffix=" " %}
-                        {{ period.period.period }}. {{ period.get_subject.name }}
-                      </p>
-                      <p>
+                      {% include "alsijil/partials/lesson_status_icon.html" with period=period css_class="circle" color_suffix=" " %}
+                      <table class="hide-on-med-and-down">
+                        <tr>
+                          <th>{% trans "Subject" %}</th>
+                          <td>{{ period.period.period }}. {{ period.get_subject.name }}</td>
+                        </tr>
                         {% if not group %}
-                          {{ period.lesson.group_names }}
+                          <tr>
+                            <th>{% trans "Group" %}</th>
+                            <td>{{ period.lesson.group_names }}</td>
+                          </tr>
                         {% endif %}
-                        {{ period.get_teacher_names }}
-                      </p>
-                      <p>{{ period.get_lesson_documentation.topic }}</p>
+                        <tr>
+                          <th>{% trans "Teachers" %}</th>
+                          <td>{{ period.lesson.teacher_names }}</td>
+                        </tr>
+                        <tr>
+                          <th>{% trans "Lesson Topic" %}</th>
+                          <td>{{ period.get_lesson_documentation.topic }}</td>
+                        </tr>
+                      </table>
                     </a>
                   {% endfor %}
                 </div>
-- 
GitLab