|
8 | 8 | </div> |
9 | 9 | <ul ngbNav joyrideStep="manageInfo" title="Checklists expert wizard" [stepContent]="manageInfo" |
10 | 10 | #nav="ngbNav" [activeId]="1" class="nav-tabs nav-tabs-custom mt-3"> |
11 | | - <li [ngbNavItem]="1"> |
| 11 | + |
| 12 | + <li [ngbNavItem]="1"> |
| 13 | + <a ngbNavLink joyrideStep="manageReq" title="Checklists requirements" [stepContent]="manageReq">Requirements</a> |
| 14 | + <ng-template ngbNavContent> |
| 15 | + <div class="row mb-3 mt-4"> |
| 16 | + <div class="col-lg-12"> |
| 17 | + <div class="row mb-3"> |
| 18 | + <div class="col-7"> |
| 19 | + <p class="card-title">Manage Requirements</p> |
| 20 | + </div> |
| 21 | + <div class="col-5"> |
| 22 | + <a type="button" routerLink="/checklists/add-requirement" class="btn btn-primary float-right mb-2">Add |
| 23 | + requirement</a> |
| 24 | + </div> |
| 25 | + </div> |
| 26 | + <div class="table-responsive"> |
| 27 | + <table class="table table-centered table-nowrap table-hover"> |
| 28 | + <thead class="thead-light"> |
| 29 | + <tr> |
| 30 | + <th scope="col"> |
| 31 | + <div class="text-center">Security controls / Security requirements</div> |
| 32 | + </th> |
| 33 | + <th scope="col"> |
| 34 | + <div class="text-center">Action</div> |
| 35 | + </th> |
| 36 | + </tr> |
| 37 | + </thead> |
| 38 | + <tbody> |
| 39 | + <tr *ngFor="let item of checklistData.items"> |
| 40 | + <td style="width: 60%"> |
| 41 | + <div class="mt-2"> |
| 42 | + <h6 class="text-dark">{{item.checklist_items_checklist_id}} |
| 43 | + {{item.checklist_items_content |slice:0:130}}...</h6> |
| 44 | + </div> |
| 45 | + </td> |
| 46 | + <td style="width: 40%"> |
| 47 | + <ul class="list-inline mb-0 text-center"> |
| 48 | + <li class="list-inline-item"> |
| 49 | + <a type="button" [routerLink]="['/checklists/update-requirement', item.id]" |
| 50 | + class="btn btn-success btn-sm">Update</a> |
| 51 | + </li> |
| 52 | + <li class="list-inline-item"> |
| 53 | + <button (click)="centerModal(controlDelete)" type="button" |
| 54 | + class="btn btn-danger btn-sm ml-2">Delete</button> |
| 55 | + </li> |
| 56 | + </ul> |
| 57 | + </td> |
| 58 | + |
| 59 | + <!-- Deletion modal--> |
| 60 | + <ng-template #controlDelete let-modal> |
| 61 | + <div class="modal-header"> |
| 62 | + <h5 class="modal-title mt-0">Delete Requirement</h5> |
| 63 | + <button type="button" class="close" aria-label="Close" (click)="modal.dismiss('Close click')"> |
| 64 | + <span aria-hidden="true">×</span> |
| 65 | + </button> |
| 66 | + </div> |
| 67 | + <div class="modal-body"> |
| 68 | + <form> |
| 69 | + <div class="form-group"> |
| 70 | + <label for="delete">Type <b class="text-danger">DELETE</b> to delete the Requirement |
| 71 | + item</label> |
| 72 | + <input autocomplete="off" [(ngModel)]="delete" type="text" class="form-control" id="delete" |
| 73 | + name="delete" placeholder="Type DELETE" onfocus="this.placeholder = ''" |
| 74 | + onblur="this.placeholder = 'Type DELETE'"> |
| 75 | + </div> |
| 76 | + <button (click)="deleteRequirement(item.id); modal.dismiss('Cross click')" |
| 77 | + class="btn btn-danger">Delete</button> |
| 78 | + </form> |
| 79 | + </div> |
| 80 | + </ng-template> |
| 81 | + <!-- END Project Delete Modal --> |
| 82 | + |
| 83 | + </tr> |
| 84 | + </tbody> |
| 85 | + </table> |
| 86 | + </div> |
| 87 | + </div> |
| 88 | + <!-- end col--> |
| 89 | + </div> |
| 90 | + </ng-template> |
| 91 | + </li> |
| 92 | + |
| 93 | + <li [ngbNavItem]="2"> |
12 | 94 | <a ngbNavLink joyrideStep="manageConfig" title="Checklists config" [stepContent]="manageConfig">Config questionnaire</a> |
13 | 95 | <ng-template ngbNavContent> |
14 | 96 | <div class="card mt-3 shadow-none"> |
|
50 | 132 | </p> |
51 | 133 | </div> |
52 | 134 | <div class="col-2"> |
53 | | - <i class="bx bx-plus font-size-15 py-3 float-right"></i> |
| 135 | + <i class="fas fa-pencil-alt text-success mr-1 float-right"> Add</i> |
54 | 136 | </div> |
55 | 137 | </div> |
56 | 138 | </button> |
|
77 | 159 | </p> |
78 | 160 | </div> |
79 | 161 | <div class="col-2"> |
80 | | - <i class="bx bx-minus font-size-15 py-3 float-right"></i> |
| 162 | + <i class="fas fa-trash-alt text-danger mr-1 float-right">Remove</i> |
81 | 163 | </div> |
82 | 164 | </div> |
83 | 165 | </button> |
|
91 | 173 | </ng-template> |
92 | 174 | </li> |
93 | 175 |
|
94 | | - <li [ngbNavItem]="2"> |
95 | | - <a ngbNavLink joyrideStep="manageReq" title="Checklists requirements" [stepContent]="manageReq">Requirements</a> |
96 | | - <ng-template ngbNavContent> |
97 | | - <div class="row mb-3 mt-4"> |
98 | | - <div class="col-lg-12"> |
99 | | - <div class="row mb-3"> |
100 | | - <div class="col-7"> |
101 | | - <p class="card-title">Manage Requirements</p> |
102 | | - </div> |
103 | | - <div class="col-5"> |
104 | | - <a type="button" routerLink="/checklists/add-requirement" class="btn btn-primary float-right mb-2">Add |
105 | | - requirement</a> |
106 | | - </div> |
107 | | - </div> |
108 | | - <div class="table-responsive"> |
109 | | - <table class="table table-centered table-nowrap table-hover"> |
110 | | - <thead class="thead-light"> |
111 | | - <tr> |
112 | | - <th scope="col"> |
113 | | - <div class="text-center">Security controls / Security requirements</div> |
114 | | - </th> |
115 | | - <th scope="col"> |
116 | | - <div class="text-center">Action</div> |
117 | | - </th> |
118 | | - </tr> |
119 | | - </thead> |
120 | | - <tbody> |
121 | | - <tr *ngFor="let item of checklistData.items"> |
122 | | - <td style="width: 60%"> |
123 | | - <div class="mt-2"> |
124 | | - <h6 class="text-dark">{{item.checklist_items_checklist_id}} |
125 | | - {{item.checklist_items_content |slice:0:130}}...</h6> |
126 | | - </div> |
127 | | - </td> |
128 | | - <td style="width: 40%"> |
129 | | - <ul class="list-inline mb-0 text-center"> |
130 | | - <li class="list-inline-item"> |
131 | | - <a type="button" [routerLink]="['/checklists/update-requirement', item.id]" |
132 | | - class="btn btn-success btn-sm">Update</a> |
133 | | - </li> |
134 | | - <li class="list-inline-item"> |
135 | | - <button (click)="centerModal(controlDelete)" type="button" |
136 | | - class="btn btn-danger btn-sm ml-2">Delete</button> |
137 | | - </li> |
138 | | - </ul> |
139 | | - </td> |
140 | | - |
141 | | - <!-- Deletion modal--> |
142 | | - <ng-template #controlDelete let-modal> |
143 | | - <div class="modal-header"> |
144 | | - <h5 class="modal-title mt-0">Delete Requirement</h5> |
145 | | - <button type="button" class="close" aria-label="Close" (click)="modal.dismiss('Close click')"> |
146 | | - <span aria-hidden="true">×</span> |
147 | | - </button> |
148 | | - </div> |
149 | | - <div class="modal-body"> |
150 | | - <form> |
151 | | - <div class="form-group"> |
152 | | - <label for="delete">Type <b class="text-danger">DELETE</b> to delete the Requirement |
153 | | - item</label> |
154 | | - <input autocomplete="off" [(ngModel)]="delete" type="text" class="form-control" id="delete" |
155 | | - name="delete" placeholder="Type DELETE" onfocus="this.placeholder = ''" |
156 | | - onblur="this.placeholder = 'Type DELETE'"> |
157 | | - </div> |
158 | | - <button (click)="deleteRequirement(item.id); modal.dismiss('Cross click')" |
159 | | - class="btn btn-danger">Delete</button> |
160 | | - </form> |
161 | | - </div> |
162 | | - </ng-template> |
163 | | - <!-- END Project Delete Modal --> |
164 | 176 |
|
165 | | - </tr> |
166 | | - </tbody> |
167 | | - </table> |
168 | | - </div> |
169 | | - </div> |
170 | | - <!-- end col--> |
171 | | - </div> |
172 | | - </ng-template> |
173 | | - </li> |
174 | 177 |
|
175 | 178 | <li [ngbNavItem]="3"> |
176 | 179 | <a ngbNavLink joyrideStep="manageQuestions" title="Checklists questions" [stepContent]="manageQuestions">Questions</a> |
|
0 commit comments