summaryrefslogtreecommitdiff
path: root/pages/login.templ
blob: fed611e94d579aa12f464ccaeb20662e1eb50eb7 (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="/login" 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>
    }
}