ref: baf63a21556905a6c27516a8d5641d31120d1fe3 fanboi2/fanboi2/templates/admin/login.mako -rw-r--r-- 1.3 KiB View raw
                                                                                
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
<%inherit file='../partials/_layout.mako' />
<%def name='title()'>Login - Admin Panel</%def>
<header class="subheader">
    <div class="container">
        <h2 class="subheader-title">Admin Panel</h2>
        <div class="subheader-body"><p>Login is required beyond this point.</p></div>
    </div>
</header>
<form class="form" action="${request.route_path('admin_root')}" method="post">
    <input type="hidden" name="csrf_token" value="${get_csrf_token()}">
    <div class="container">
        <div class="form-item${' error' if form.username.errors else ''}">
            <label class="form-item-label" for="${form.username.id}">Username</label>
            ${form.username(class_="input block font-large")}
            % if form.username.errors:
                <span class="form-item-error">${form.username.errors[0]}</span>
            % endif
        </div>
        <div class="form-item${' error' if form.password.errors else ''}">
            <label class="form-item-label" for="${form.password.id}">Password</label>
            ${form.password(class_="input block font-large")}
            % if form.password.errors:
                <span class="form-item-error">${form.password.errors[0]}</span>
            % endif
        </div>
        <div class="form-item">
            <button class="button brand" type="submit">Login</button>
        </div>
    </div>
</form>