-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate.html
49 lines (36 loc) · 1.69 KB
/
create.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
<div ng-controller="CreateUserCtrl as cuc">
<h1>Create User</h1>
<form id="CreateUserForm" name="CreateUserForm" class="form-horizontal" role="form"
ng-submit="cuc.createUser()">
<legend class="sm-col-12">Basic Information</legend>
<div class="form-group">
<label id="lbl_firstName" for="firstName" class="col-sm-4 control-label">First Name</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="firstName" id="firstName" placeholder=""
ng-model="cuc.user.firstName">
</div>
</div>
<div class="form-group">
<label id="lbl_lastName" for="lastName" class="col-sm-4 control-label">Last Name</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="lastName" id="lastName" placeholder=""
ng-model="cuc.user.lastName">
</div>
</div>
<div class="form-group">
<label id="lbl_age" for="age" class="col-sm-4 control-label"
is-required="CreateUserForm.age">Age</label>
<div class="col-sm-8">
<input type="number" class="form-control" name="age" id="age"
ng-model="cuc.user.age">
</div>
</div>
<pre>{{ cuc.user | json }}</pre>
<div class="form-group">
<div class="col-sm-offset-4 col-sm-8 text-right">
<a ng-href="/#/" id="btn_cancel" class="btn btn-warning">Cancel</a>
<button type="submit" class="btn btn-success" id="btn_create">Create User</button>
</div>
</div>
</form>
</div>