aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAlban Gruin2017-09-08 11:53:49 +0200
committerAlban Gruin2017-09-08 11:53:49 +0200
commit57ffdbf0658042069abcf0b1f9184ff69a3139e2 (patch)
tree85ab2f0cf55fc85dec62b065b7eb246b7de46e4c /templates
parent0a287c2013bcfd1cb71926fbd0835170369521f7 (diff)
Ajout de l’année dans les urls
Diffstat (limited to 'templates')
-rw-r--r--templates/group_list.html2
-rw-r--r--templates/subscribe.html2
-rw-r--r--templates/timetable.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/group_list.html b/templates/group_list.html
index d8d7227..2530865 100644
--- a/templates/group_list.html
+++ b/templates/group_list.html
@@ -5,7 +5,7 @@
<h3><a href="{{ timetable.url }}">{{ timetable }}</a></h3>
<ul>
{% for group in groups %}
- <li><a class="text"{% if group.weeks is not None %} href="{% url "timetable" timetable.slug group.slug %}"{% endif %}>{{ group }}</a> &ndash; {% for week in group.weeks %}<a href="{% url "timetable" timetable.slug group.slug week.year week|dt_week %}">{{ week|dt_prettyprint }}</a> {% empty %}<em>aucun cours</em>{% endfor %}</li>
+ <li><a class="text"{% if group.weeks is not None %} href="{% url "timetable" timetable.year.slug timetable.slug group.slug %}"{% endif %}>{{ group }}</a> &ndash; {% for week in group.weeks %}<a href="{% url "timetable" timetable.year.slug timetable.slug group.slug week.year week|dt_week %}">{{ week|dt_prettyprint }}</a> {% empty %}<em>aucun cours</em>{% endfor %}</li>
{% endfor %}
</ul>
{% endblock %}
diff --git a/templates/subscribe.html b/templates/subscribe.html
index 1c1bc3a..5e885df 100644
--- a/templates/subscribe.html
+++ b/templates/subscribe.html
@@ -4,7 +4,7 @@
{% block body %}
<h2>S'abonner à {{ group.timetable.name }} &ndash; {{ group.name }}</h2>
- <form action="{% url "subscribe" group.timetable.slug group.slug year week %}" method="post">
+ <form action="{% url "subscribe" group.timetable.year.slug group.timetable.slug group.slug year week %}" method="post">
{% csrf_token %}
{{ form }}
<input type="submit" value="S'abonner" />
diff --git a/templates/timetable.html b/templates/timetable.html
index 149068d..a867fd0 100644
--- a/templates/timetable.html
+++ b/templates/timetable.html
@@ -16,4 +16,4 @@
</li>{% endfor %}
</ul>
</section>{% endfor %}
- <p><a class="subscribe" href="{% url "subscribe" group.timetable.slug group.slug year week %}">S’abonner à cet emploi du temps</a></p>{% endblock %}
+ <p><a class="subscribe" href="{% url "subscribe" group.timetable.year.slug group.timetable.slug group.slug year week %}">S’abonner à cet emploi du temps</a></p>{% endblock %}