Skip to content
Snippets Groups Projects

Prerequisites manager 3

Files

@@ -18,6 +18,7 @@ const optionsSort = [
{ value: 'last_name', text: 'Last Name' },
{ value: 'student_number', text: 'Student Number' },
{ value: 'todos', text: 'To Do\'s' },
{ value: 'code_of_conduct', text: 'Code of Conduct' },
{ value: 'ta_training', text: 'TA Training' },
{ value: 'english_test', text: 'English Test' },
{ value: 'payscale', text: 'Payscale' },
@@ -68,6 +69,10 @@ export default {
key: 'todos',
label: 'To Do\'s',
},
{ key: 'code_of_conduct',
label: 'Code of Conduct',
tdClass: 'align-middle text-center',
},
{ key: 'ta_training',
label: 'TA Training',
tdClass: 'align-middle text-center',
@@ -132,6 +137,7 @@ export default {
// High values should come before low values
this.studentRows.sort((a, b) => b.todos - a.todos);
break;
case 'code_of_conduct':
case 'ta_training':
case 'english_test':
case 'accepted':
@@ -163,6 +169,9 @@ export default {
this.studentRows = [];
this.student_data.forEach((student) => {
const cellVariants = {};
if (student.prerequisites.code_of_conduct === 1) {
cellVariants.code_of_conduct = WARNING;
}
if (student.prerequisites.ta_training === 1) {
cellVariants.ta_training = WARNING;
}
Loading