From 75b7c70b0130c1d8eff2de03b76d2771f1f19781 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 24 Jun 2016 11:25:27 +0200 Subject: [exams] Unify add/edit templates, add error messages, limit zoom range some more --- .../exams/templates/page-add-edit-exam.html | 70 ++++++++++++++++++++++ .../exams/templates/page-add-exam.html | 61 ------------------- .../exams/templates/page-edit-exam.html | 61 ------------------- modules-available/exams/templates/page-exams.html | 3 +- 4 files changed, 72 insertions(+), 123 deletions(-) create mode 100644 modules-available/exams/templates/page-add-edit-exam.html delete mode 100644 modules-available/exams/templates/page-add-exam.html delete mode 100644 modules-available/exams/templates/page-edit-exam.html (limited to 'modules-available/exams/templates') diff --git a/modules-available/exams/templates/page-add-edit-exam.html b/modules-available/exams/templates/page-add-edit-exam.html new file mode 100644 index 00000000..26cbf8bc --- /dev/null +++ b/modules-available/exams/templates/page-add-edit-exam.html @@ -0,0 +1,70 @@ +{{#exam.examid}} +

{{lang_editExam}}

+{{/exam.examid}} +{{^exam.examid}} +

{{lang_addExam}}

+{{/exam.examid}} + +
+
+ + +
+ +
+
+ + +
+
+ + +
+
+ +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + + + + +
+ + diff --git a/modules-available/exams/templates/page-add-exam.html b/modules-available/exams/templates/page-add-exam.html deleted file mode 100644 index 89a7881a..00000000 --- a/modules-available/exams/templates/page-add-exam.html +++ /dev/null @@ -1,61 +0,0 @@ -

{{lang_addExam}}

- -
-
- - -
- -
-
- - -
-
- - -
-
- -
-
- - -
-
- - -
-
-
-
- - -
-
- - - -
- - diff --git a/modules-available/exams/templates/page-edit-exam.html b/modules-available/exams/templates/page-edit-exam.html deleted file mode 100644 index 61848ec2..00000000 --- a/modules-available/exams/templates/page-edit-exam.html +++ /dev/null @@ -1,61 +0,0 @@ -

{{lang_editExam}}:

- -
-
- - -
- -
-
- - -
-
- - -
-
- -
-
- - -
-
- - -
-
-
-
- - -
-
- - - -
- - diff --git a/modules-available/exams/templates/page-exams.html b/modules-available/exams/templates/page-exams.html index c714ed2b..b2483d6e 100644 --- a/modules-available/exams/templates/page-exams.html +++ b/modules-available/exams/templates/page-exams.html @@ -65,7 +65,8 @@ document.addEventListener("DOMContentLoaded", function () { 'editable' : false, 'min' : {{vis_min_date}}, 'max' : {{vis_max_date}}, - 'zoomMin': 2 * 3600 * 1000, + 'zoomMin': 6 * 3600 * 1000, + 'zoomMax': 2 * 86400 * 1000, 'order' : customOrder, 'locale' : language, 'moment' : function(date) { return vis.moment(date).utc(); } -- cgit v1.2.3-55-g7522