forked from totaljs/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregistration.html
More file actions
42 lines (39 loc) · 833 Bytes
/
registration.html
File metadata and controls
42 lines (39 loc) · 833 Bytes
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
<div><strong>Registration</strong></div>
<br />
@{viewToggle(repository.isSuccess, 'success')}
<form action="/" method="POST">
<div>Registration type:</div>
<div>
<select name="type">
@{options(repository.type, model.type, 'name', 'id')}
</select>
</div>
<br />
<div>Name:</div>
<div>@{text('name')}</div>
<br />
<div>E-mail:</div>
<div>@{text('email')}</div>
<br />
<!-- OR your custom definition -->
<div>Phone:</div>
<div><input type="text" name="phone" value="@{model.phone}" /></div>
<br />
<div>Password:</div>
<div>@{password('password')}</div>
<br />
<div>Country:</div>
<div>
<select name="country">
@{options(repository.country, model.country)}
</select>
</div>
<br />
<div>
@{checkbox('terms', 'I agree')}
</div>
<br />
<hr />
<br />
<div><button>SUBMIT</button></div>
</form>