blob: eee57117106360c2f0d9bbf104e0b820bf051e92 (
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() %}Hello{% endfunc %}
{% func (p *LoginPage) Navbar() %}{%= Navbar(Login) %}{% endfunc %}
{% func (p *LoginPage) Content() %}
<div class="row">
<div class="col-md-6 offset-md-3">
<form>
<div class="form-group m-3">
<label for="username" class="form-label">Username</label>
<input type="text" class="form-control" id="username" aria-describedby="emailHelp">
</div>
<div class="form-group m-3">
<label for="password" class="form-label">Password</label>
<input type="password" class="form-control" id="password">
</div>
<div class="form-group m-3">
<button type="submit" class="btn btn-primary">Login</button>
</div>
</form>
</div>
</div>
{% endfunc %}
{% func (p *LoginPage) Script() %}
{% endfunc %}
|