|
3 | 3 | <div class="col-md-3"></div> |
4 | 4 | <div class="col-md-6"> |
5 | 5 | <div class="overlay-details" [hidden]="!showOverlay"> |
6 | | - <button class="overlay-close" (click)="closeOverlay()">Close</button> |
7 | | - <div *ngIf="taskDetails; then trueBlock; else falseBlock"></div> |
8 | | - <ng-template #trueBlock> |
9 | | - <div> |
| 6 | + <button class="overlay-close" (click)="closeOverlay()"> |
| 7 | + <mat-icon class="white-icon">close</mat-icon> |
| 8 | + </button> |
| 9 | + <div *ngIf="taskDetails; then taskTrue; else taskFalse"></div> |
| 10 | + <ng-template #taskTrue> |
| 11 | + <div class="overlay-modal"> |
10 | 12 | <mat-accordion multi="true"> |
| 13 | + <div |
| 14 | + *ngIf=" |
| 15 | + taskDetails.navigationExtras; |
| 16 | + then navigationTrue; |
| 17 | + else navigationFalse |
| 18 | + "></div> |
| 19 | + <ng-template #navigationTrue> |
| 20 | + <h2>{{ taskDetails.navigationExtras.dimension }} ></h2> |
| 21 | + <h3>{{ taskDetails.navigationExtras.subDimension }} ></h3> |
| 22 | + <h4> |
| 23 | + {{ taskDetails.navigationExtras.taskName }} |
| 24 | + </h4> |
| 25 | + </ng-template> |
| 26 | + <ng-template #navigationFalse> |
| 27 | + <h2>Nothing to show</h2> |
| 28 | + </ng-template> |
11 | 29 | <mat-expansion-panel [expanded]="false"> |
12 | 30 | <mat-expansion-panel-header> |
13 | 31 | <mat-panel-title> |
|
18 | 36 | <p [innerHTML]="taskDetails.risk"></p> |
19 | 37 | </ng-template> |
20 | 38 | </mat-expansion-panel> |
| 39 | + <mat-expansion-panel [expanded]="false"> |
| 40 | + <mat-expansion-panel-header> |
| 41 | + <mat-panel-title> |
| 42 | + <b>Measure</b> |
| 43 | + </mat-panel-title> |
| 44 | + </mat-expansion-panel-header> |
| 45 | + <ng-template matExpansionPanelContent> |
| 46 | + <p [innerHTML]="taskDetails.measure"></p> |
| 47 | + </ng-template> |
| 48 | + </mat-expansion-panel> |
| 49 | + <mat-expansion-panel [expanded]="false"> |
| 50 | + <mat-expansion-panel-header> |
| 51 | + <mat-panel-title> |
| 52 | + <b>Implementation Guide</b> |
| 53 | + </mat-panel-title> |
| 54 | + </mat-expansion-panel-header> |
| 55 | + <ng-template matExpansionPanelContent> |
| 56 | + <ul> |
| 57 | + <li *ngFor="let implement of taskDetails.implementation"> |
| 58 | + <a href="{{ implement.url }}">{{ implement.name }}</a> |
| 59 | + </li> |
| 60 | + </ul> |
| 61 | + </ng-template> |
| 62 | + </mat-expansion-panel> |
| 63 | + <mat-expansion-panel [expanded]="false"> |
| 64 | + <mat-expansion-panel-header> |
| 65 | + <mat-panel-title> |
| 66 | + <b>Depends On</b> |
| 67 | + </mat-panel-title> |
| 68 | + </mat-expansion-panel-header> |
| 69 | + <ng-template matExpansionPanelContent> |
| 70 | + <p [innerHTML]="taskDetails.dependsOn"></p> |
| 71 | + </ng-template> |
| 72 | + </mat-expansion-panel> |
| 73 | + <mat-expansion-panel [expanded]="false"> |
| 74 | + <mat-expansion-panel-header> |
| 75 | + <mat-panel-title> |
| 76 | + <b>Difficulty of Implementation</b> |
| 77 | + </mat-panel-title> |
| 78 | + </mat-expansion-panel-header> |
| 79 | + <ng-template matExpansionPanelContent> |
| 80 | + <p> |
| 81 | + Knowledge: |
| 82 | + {{ taskDetails.difficultyOfImplementation.knowledge }} |
| 83 | + </p> |
| 84 | + <p>Time: {{ taskDetails.difficultyOfImplementation.time }}</p> |
| 85 | + <p> |
| 86 | + Resources: |
| 87 | + {{ taskDetails.difficultyOfImplementation.resources }} |
| 88 | + </p> |
| 89 | + </ng-template> |
| 90 | + </mat-expansion-panel> |
| 91 | + <mat-expansion-panel [expanded]="false"> |
| 92 | + <mat-expansion-panel-header> |
| 93 | + <mat-panel-title> |
| 94 | + <b>References</b> |
| 95 | + </mat-panel-title> |
| 96 | + </mat-expansion-panel-header> |
| 97 | + <ng-template matExpansionPanelContent> |
| 98 | + <b>ISO 27001-2017:</b> |
| 99 | + |
| 100 | + <ul> |
| 101 | + <li |
| 102 | + *ngFor=" |
| 103 | + let iso of taskDetails.references['iso27001-2017'] |
| 104 | + "> |
| 105 | + {{ iso }} |
| 106 | + </li> |
| 107 | + </ul> |
| 108 | + <b>ISO 27001-2022:</b> |
| 109 | + |
| 110 | + <ul> |
| 111 | + <li |
| 112 | + *ngFor=" |
| 113 | + let iso of taskDetails.references['iso27001-2022'] |
| 114 | + "> |
| 115 | + {{ iso }} |
| 116 | + </li> |
| 117 | + </ul> |
| 118 | + <!-- </p> --> |
| 119 | + <p> |
| 120 | + <b>Resources:</b> |
| 121 | + {{ taskDetails.references.samm2 }} |
| 122 | + </p> |
| 123 | + </ng-template> |
| 124 | + </mat-expansion-panel> |
21 | 125 | </mat-accordion> |
22 | 126 | </div> |
23 | 127 | </ng-template> |
24 | | - <ng-template #falseBlock> |
25 | | - <div> |
| 128 | + <ng-template #taskFalse> |
| 129 | + <div class="overlay-modal"> |
26 | 130 | <mat-expansion-panel [expanded]="false" hideToggle disabled> |
27 | 131 | <mat-expansion-panel-header> |
28 | 132 | <mat-panel-title> |
29 | | - <b>None Selected</b> |
| 133 | + <b>Nothing to show :P</b> |
30 | 134 | </mat-panel-title> |
31 | 135 | </mat-expansion-panel-header> |
32 | 136 | </mat-expansion-panel> |
|
49 | 153 | color="primary"> |
50 | 154 | </mat-checkbox> |
51 | 155 | <button |
| 156 | + class="normal-button" |
52 | 157 | (click)=" |
53 | 158 | navigate(currentDimension, cardHeader, 1, task['taskName']) |
54 | 159 | "> |
|
62 | 167 | color="primary"> |
63 | 168 | </mat-checkbox> |
64 | 169 | <button |
| 170 | + class="normal-button" |
65 | 171 | (click)=" |
66 | 172 | navigate(currentDimension, cardHeader, 1, task['taskName']) |
67 | 173 | "> |
|
72 | 178 | </mat-card-content> |
73 | 179 | </mat-card> |
74 | 180 | <button |
| 181 | + class="normal-button" |
75 | 182 | mat-raised-button |
76 | 183 | class="downloadButtonClass" |
77 | 184 | (click)="SaveEditedYAMLfile()"> |
78 | 185 | Download edited YAML file |
79 | 186 | </button> |
80 | 187 | <button |
| 188 | + class="normal-button" |
81 | 189 | mat-raised-button |
82 | 190 | class="resetButtonClass" |
83 | 191 | (click)="ResetIsImplemented()"> |
|
0 commit comments