This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathreport.component.html
261 lines (171 loc) · 9.44 KB
/
report.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<mat-toolbar class="example-toolbar" >
<mat-toolbar-row>
<font size="6"> </font>
<font size="5" style="margin-bottom:-10px;">SAMM </font>
<button mat-icon-button style="margin-left:920px;" tooltipClass="my-custom-class" ><mat-icon ngbPopover=" Admin " placement="bottom" class="ic1" [openDelay]="300" [closeDelay]="500" triggers="mouseenter:mouseleave" popoverTitle="Profile" >account_circle</mat-icon></button>
<button mat-icon-button style="margin-left:10px;"><mat-icon >power_settings_new</mat-icon></button>
</mat-toolbar-row>
</mat-toolbar>
<mat-sidenav-container class="example-container" >
<mat-sidenav #sidenav class="example-sidenav" mode="side" opened="true" (mouseenter)="mouseenter()" (mouseleave)="mouseleave()">
<mat-nav-list>
<br>
<mat-list-item class="home" (click)="openhome()">
<svg role="img" class="icn" style="margin-right:15px;" ><use xlink:href="/assets/icons/icons.svg#icon-home"></use></svg>
<span class="full-width" *ngIf="isExpanded || isShowing">Home</span>
</mat-list-item>
<mat-list-item (click)="showSubmenu = !showSubmenu" class="dropdown">
<svg role="" class="icn" style="margin-right:15px;"><use xlink:href="/assets/icons/icons.svg#icon-checklist"></use></svg>
<span class="full-width" *ngIf="isExpanded || isShowing">Governance</span>
<mat-icon class="menu-button" [ngClass]="{'rotated' : showSubmenu}" *ngIf="isExpanded || isShowing">expand_more</mat-icon>
</mat-list-item>
<div class="submenu" [ngClass]="{'expanded' : showSubmenu}" *ngIf="isShowing || isExpanded">
<a mat-list-item href="http://localhost:4208/govsm">Strategy and Metrics</a>
<a mat-list-item href="http://localhost:4208/goveg">Education and Guidance</a>
<a mat-list-item href="http://localhost:4208/govpc">Policy and Compliance</a>
</div>
</mat-nav-list>
<mat-nav-list>
</mat-nav-list>
<mat-nav-list>
<mat-list-item (click)="showSubmenu1 = !showSubmenu1" class="dropdown">
<svg role="" class="icn" style="margin-right:15px;" ><use xlink:href="/assets/icons/icons.svg#icon-technology "></use></svg>
<span class="full-width" *ngIf="isExpanded || isShowing">Construction</span>
<mat-icon class="menu-button" [ngClass]="{'rotated' : showSubmenu1}" *ngIf="isExpanded || isShowing">expand_more</mat-icon>
</mat-list-item>
<div class="submenu1" [ngClass]="{'expanded' : showSubmenu1}" *ngIf="isShowing || isExpanded">
<a mat-list-item href="http://localhost:4208/conta">Threat Assesment</a>
<a mat-list-item href="http://localhost:4208/consr">Security Requirements</a>
<a mat-list-item href="http://localhost:4208/consa">Secure Architecture</a>
</div>
</mat-nav-list>
<mat-nav-list>
</mat-nav-list>
<mat-nav-list>
<mat-list-item (click)="showSubmenu2 = !showSubmenu2" class="dropdown">
<svg role="" class="icn" style="margin-right:15px;"><use xlink:href="/assets/icons/icons.svg#icon-secure"></use></svg>
<span class="full-width" *ngIf="isExpanded || isShowing">Verification</span>
<mat-icon class="menu-button" [ngClass]="{'rotated' : showSubmenu2}" *ngIf="isExpanded || isShowing">expand_more</mat-icon>
</mat-list-item>
<div class="submenu2" [ngClass]="{'expanded' : showSubmenu2}" *ngIf="isShowing || isExpanded">
<a mat-list-item href="http://localhost:4208/verdr">Design Review</a>
<a mat-list-item href="http://localhost:4208/verir">Implementation Review</a>
<a mat-list-item href="http://localhost:4208/verst">Security Testing</a>
</div>
</mat-nav-list>
<mat-nav-list>
</mat-nav-list>
<mat-nav-list>
<mat-list-item (click)="showSubmenu3 = !showSubmenu3" class="dropdown">
<svg role="" class="icn" style="margin-right:15px;"><use xlink:href="/assets/icons/icons.svg#icon-people"></use></svg>
<span class="full-width" *ngIf="isExpanded || isShowing">Operation</span>
<mat-icon class="menu-button" [ngClass]="{'rotated' : showSubmenu3}" *ngIf="isExpanded || isShowing">expand_more</mat-icon>
</mat-list-item>
<div class="submenu3 " [ngClass]="{'expanded' : showSubmenu3}" *ngIf="isShowing || isExpanded">
<a mat-list-item href="http://localhost:4208/opeim">Issue Management</a>
<a mat-list-item href="http://localhost:4208/opeeh">Environment Hardening</a>
<a mat-list-item href="http://localhost:4208/opeoe">Operational Enablement</a>
</div>
</mat-nav-list>
<mat-nav-list>
</mat-nav-list>
<mat-nav-list>
<mat-list-item (click)="showSubmenu4 = !showSubmenu4" class="dropdown">
<svg role="img" class="icn" style="margin-right:15px;" ><use xlink:href="/assets/icons/icons.svg#icon-cogs"></use></svg>
<span class="full-width" *ngIf="isExpanded || isShowing" >Report</span>
<mat-icon class="menu-button" [ngClass]="{'rotated' : showSubmenu4}" *ngIf="isExpanded || isShowing">expand_more</mat-icon>
</mat-list-item>
<div class="submenu3 " [ngClass]="{'expanded' : showSubmenu4}" *ngIf="isShowing || isExpanded">
<a mat-list-item href="http://localhost:4208/report">Scoring Report</a>
</div>
</mat-nav-list>
<mat-nav-list>
</mat-nav-list>
<mat-nav-list (click)=" onLogout()">
<mat-list-item (click)="showSubmenu5 = !showSubmenu5" class="dropdown">
<svg role="" class="icn" style="margin-right:15px;"><use xlink:href="/assets/icons/icons.svg#icon-plane"></use></svg>
<span class="full-width" *ngIf="isExpanded || isShowing">Logout</span>
</mat-list-item>
</mat-nav-list>
<mat-nav-list>
</mat-nav-list>
</mat-sidenav>
<br>
<div class="container">
<div class="row">
<form class="form-inline">
<div class="form-group hidden">
<div class="input-group">
<input name="datepicker"
class="form-control"
ngbDatepicker
#datepicker="ngbDatepicker"
[autoClose]="'outside'"
(dateSelect)="onDateSelection($event)"
[displayMonths]="2"
[dayTemplate]="t"
outsideDays="hidden"
[startDate]="fromDate">
<ng-template #t let-date let-focused="focused">
<span class="custom-day"
[class.focused]="focused"
[class.range]="isRange(date)"
[class.faded]="isHovered(date) || isInside(date)"
(mouseenter)="hoveredDate = date"
(mouseleave)="hoveredDate = null">
{{ date.day }}
</span>
</ng-template>
</div>
</div>
<div class="form-group">
<div class="input-group">
<input #dpFromDate
class="form-control" placeholder="From date"
(click)="datepicker.toggle()"
name="dpFromDate"
[value]="formatter.format(fromDate)"
(input)="fromDate = validateInput(fromDate, dpFromDate.value)">
<div class="input-group-append">
<button mat-icon-button class="btn btn-outline-secondary calendar" ><mat-icon >date_range</mat-icon></button>
</div>
</div>
</div>
<div class="form-group ml-2">
<div class="input-group">
<input #dpToDate
class="form-control" placeholder="To date"
(click)="datepicker.toggle()"
name="dpToDate"
[value]="formatter.format(toDate)"
(input)="toDate = validateInput(toDate, dpToDate.value)">
<div class="input-group-append">
<button mat-icon-button class="btn btn-outline-secondary calendar" ><mat-icon >date_range</mat-icon></button>
</div>
</div>
</div>
</form>
<select id="uname" class="form-control btn-info" name="uname" style="width:10.7vw; margin-left:2vh;" >
<option value="">-Select User-</option>
<option>Admin</option><option>Auditor</option><option>User1</option><option>User2</option> </select>
<select name="grp" class="form-control btn-info" id="category" style="width:200px; margin-left:2vh;" >
<option value="">-Select Group-</option>
<option value="Governance">Governance</option>
<option value="Construction">Construction</option>
<option value="Verification">Verification</option>
<option value="Operation">Operation</option>
</select>
<select name="grp" class="form-control btn-info" id="category" style="width:17.1vw; margin-left:2vh;" >
<option value="">-Select Security Practice-</option>
</select>
<select name="score" class="form-control btn-info" style="width:11vw; margin-top:vh; margin-left:2vh;" >
<option value=-2>-Select Score-</option>
<option value=1>Yes</option>
<option value=0.5>Implementing</option>
<option value=0>No</option>
<option value=-1>N/A</option>
</select>
<button id="see" mat-raised-button color="warn" style="width:2vw; height:6.6vh;margin-left:2vh;margin-top:vh;">Filter</button>
</div>
</div>
</mat-sidenav-container>