From b94450de09a096d7bda7852420c9b26cc6f5e174 Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Sun, 12 Jan 2020 11:11:04 +0100 Subject: [PATCH] Fix JS datepicker in substitution.html --- aleksis/apps/chronos/templates/chronos/substitution.html | 8 ++++---- aleksis/apps/chronos/urls.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/aleksis/apps/chronos/templates/chronos/substitution.html b/aleksis/apps/chronos/templates/chronos/substitution.html index 90293e83..ea91da3d 100644 --- a/aleksis/apps/chronos/templates/chronos/substitution.html +++ b/aleksis/apps/chronos/templates/chronos/substitution.html @@ -2,11 +2,11 @@ {% load i18n %} -<script type="text/javascript"> - var dest = "/timetable/substitutions/"; -</script> - {% block content %} + <script type="text/javascript"> + var dest = "{% url "substitutions" %}"; + </script> + <div class="row no-margin"> <div class="col s10 m6"> <h4>{% trans "Substitutions" %}</h4> diff --git a/aleksis/apps/chronos/urls.py b/aleksis/apps/chronos/urls.py index b9fef0b5..ed55dca2 100644 --- a/aleksis/apps/chronos/urls.py +++ b/aleksis/apps/chronos/urls.py @@ -18,6 +18,6 @@ urlpatterns = [ views.delete_substitution, name="delete_substitution", ), - path("substitutions", views.substitutions, name="substitutions"), + path("substitutions/", views.substitutions, name="substitutions"), path("substitutions/<int:year>/<int:month>/<int:day>/", views.substitutions, name="substitutions_by_day"), ] -- GitLab