.
This commit is contained in:
@@ -102,12 +102,12 @@
|
|||||||
{% block js %}
|
{% block js %}
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4/dt-1.11.3/r-2.2.9/datatables.min.css"/>
|
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4/dt-1.11.3/r-2.2.9/datatables.min.css"/>
|
||||||
|
|
||||||
<script type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.11.3/r-2.2.9/datatables.min.js"></script>
|
<script type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.11.3/r-2.2.9/datatables.min.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml ) {
|
jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml ) {
|
||||||
var esc = function ( t ) {
|
var esc = function ( t ) {
|
||||||
return t
|
return t
|
||||||
.replace( /&/g, '&' )
|
.replace( /&/g, '&' )
|
||||||
@@ -146,7 +146,7 @@ jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml )
|
|||||||
|
|
||||||
return '<span class="ellipsis" title="'+esc(d)+'">'+shortened+'…</span>';
|
return '<span class="ellipsis" title="'+esc(d)+'">'+shortened+'…</span>';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
function postAjax(data) {
|
function postAjax(data) {
|
||||||
|
|
||||||
@@ -200,6 +200,7 @@ jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml )
|
|||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
|
{% if exams %}
|
||||||
$("table").DataTable({
|
$("table").DataTable({
|
||||||
columnDefs: [ {
|
columnDefs: [ {
|
||||||
targets: [6,7,8,9,10],
|
targets: [6,7,8,9,10],
|
||||||
@@ -207,6 +208,7 @@ jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml )
|
|||||||
} ],
|
} ],
|
||||||
"paging": false,
|
"paging": false,
|
||||||
});
|
});
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
$("#toggle-internal").click((evt) => {
|
$("#toggle-internal").click((evt) => {
|
||||||
data = getGenericData();
|
data = getGenericData();
|
||||||
|
|||||||
@@ -1326,6 +1326,7 @@ class CidUserExamView(CidManagerRequiredMixin, SingleTableMixin, FilterView):
|
|||||||
context["longs_exams"] = longs_exams
|
context["longs_exams"] = longs_exams
|
||||||
context["anatomy_exams"] = anatomy_exams
|
context["anatomy_exams"] = anatomy_exams
|
||||||
context["cid_user_groups"] = cid_user_groups
|
context["cid_user_groups"] = cid_user_groups
|
||||||
|
context["exams"] = True
|
||||||
return context
|
return context
|
||||||
|
|
||||||
class CidUserView(CidManagerRequiredMixin, SingleTableMixin, FilterView):
|
class CidUserView(CidManagerRequiredMixin, SingleTableMixin, FilterView):
|
||||||
|
|||||||
Reference in New Issue
Block a user