|
2 | 2 | <div class="row">
|
3 | 3 | <div class="col-md-3"></div>
|
4 | 4 | <div class="col-md-6">
|
| 5 | + <div class="overlay-details" [hidden]="!showOverlay"> |
| 6 | + <div *ngIf="taskDetails; then taskTrue; else taskFalse"></div> |
| 7 | + <ng-template #taskTrue> |
| 8 | + <div class="overlay-modal"> |
| 9 | + <mat-accordion multi="true" class="overlay-accordion"> |
| 10 | + <div |
| 11 | + *ngIf=" |
| 12 | + taskDetails.navigationExtras; |
| 13 | + then navigationTrue; |
| 14 | + else navigationFalse |
| 15 | + "></div> |
| 16 | + <div> |
| 17 | + <ng-template #navigationTrue> |
| 18 | + <div class="overlay-header"> |
| 19 | + <button class="overlay-close" (click)="closeOverlay()"> |
| 20 | + <mat-icon class="white-icon">close</mat-icon> |
| 21 | + </button> |
| 22 | + <h2>{{ taskDetails.navigationExtras.dimension }}</h2> |
| 23 | + <h3>{{ taskDetails.navigationExtras.subDimension }}</h3> |
| 24 | + <h4> |
| 25 | + {{ taskDetails.navigationExtras.taskName }} |
| 26 | + </h4> |
| 27 | + </div> |
| 28 | + </ng-template> |
| 29 | + <ng-template #navigationFalse> |
| 30 | + <div class="overlay-header"> |
| 31 | + <button class="overlay-close" (click)="closeOverlay()"> |
| 32 | + <mat-icon class="white-icon">close</mat-icon> |
| 33 | + </button> |
| 34 | + <h2>Nothing to show</h2> |
| 35 | + </div> |
| 36 | + </ng-template> |
| 37 | + </div> |
| 38 | + <mat-expansion-panel |
| 39 | + [expanded]="true" |
| 40 | + *ngIf="taskDetails.description"> |
| 41 | + <mat-expansion-panel-header> |
| 42 | + <mat-panel-title> |
| 43 | + <b>Description</b> |
| 44 | + </mat-panel-title> |
| 45 | + </mat-expansion-panel-header> |
| 46 | + <ng-template matExpansionPanelContent> |
| 47 | + <p [innerHTML]="taskDetails.description"></p> |
| 48 | + </ng-template> |
| 49 | + </mat-expansion-panel> |
| 50 | + <mat-expansion-panel [expanded]="true" *ngIf="taskDetails.risk"> |
| 51 | + <mat-expansion-panel-header> |
| 52 | + <mat-panel-title> |
| 53 | + <b>Risk</b> |
| 54 | + </mat-panel-title> |
| 55 | + </mat-expansion-panel-header> |
| 56 | + <ng-template matExpansionPanelContent> |
| 57 | + <p [innerHTML]="taskDetails.risk"></p> |
| 58 | + </ng-template> |
| 59 | + </mat-expansion-panel> |
| 60 | + <mat-expansion-panel |
| 61 | + [expanded]="true" |
| 62 | + *ngIf="taskDetails.measure"> |
| 63 | + <mat-expansion-panel-header> |
| 64 | + <mat-panel-title> |
| 65 | + <b>Measure</b> |
| 66 | + </mat-panel-title> |
| 67 | + </mat-expansion-panel-header> |
| 68 | + <ng-template matExpansionPanelContent> |
| 69 | + <p [innerHTML]="taskDetails.measure"></p> |
| 70 | + </ng-template> |
| 71 | + </mat-expansion-panel> |
| 72 | + <mat-expansion-panel |
| 73 | + [expanded]="true" |
| 74 | + *ngIf="taskDetails.implementation"> |
| 75 | + <mat-expansion-panel-header> |
| 76 | + <mat-panel-title> |
| 77 | + <b>Implementation Guide</b> |
| 78 | + </mat-panel-title> |
| 79 | + </mat-expansion-panel-header> |
| 80 | + <ng-template matExpansionPanelContent> |
| 81 | + <ul> |
| 82 | + <li *ngFor="let implement of taskDetails.implementation"> |
| 83 | + <a href="{{ implement.url }}">{{ implement.name }}</a> |
| 84 | + </li> |
| 85 | + </ul> |
| 86 | + </ng-template> |
| 87 | + </mat-expansion-panel> |
| 88 | + <mat-expansion-panel |
| 89 | + [expanded]="true" |
| 90 | + *ngIf="taskDetails.dependsOn"> |
| 91 | + <mat-expansion-panel-header> |
| 92 | + <mat-panel-title> |
| 93 | + <b>Depends On</b> |
| 94 | + </mat-panel-title> |
| 95 | + </mat-expansion-panel-header> |
| 96 | + <ng-template matExpansionPanelContent> |
| 97 | + <p [innerHTML]="taskDetails.dependsOn"></p> |
| 98 | + </ng-template> |
| 99 | + </mat-expansion-panel> |
| 100 | + <mat-expansion-panel |
| 101 | + [expanded]="true" |
| 102 | + *ngIf="taskDetails.difficultyOfImplementation"> |
| 103 | + <mat-expansion-panel-header> |
| 104 | + <mat-panel-title> |
| 105 | + <b>Difficulty of Implementation</b> |
| 106 | + </mat-panel-title> |
| 107 | + </mat-expansion-panel-header> |
| 108 | + <ng-template matExpansionPanelContent> |
| 109 | + <p> |
| 110 | + Knowledge: |
| 111 | + {{ taskDetails.difficultyOfImplementation.knowledge }} |
| 112 | + </p> |
| 113 | + <p>Time: {{ taskDetails.difficultyOfImplementation.time }}</p> |
| 114 | + <p> |
| 115 | + Resources: |
| 116 | + {{ taskDetails.difficultyOfImplementation.resources }} |
| 117 | + </p> |
| 118 | + </ng-template> |
| 119 | + </mat-expansion-panel> |
| 120 | + <mat-expansion-panel |
| 121 | + [expanded]="true" |
| 122 | + *ngIf="taskDetails.references"> |
| 123 | + <mat-expansion-panel-header> |
| 124 | + <mat-panel-title> |
| 125 | + <b>References</b> |
| 126 | + </mat-panel-title> |
| 127 | + </mat-expansion-panel-header> |
| 128 | + <ng-template matExpansionPanelContent> |
| 129 | + <b>ISO 27001-2017:</b> |
| 130 | + |
| 131 | + <ul> |
| 132 | + <li |
| 133 | + *ngFor=" |
| 134 | + let iso of taskDetails.references['iso27001-2017'] |
| 135 | + "> |
| 136 | + {{ iso }} |
| 137 | + </li> |
| 138 | + </ul> |
| 139 | + <b>ISO 27001-2022:</b> |
| 140 | + |
| 141 | + <ul> |
| 142 | + <li |
| 143 | + *ngFor=" |
| 144 | + let iso of taskDetails.references['iso27001-2022'] |
| 145 | + "> |
| 146 | + {{ iso }} |
| 147 | + </li> |
| 148 | + </ul> |
| 149 | + <!-- </p> --> |
| 150 | + <p> |
| 151 | + <b>Resources:</b> |
| 152 | + {{ taskDetails.references.samm2 }} |
| 153 | + </p> |
| 154 | + </ng-template> |
| 155 | + </mat-expansion-panel> |
| 156 | + </mat-accordion> |
| 157 | + </div> |
| 158 | + </ng-template> |
| 159 | + <ng-template #taskFalse> |
| 160 | + <div class="overlay-modal"> |
| 161 | + <button class="overlay-close" (click)="closeOverlay()"> |
| 162 | + <mat-icon class="white-icon">close</mat-icon> |
| 163 | + </button> |
| 164 | + <mat-expansion-panel [expanded]="false" hideToggle disabled> |
| 165 | + <mat-expansion-panel-header> |
| 166 | + <mat-panel-title> |
| 167 | + <b>Nothing to show</b> |
| 168 | + </mat-panel-title> |
| 169 | + </mat-expansion-panel-header> |
| 170 | + </mat-expansion-panel> |
| 171 | + </div> |
| 172 | + </ng-template> |
| 173 | + </div> |
5 | 174 | <div id="chart" class="heatmapClass">
|
6 | 175 | <mat-card class="example-card" *ngIf="showTaskCard">
|
7 | 176 | <mat-card-title-group>
|
|
18 | 187 | color="primary">
|
19 | 188 | </mat-checkbox>
|
20 | 189 | <button
|
| 190 | + class="normal-button" |
21 | 191 | (click)="
|
22 | 192 | navigate(currentDimension, cardHeader, 1, task['taskName'])
|
23 | 193 | ">
|
|
31 | 201 | color="primary">
|
32 | 202 | </mat-checkbox>
|
33 | 203 | <button
|
| 204 | + class="normal-button" |
34 | 205 | (click)="
|
35 | 206 | navigate(currentDimension, cardHeader, 1, task['taskName'])
|
36 | 207 | ">
|
|
41 | 212 | </mat-card-content>
|
42 | 213 | </mat-card>
|
43 | 214 | <button
|
| 215 | + class="normal-button" |
44 | 216 | mat-raised-button
|
45 | 217 | class="downloadButtonClass"
|
46 | 218 | (click)="SaveEditedYAMLfile()">
|
47 | 219 | Download edited YAML file
|
48 | 220 | </button>
|
49 | 221 | <button
|
| 222 | + class="normal-button" |
50 | 223 | mat-raised-button
|
51 | 224 | class="resetButtonClass"
|
52 | 225 | (click)="ResetIsImplemented()">
|
|
0 commit comments