Added coloring for riskScore and priority(IssueLog)
This commit is contained in:
parent
22671e7641
commit
11240d444e
2 changed files with 12 additions and 14 deletions
|
|
@ -186,25 +186,23 @@ public class IssueLogCRUDController extends BaseCRUDController<IssueLog> {
|
|||
appendDate(row, issueLog.getDateResolved());
|
||||
appendLabel(row, issueLog.getNotes());
|
||||
appendOperations(row, issueLog);
|
||||
setPriorityColor(row, issueLog.getPriority());
|
||||
setPriorityCellColor(row, issueLog.getPriority());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private void setPriorityColor(Row row, LowMediumHighEnum priority) {
|
||||
if (priority == LowMediumHighEnum.LOW) {
|
||||
private void setPriorityCellColor(Row row, LowMediumHighEnum priority) {
|
||||
Cell cell = (Cell) row.getChildren().get(5);
|
||||
cell.setClass("Issuelog-priority-color-green");
|
||||
if (priority == LowMediumHighEnum.LOW) {
|
||||
cell.setClass("logs-priority-color-green");
|
||||
}
|
||||
|
||||
if (priority == LowMediumHighEnum.MEDIUM) {
|
||||
Cell cell = (Cell) row.getChildren().get(5);
|
||||
cell.setClass("Issuelog-priority-color-yellow");
|
||||
cell.setClass("logs-priority-color-yellow");
|
||||
}
|
||||
|
||||
if (priority == LowMediumHighEnum.HIGH) {
|
||||
Cell cell = (Cell) row.getChildren().get(5);
|
||||
cell.setClass("Issuelog-priority-color-red");
|
||||
cell.setClass("logs-priority-color-red");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1941,14 +1941,14 @@ select {
|
|||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.Issuelog-priority-color-red {
|
||||
background: red !important;
|
||||
.logs-priority-color-red {
|
||||
background: #FF4000 !important;
|
||||
}
|
||||
|
||||
.Issuelog-priority-color-yellow {
|
||||
background: yellow !important;
|
||||
.logs-priority-color-yellow {
|
||||
background: #FFA500 !important;
|
||||
}
|
||||
|
||||
.Issuelog-priority-color-green {
|
||||
background: green !important;
|
||||
.logs-priority-color-green {
|
||||
background: #AAFFAA !important;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue