@@ -9,11 +9,11 @@ <h6 class="card-type-label">Application</h6>
9
9
< div class ="left ">
10
10
< h3 class ="card-title ">
11
11
< span class ="margin-right "> {{ cardTitle }}</ span >
12
- < app-application-type-pill [type] ="application.type "> </ app-application-type-pill >
13
12
</ h3 >
14
13
</ div >
15
14
< div class ="center ">
16
15
< button
16
+ *ngIf ="decision "
17
17
color ="accent "
18
18
mat-flat-button
19
19
[mat-dialog-close] ="isDirty "
@@ -23,35 +23,25 @@ <h3 class="card-title">
23
23
</ button >
24
24
</ div >
25
25
</ div >
26
- < div >
27
- < span class ="region "> {{ application.localGovernment?.name }} - {{ application.region?.label }} Region</ span >
26
+ < div class ="pill-row ">
27
+ < app-application-type-pill [type] ="application.type "> </ app-application-type-pill >
28
+ < app-application-type-pill
29
+ *ngIf ="applicationDecisionConditionCard.isModification "
30
+ [type] ="getStatusPill('MODIFICATION') "
31
+ > </ app-application-type-pill >
32
+ < app-application-type-pill
33
+ *ngIf ="applicationDecisionConditionCard.isReconsideration "
34
+ [type] ="getStatusPill('RECONSIDERATION') "
35
+ > </ app-application-type-pill >
36
+ < app-application-type-pill [type] ="getStatusPill('CONDITION') "> </ app-application-type-pill >
28
37
</ div >
29
38
< div class ="header-row ">
30
39
< div class ="left ">
31
- <!-- <app-time-tracker [data]="application"></app-time-tracker> -->
32
- <!-- <app-application-submission-status-type-pill
33
- *ngIf="status"
34
- [type]="status"
35
- ></app-application-submission-status-type-pill> -->
40
+ < div >
41
+ < span class ="region "> {{ application.localGovernment?.name }} - {{ application.region?.label }} Region</ span >
42
+ </ div >
36
43
</ div >
37
44
< div class ="right ">
38
- <!-- TODO: Implement move board feature in the future -->
39
- <!-- <button matTooltip="Move Board" [matMenuTriggerFor]="moveMenu" mat-icon-button>
40
- <mat-icon>move_down</mat-icon>
41
- </button>
42
- <mat-menu class="move-board-menu" xPosition="before" #moveMenu="matMenu">
43
- <button (click)="onBoardSelected(board)" *ngFor="let board of allowedBoards" mat-menu-item>
44
- <div class="board-menu-item">
45
- <span class="favourite-board-icon-container"
46
- ><mat-icon *ngIf="board.isFavourite" class="favourite-board-icon">star</mat-icon>
47
- </span>
48
- <span>{{ board.title }}</span>
49
- <span *ngIf="card && card!.boardCode === board.code"
50
- ><mat-icon class="selected-board-icon">check</mat-icon></span
51
- >
52
- </div>
53
- </button>
54
- </mat-menu> -->
55
45
< button
56
46
*ngIf ="canArchive "
57
47
matTooltip ="Archive Card "
@@ -118,6 +108,72 @@ <h3 class="card-title">
118
108
</ ng-template >
119
109
</ ng-select >
120
110
</ div >
111
+ < div class ="conditions-container ">
112
+ < div class ="conditions-header-container ">
113
+ < span class ="conditions-header "> Decision # - Conditions to Review</ span >
114
+ < div class ="buttons-container ">
115
+ < ng-container *ngIf ="!isEditing; else editMode ">
116
+ < button class ="edit-button " mat-icon-button (click) ="editClicked() ">
117
+ < mat-icon class ="edit-icon "> edit</ mat-icon >
118
+ </ button >
119
+ </ ng-container >
120
+ < ng-template #editMode >
121
+ < button type ="button " mat-stroked-button color ="primary " (click) ="onCancel() "> Cancel</ button >
122
+ < button type ="button " mat-flat-button color ="primary " [disabled] ="isSaveDisabled() " (click) ="onSave() ">
123
+ Save
124
+ </ button >
125
+ </ ng-template >
126
+ </ div >
127
+ </ div >
128
+ < div class ="conditions-table-container ">
129
+ < table mat-table class ="conditions-table mat-elevation-z2 " [dataSource] ="dataSource " style ="width: 100% ">
130
+ < ng-container matColumnDef ="select ">
131
+ < td mat-cell *matCellDef ="let element " class ="column-select ">
132
+ < mat-checkbox [(ngModel)] ="element.selected "> </ mat-checkbox >
133
+ </ td >
134
+ </ ng-container >
135
+
136
+ < ng-container matColumnDef ="condition ">
137
+ < td mat-cell *matCellDef ="let element " class ="column-condition ">
138
+ {{ element.index }}. {{ element.condition.type.label }}
139
+ </ td >
140
+ </ ng-container >
141
+
142
+ < ng-container matColumnDef ="date ">
143
+ < td mat-cell *matCellDef ="let element " class ="column-date ">
144
+ < ng-container *ngIf ="element.condition.type.isDateChecked ">
145
+ < ng-container *ngIf ="element.condition.type.dateType === 'Single'; else multipleDateColumn ">
146
+ < ng-container *ngIf ="element.condition.type.singleDateLabel === 'Due Date'; else singleEndDate ">
147
+ < span class ="date-label "> Due Date: </ span >
148
+ </ ng-container >
149
+ < ng-template #singleEndDate >
150
+ < span class ="date-label "> End Date: </ span >
151
+ </ ng-template >
152
+ </ ng-container >
153
+ < ng-template #multipleDateColumn >
154
+ < span class ="date-label "> Due Date:</ span >
155
+ </ ng-template >
156
+ {{ getDate(element.condition) }}
157
+ </ ng-container >
158
+ </ td >
159
+ </ ng-container >
160
+
161
+ < ng-container matColumnDef ="status ">
162
+ < td mat-cell *matCellDef ="let element " class ="column-status ">
163
+ < app-application-type-pill [type] ="getStatusPill(element.condition.status) "> </ app-application-type-pill >
164
+ </ td >
165
+ </ ng-container >
166
+
167
+ < tr
168
+ mat-row
169
+ *matRowDef ="let row; columns: displayColumns "
170
+ [class.disabled-row] ="isConditionDisabled(row.condition) "
171
+ matTooltip ="Condition is being used by another card "
172
+ [matTooltipDisabled] ="!isConditionDisabled(row.condition) "
173
+ > </ tr >
174
+ </ table >
175
+ </ div >
176
+ </ div >
121
177
< div class ="subtasks-wrapper ">
122
178
< app-subtasks *ngIf ="card " [cardUuid] ="card.uuid "> </ app-subtasks >
123
179
</ div >
0 commit comments