summaryrefslogtreecommitdiffstats
path: root/modules-available/exams/templates/page-add-edit-exam.html
diff options
context:
space:
mode:
authorUdo Walter2017-09-11 18:47:54 +0200
committerUdo Walter2017-09-11 18:47:54 +0200
commitfebd89b7245b090cc32c8ebd4fab8e31e505c2d1 (patch)
tree961dacc336063ce6b7cfb135fc8c323aade5b02c /modules-available/exams/templates/page-add-edit-exam.html
parent[internetaccess] added missing stylesheet (diff)
downloadslx-admin-febd89b7245b090cc32c8ebd4fab8e31e505c2d1.tar.gz
slx-admin-febd89b7245b090cc32c8ebd4fab8e31e505c2d1.tar.xz
slx-admin-febd89b7245b090cc32c8ebd4fab8e31e505c2d1.zip
[exams] fixed inconsistencies + made tables sortable
Diffstat (limited to 'modules-available/exams/templates/page-add-edit-exam.html')
-rw-r--r--modules-available/exams/templates/page-add-edit-exam.html14
1 files changed, 11 insertions, 3 deletions
diff --git a/modules-available/exams/templates/page-add-edit-exam.html b/modules-available/exams/templates/page-add-edit-exam.html
index bf000df5..cb1578ad 100644
--- a/modules-available/exams/templates/page-add-edit-exam.html
+++ b/modules-available/exams/templates/page-add-edit-exam.html
@@ -1,8 +1,8 @@
{{#exam.examid}}
-<h1>{{lang_editExam}}</h1>
+<h1>{{lang_headingEditExam}}</h1>
{{/exam.examid}}
{{^exam.examid}}
-<h1>{{lang_addExam}}</h1>
+<h1>{{lang_headingAddExam}}</h1>
{{/exam.examid}}
{{#exam.displayname}}
<div class="alert alert-info">{{lang_addingBasedOnLecture}}:<br><b>{{exam.displayname}}</b></div>
@@ -110,7 +110,11 @@
<input type="hidden" name="action" value="save">
<input type="hidden" name="token" value="{{token}}">
<input type="hidden" name="examid" value="{{exam.examid}}">
- <button class="btn btn-success" type="submit">{{lang_save}}</button>
+ <div class="text-right" style="margin-bottom: 20px">
+ <button type="submit" id="saveButton" class="btn btn-primary" style="margin-right: 10px"><span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}}</button>
+ <button type="button" id="cancelButton" class="btn btn-default"><span class="glyphicon glyphicon-remove"></span> {{lang_cancel}}</button>
+ </div>
+
</form>
<script type="application/javascript"><!--
@@ -214,5 +218,9 @@ document.addEventListener("DOMContentLoaded", function () {
}
});
+ $("#cancelButton").click(function () {
+ window.location.replace("?do=exams");
+ });
+
}, false);
// --></script>