blob: d0490f94ddc82b479fa317fd6bdb3b5ce859bb79 (
plain)
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
|
{% code
type LoginPage struct {}
%}
{% func (p *LoginPage) Title() %}Login{% endfunc %}
{% func (p *LoginPage) Content() %}
<form action="/login" method="post">
<div class="field">
<label class="label">Username</label>
<div class="control">
<input class="input" name="username" type="text">
</div>
</div>
<div class="field">
<label class="label">Password</label>
<div class="control">
<input class="input" name="password" type="password">
</div>
</div>
<div class="field">
<a href="#" class="is-pulled-left">forgot password?</a>
</div>
<div class="field">
<input class="button is-pulled-right" value="login" type="submit">
</div>
</form>
{% endfunc %}
{% func (p *LoginPage) Script() %}
{% endfunc %}
|