Skip to content
Snippets Groups Projects
Commit 00f66be1 authored by Emmanuel Viennet's avatar Emmanuel Viennet
Browse files

Table jury BUT: pas de colonnes rangs et admissions

parent dcee2a44
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ def build_table_jury_but_html( ...@@ -86,7 +86,7 @@ def build_table_jury_but_html(
"""assemble la table html""" """assemble la table html"""
footer_rows = [] # inutile pour l'instant, à voir XXX footer_rows = [] # inutile pour l'instant, à voir XXX
H = [ H = [
f"""<div class="table_recap"><table class="table_recap apc jury" f"""<div class="table_recap"><table class="table_recap apc jury table_jury_but"
data-filename="{filename}">""" data-filename="{filename}">"""
] ]
# header # header
......
...@@ -22,6 +22,10 @@ $(function () { ...@@ -22,6 +22,10 @@ $(function () {
dt.buttons('toggle_partitions:name').text(visible ? "Montrer groupes" : "Cacher les groupes"); dt.buttons('toggle_partitions:name').text(visible ? "Montrer groupes" : "Cacher les groupes");
} }
}, },
];
// Bouton "rangs groupes", sauf pour table jury BUT
if (!$('table.table_recap').hasClass("table_jury_but")) {
buttons.push(
{ {
name: "toggle_partitions_rangs", name: "toggle_partitions_rangs",
text: "Rangs groupes", text: "Rangs groupes",
...@@ -30,8 +34,9 @@ $(function () { ...@@ -30,8 +34,9 @@ $(function () {
dt.columns(".partition_rangs").visible(!rangs_visible); dt.columns(".partition_rangs").visible(!rangs_visible);
dt.buttons('toggle_partitions_rangs:name').text(rangs_visible ? "Rangs groupes" : "Cacher rangs groupes"); dt.buttons('toggle_partitions_rangs:name').text(rangs_visible ? "Rangs groupes" : "Cacher rangs groupes");
} }
}, });
]; }
if (!$('table.table_recap').hasClass("jury")) { if (!$('table.table_recap').hasClass("jury")) {
buttons.push( buttons.push(
$('table.table_recap').hasClass("apc") ? $('table.table_recap').hasClass("apc") ?
...@@ -80,6 +85,8 @@ $(function () { ...@@ -80,6 +85,8 @@ $(function () {
} }
}) })
} }
// Boutons admission, sauf pour table jury BUT
if (!$('table.table_recap').hasClass("table_jury_but")) {
buttons.push({ buttons.push({
name: "toggle_admission", name: "toggle_admission",
text: "Montrer infos admission", text: "Montrer infos admission",
...@@ -88,7 +95,8 @@ $(function () { ...@@ -88,7 +95,8 @@ $(function () {
dt.columns(".admission").visible(!visible); dt.columns(".admission").visible(!visible);
dt.buttons('toggle_admission:name').text(visible ? "Montrer infos admission" : "Cacher infos admission"); dt.buttons('toggle_admission:name').text(visible ? "Montrer infos admission" : "Cacher infos admission");
} }
}) });
}
$('table.table_recap').DataTable( $('table.table_recap').DataTable(
{ {
paging: false, paging: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment