Skip to content
Snippets Groups Projects
Commit 2a86c53d authored by Julian's avatar Julian
Browse files

Make any text in the week view table clickable

parent 720c1975
No related branches found
No related tags found
1 merge request!48Review use of Materialize
......@@ -34,7 +34,7 @@
{% if lesson_periods %}
<div class="row">
<div class="col s7">
<div class="col s12 m7">
{% regroup lesson_periods by period.get_weekday_display as periods_by_day %}
{% for weekday, periods in periods_by_day %}
<div class="card">
......@@ -42,7 +42,7 @@
<span class="card-title">
{{ weekday }}
</span>
<table class="striped responsive-table datatable">
<table class="striped datatable">
<thead>
<tr>
<th>{% blocktrans %}Period{% endblocktrans %}</th>
......@@ -70,13 +70,21 @@
{% endif %}
{% endif %}
">
<td>{{ period.period.period }}</td>
<td class="tr-link">
<a class="tr-link" href="{% url 'lesson_by_week_and_period' week.year week.week period.id %}">
{{ period.period.period }}
</a>
</td>
<td>
<a href="{% url 'lesson_by_week_and_period' week.year week.week period.id %}">
<a class="tr-link" href="{% url 'lesson_by_week_and_period' week.year week.week period.id %}">
{{ period.get_subject.name }}
</a>
</td>
<td>{{ period.get_teacher_names }}</td>
<td>
<a class="tr-link" href="{% url 'lesson_by_week_and_period' week.year week.week period.id %}">
{{ period.get_teacher_names }}
</a>
</td>
</tr>
{% endfor %}
</tbody>
......@@ -85,7 +93,7 @@
</div>
{% endfor %}
</div>
<div class="col s5">
<div class="col s12 m5">
<div class="card">
<div class="card-content">
<span class="card-title">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment