-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat_optional_inputs' into job_create_for_interface
- Loading branch information
Showing
45 changed files
with
404 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 4 additions & 8 deletions
12
app/grandchallenge/challenges/static/js/challenges/challenge_costs_overview.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
document.addEventListener("DOMContentLoaded", event => { | ||
$("#challengeCostsOverviewTable").DataTable({ | ||
order: [[2, "desc"]], | ||
order: [ | ||
[2, "desc"], | ||
[3, "desc"], | ||
], | ||
lengthChange: false, | ||
pageLength: 100, | ||
columnDefs: [ | ||
{ | ||
targets: "datatables-non-sortable", | ||
searchable: false, | ||
orderable: false, | ||
}, | ||
], | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
.dt-layout-start, | ||
.dt-layout-end { | ||
padding-top: $spacer * 0.5; | ||
padding-bottom: $spacer * 0.5; | ||
} | ||
|
||
.dt-container ul.pagination { | ||
justify-content: right; | ||
} | ||
|
||
.dt-layout-full, | ||
.dt-layout-start, | ||
.dt-layout-end { | ||
padding-left: 0 !important; | ||
padding-right: 0 !important; | ||
} | ||
|
||
.dt-scroll-body { | ||
border-bottom: none !important; | ||
} | ||
|
||
.dt-orderable-none .dt-column-order { | ||
display: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,47 @@ | ||
$.extend(true, DataTable.defaults, { | ||
$.extend($.fn.dataTable.defaults, { | ||
scrollX: true, | ||
lengthChange: false, | ||
language: { | ||
paginate: { | ||
next: "Next", | ||
previous: "Previous", | ||
}, | ||
}, | ||
pagingType: "simple_numbers", | ||
columnDefs: [ | ||
{ | ||
// Prevents unexpected styling for dt-*-type datatypes | ||
// Only applies to client-side tables | ||
type: "string", | ||
targets: "_all", | ||
}, | ||
{ | ||
targets: "nonSortable", | ||
searchable: false, | ||
orderable: false, | ||
}, | ||
], | ||
drawCallback: function () { | ||
const api = this.api(); | ||
api.columns().every(function () { | ||
if (this.orderable) { | ||
this.header().setAttribute( | ||
"title", | ||
"Activate to sort. Hold Shift to sort by multiple columns.", | ||
); | ||
} | ||
}); | ||
}, | ||
}); | ||
|
||
$(document).on("init.dt", () => { | ||
// Set up floating scroll, note that the target class only shows up when scrollX is set to true | ||
$(".dataTables_scrollBody").floatingScroll(); | ||
const element = $(".dt-scroll-body"); | ||
|
||
if (element.length === 0) { | ||
console.warn( | ||
"Warning: Element for floating-scroll attachment could not be located", | ||
); | ||
} | ||
|
||
element.floatingScroll(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
$(document).ready(() => { | ||
$("table.sortable").dataTable({ | ||
bJQueryUI: false, | ||
sPaginationType: "full_numbers", | ||
bPaginate: false, | ||
bLengthChange: false, | ||
bFilter: false, | ||
bInfo: false, | ||
bAutoWidth: false, | ||
paginate: false, | ||
lengthChange: false, | ||
filter: false, | ||
info: false, | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 1 addition & 9 deletions
10
app/grandchallenge/evaluation/static/js/evaluation/groundtruths_table.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
$(document).ready(() => { | ||
$("#groundtruthsTable").DataTable({ | ||
columnDefs: [ | ||
{ | ||
targets: "nonSortable", | ||
searchable: false, | ||
orderable: false, | ||
}, | ||
], | ||
}); | ||
$("#groundtruthsTable").DataTable(); | ||
}); |
Oops, something went wrong.