diff options
author | Simon Rettberg | 2016-06-23 17:03:29 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-06-23 17:03:29 +0200 |
commit | aefcaf9c027febdbd9a51869744d7a6a978b4413 (patch) | |
tree | d015179fee59eb0ef91ec344dc1604ce219c02f8 /modules-available/exams/templates | |
parent | [baseconfig] Take dependencies into account when handling API hooks (diff) | |
download | slx-admin-aefcaf9c027febdbd9a51869744d7a6a978b4413.tar.gz slx-admin-aefcaf9c027febdbd9a51869744d7a6a978b4413.tar.xz slx-admin-aefcaf9c027febdbd9a51869744d7a6a978b4413.zip |
[exams] Fix vis.js when an exam is active in more than one location (id collision), complete install hook (missing table), limit max. zoom level for vis.js
Diffstat (limited to 'modules-available/exams/templates')
-rw-r--r-- | modules-available/exams/templates/page-exams.html | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/modules-available/exams/templates/page-exams.html b/modules-available/exams/templates/page-exams.html index 3efe377a..9cd1d4c0 100644 --- a/modules-available/exams/templates/page-exams.html +++ b/modules-available/exams/templates/page-exams.html @@ -17,18 +17,12 @@ <td>{{starttime}}</td> <td>{{endtime}}</td> <td> - <div class="btn-toolbar" role="toolbar"> - <div class="btn-group"> - <a href="?do=exams&action=edit&examid={{examid}}" class="btn btn-default btn-sm" >{{lang_edit}}</a> - </div> - <div class="btn-group"> - <form method="POST" action="?do=exams&action=delete" onsubmit="return confirm('{{lang_deleteConfirmation}}');"> - <input type="hidden" name="token" value="{{token}}"/> - <input type="hidden" name="examid" value="{{examid}}"/> - <input type="submit" value="{{lang_delete}}" class="btn btn-default btn-sm" /> - </form> - </div> - </div> + <form method="POST" action="?do=exams&action=delete" onsubmit="return confirm('{{lang_deleteConfirmation}}');"> + <a href="?do=exams&action=edit&examid={{examid}}" class="btn btn-default btn-sm" >{{lang_edit}}</a> + <input type="hidden" name="token" value="{{token}}"> + <input type="hidden" name="examid" value="{{examid}}"> + <button class="btn btn-default btn-sm">{{lang_delete}}</button> + </form> </td> </tr> {{/exams}} @@ -69,8 +63,9 @@ document.addEventListener("DOMContentLoaded", function () { 'end' : {{vis_end}}, 'stack' : false, 'editable' : false, - 'min' : {{vis_begin}}, + 'min' : {{vis_min_date}}, 'max' : {{vis_max_date}}, + 'zoomMin': 2 * 3600 * 1000, 'order' : customOrder, 'locale' : language, 'moment' : function(date) { return vis.moment(date).utc(); } |