Set colors for assigned and in progress job orders in View All and View Open JO lists. #436

This commit is contained in:
Korina Cordero 2020-07-13 03:48:05 +00:00
parent 6bf4b76486
commit c61e3ac39e
3 changed files with 34 additions and 7 deletions

View file

@ -155,6 +155,29 @@ span.has-danger,
color: #fff !important; color: #fff !important;
} }
.m-table__row--is_in_progress td {
background-color: #FFA500 !important;
color: #fff !important;
}
.m-table__row--is_in_progress td > span,
.m-table__row--is_in_progress td > span a,
.m-table__row--is_in_progress td > span a i {
color: #fff !important;
}
.m-table__row--is_assigned td {
background-color: #0000ff !important;
color: #fff !important;
}
.m-table__row--is_assigned td > span,
.m-table__row--is_assigned td > span a,
.m-table__row--is_assigned td > span a i {
color: #fff !important;
}
.m-datatable.m-datatable--default > .m-datatable__table { .m-datatable.m-datatable--default > .m-datatable__table {
min-height: 0 !important; min-height: 0 !important;
} }

View file

@ -94,8 +94,12 @@
}, },
rows: { rows: {
beforeTemplate: function (row, data, index) { beforeTemplate: function (row, data, index) {
if (data.flag_advance) { if (data.status == 'In Progress') {
$(row).addClass('m-table__row--danger'); $(row).addClass('m-table__row--is_in_progress');
}
if (data.status == 'Assigned') {
$(row).addClass('m-table__row--is_assigned');
} }
} }
}, },

View file

@ -93,12 +93,12 @@
}, },
rows: { rows: {
beforeTemplate: function (row, data, index) { beforeTemplate: function (row, data, index) {
if (data.flag_advance) { if (data.status == 'In Progress') {
$(row).addClass('m-table__row--danger'); $(row).addClass('m-table__row--is_in_progress');
} }
if (data.is_mobile) { if (data.status == 'Assigned') {
$(row).addClass('m-table__row--is_mobile'); $(row).addClass('m-table__row--is_assigned');
} }
} }
}, },