summaryrefslogtreecommitdiff
path: root/pages/login.templ
blob: a97d979ca97a4973e205d3d37092f6169606d757 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package pages

import (
    "gosten/form"
)

templ login(u user) {
    @base() {
    <main class="d-flex align-items-center min-vh-100">
        <form action={templ.SafeURL(getCurrPath(ctx))} method="post" class="container mx-auto" style="max-width: 440px;">
            <img src="/static/euro-money.svg" width="96" height="96" class="mb-4"/>
            @form.Form(u, u.Errors)
            @u.Csrf()
            <button class="btn btn-primary w-100" type="submit">Log In!</button>
        </form>
    </main>
    }
}