summaryrefslogtreecommitdiffstats
path: root/modules-available/exams/templates
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/exams/templates')
-rw-r--r--modules-available/exams/templates/page-add-edit-exam.html6
-rw-r--r--modules-available/exams/templates/page-exams.html8
2 files changed, 7 insertions, 7 deletions
diff --git a/modules-available/exams/templates/page-add-edit-exam.html b/modules-available/exams/templates/page-add-edit-exam.html
index 11bffed8..dc29a7f5 100644
--- a/modules-available/exams/templates/page-add-edit-exam.html
+++ b/modules-available/exams/templates/page-add-edit-exam.html
@@ -221,8 +221,8 @@ document.addEventListener("DOMContentLoaded", function () {
var to = e.data('to');
if (!from || !to)
return;
- from = slxMoment(from);
- to = slxMoment(to);
+ from = slxMoment.unix(from);
+ to = slxMoment.unix(to);
if (from.isBefore(sd) || to.isAfter(ed)) {
e.css('color', '#999');
e.data('inrange', false)
@@ -239,7 +239,7 @@ document.addEventListener("DOMContentLoaded", function () {
if (sel.val() === '' || sel.data('inrange')) {
$('#lecture-info').text('-');
} else {
- $('#lecture-info').text('{{lang_lectureOutOfRange}} (' + slxMoment(sel.data('from') * 1000).format('YYYY-MM-DD H:mm') + ' - ' + slxMoment(sel.data('to') * 1000).format('YYYY-MM-DD H:mm') + ')');
+ $('#lecture-info').text('{{lang_lectureOutOfRange}} (' + slxMoment.unix(sel.data('from')).format('YYYY-MM-DD H:mm') + ' - ' + slxMoment.unix(sel.data('to')).format('YYYY-MM-DD H:mm') + ')');
}
};
diff --git a/modules-available/exams/templates/page-exams.html b/modules-available/exams/templates/page-exams.html
index bb6cbd0a..df6a7dc9 100644
--- a/modules-available/exams/templates/page-exams.html
+++ b/modules-available/exams/templates/page-exams.html
@@ -5,7 +5,7 @@
</div>
<div class="panel-body">
<div class="slx-space">
- <table class="table table-bordered stupidtable">
+ <table class="table stupidtable">
<thead>
<tr>
<th data-sort="int">{{lang_id}}</th>
@@ -43,9 +43,9 @@
{{^liesInPast}}
<a onclick="slxShow({{starttime}}, {{endtime}})" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-eye-open"></span></a>
{{/liesInPast}}
- <a href="?do=exams&action=edit&examid={{examid}}" class="btn btn-default btn-sm {{^allowedEdit}}disabled{{/allowedEdit}}"><span class="glyphicon glyphicon-edit"></span></a> <input type="hidden" name="token" value="{{token}}">
+ <a href="?do=exams&action=edit&examid={{examid}}" class="btn btn-default btn-sm {{edit.disabled}}"><span class="glyphicon glyphicon-edit"></span></a> <input type="hidden" name="token" value="{{token}}">
<input type="hidden" name="examid" value="{{examid}}">
- <button {{^allowedDelete}}disabled{{/allowedDelete}} class="btn {{btnClass}} btn-sm"><span class="glyphicon glyphicon-trash"></span></button>
+ <button {{edit.disabled}} class="btn {{btnClass}} btn-sm"><span class="glyphicon glyphicon-trash"></span></button>
</form>
</td>
</tr>
@@ -55,7 +55,7 @@
</div>
<div class="text-right">
<div class="btn-group" role="group">
- <a href="?do=exams&action=add" class="btn btn-success {{^allowedToAdd}}disabled{{/allowedToAdd}}"><span class="glyphicon glyphicon-plus-sign"></span> {{lang_addExam}}</a>
+ <a href="?do=exams&action=add" class="btn btn-success {{perms.exams.edit.disabled}}"><span class="glyphicon glyphicon-plus-sign"></span> {{lang_addExam}}</a>
</div>
</div>
</div>