diff options
Diffstat (limited to 'src/app/identity-page/identity-page.component.html')
-rw-r--r-- | src/app/identity-page/identity-page.component.html | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/app/identity-page/identity-page.component.html b/src/app/identity-page/identity-page.component.html new file mode 100644 index 0000000..edcac69 --- /dev/null +++ b/src/app/identity-page/identity-page.component.html | |||
@@ -0,0 +1,45 @@ | |||
1 | |||
2 | <div class="o-grid u-pb-x3"> | ||
3 | <div class="o-grid__col u-1/2"> | ||
4 | <create-identity-component></create-identity-component> | ||
5 | </div> | ||
6 | <div class="o-grid__col u-1/2"> | ||
7 | <div class="c-card c-card--no-padding u-p-x3"> | ||
8 | <div class="o-type-20 u-pb-x1" >Search</div> | ||
9 | <div class="u-ph-x2"> | ||
10 | <input #myInput class="c-input" placeholder="Search" [(ngModel)]="name" (input)="filterItem(myInput.value)"/> | ||
11 | </div> | ||
12 | </div> | ||
13 | </div> | ||
14 | </div> | ||
15 | |||
16 | <div class="c-card" *ngIf="this.rename"> | ||
17 | <div class="o-type-20 u-pb-x1" >Search</div> | ||
18 | <div class="u-color-grey">ID: <span>{{changeIdentity.id}}</span></div> | ||
19 | <div> | ||
20 | <span class="u-m-x2">Name: <input class="c-input" placeholder="Change Name" [(ngModel)]="changeIdentity.name"/></span> | ||
21 | <a class="c-button u-m-x2" (click)="onRename(changeIdentity)">Rename now</a> | ||
22 | <a class="c-button c-button--outline u-m-x2" (click)="onRenameCancel()">Cancel</a> | ||
23 | </div> | ||
24 | </div> | ||
25 | |||
26 | <div class="o-grid c-card u-mt-x3"> | ||
27 | <table class="o-grid__col u-2/2 c-table"> | ||
28 | <tr> | ||
29 | <th>Type</th> | ||
30 | <th>Name</th> | ||
31 | <th>ID</th> | ||
32 | <th>Rename</th> | ||
33 | <th>Delete</th> | ||
34 | </tr> | ||
35 | <tr *ngFor="let identity of filteredItems"> | ||
36 | <td class="u-text-center"><span class="fa fa-user o-type-20" *ngIf="identity.type == 'ego'"></span></td> | ||
37 | <td> | ||
38 | <span class="">{{identity.name}}</span> | ||
39 | </td> | ||
40 | <td>{{identity.id}}</td> | ||
41 | <td><a class="c-button" (click)="onClickRename(identity)">Rename</a></td> | ||
42 | <td><a class="c-button" (click)="onClickDelete(identity.id)">Delete</a></td> | ||
43 | </tr> | ||
44 | </table> | ||
45 | </div> | ||