-
Notifications
You must be signed in to change notification settings - Fork 0
/
user-detail.template.html
58 lines (55 loc) · 2.21 KB
/
user-detail.template.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
<div *ngIf="user">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{user.name}}'s details</h3>
</div>
<div class="panel-body">
<div *ngIf=!editing class="col-xs-8">
<div>
<label>id: </label>{{user.id}}
</div>
<div>
<label>name: </label>{{user.name}}
</div>
<div>
<label>email: </label>{{user.email}}
</div>
<div>
<label>city: </label>{{user.city}}
</div>
<div>
<label>state: </label>{{user.state}}
</div>
<button (click)="edit()" type="button" class="btn btn-warning">
<span class=" glyphicon glyphicon-edit"></span> Edit </button>
</div>
<div *ngIf=editing class="col-xs-8">
<div>
<label>id: </label>
<input [(ngModel)]="user.id" placeholder="name" id="input-id" type="text" class="form-inline" placeholder="User id" aria-describedby="sizing-addon2">
</div>
<div>
<label>name: </label>
<input [(ngModel)]="user.name" placeholder="name" id="input-name" type="text" class="form-inline" placeholder="User name" aria-describedby="sizing-addon2">
</div>
<div>
<label>email: </label>
<input [(ngModel)]="user.email" placeholder="name" id="input-email" type="text" class="form-inline" placeholder="User email" aria-describedby="sizing-addon2">
</div>
<div>
<label>city: </label>
<input [(ngModel)]="user.city" placeholder="name" id="input-city" type="text" class="form-inline" placeholder="User city" aria-describedby="sizing-addon2">
</div>
<div>
<label>state: </label>
<input [(ngModel)]="user.state" placeholder="name" id="input-state" type="text" class="form-inline" placeholder="User state" aria-describedby="sizing-addon2">
</div>
<button (click)="save(user)" type="button" class="btn btn-primary">
<span class=" glyphicon glyphicon-ok"></span> Save </button>
</div>
<div class="col-xs-4">
<img *ngIf="user.picture" src={{user.picture}} alt="Smiley face" height="130" width="130">
</div>
</div>
</div>
</div>