From 3742891b07df1354aa2bba480f4e0e8f48046457 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Wed, 17 Jul 2019 01:32:28 +0200 Subject: [PATCH] Add alert about lessons being deleted by import. --- biscuit/apps/untis/templates/untis/untis_import.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/biscuit/apps/untis/templates/untis/untis_import.html b/biscuit/apps/untis/templates/untis/untis_import.html index 4fe9320..1853dc4 100644 --- a/biscuit/apps/untis/templates/untis/untis_import.html +++ b/biscuit/apps/untis/templates/untis/untis_import.html @@ -1,6 +1,6 @@ {# -*- engine:django -*- #} {% extends "core/base.html" %} -{% load bootstrap4 i18n static %} +{% load bootstrap4 font_awesome i18n static %} {% block page_title %}Import Untis data{% endblock %} @@ -11,6 +11,13 @@ Untis provides a function for exporting all data as an XML file. {% endblocktrans %} </p> + <div class="alert alert-danger" role="alert"> + {% fa 'exclamation-triangle' %} + {% blocktrans %} + All lesson data will be overwritten by the import. Teachers, rooms, + classes and periods will be updated in place. + {% endblocktrans %} + </div> </div> <form method="post" enctype="multipart/form-data"> -- GitLab