aboutsummaryrefslogtreecommitdiffstats
path: root/walrss/internal/http/views/signin.qtpl.html
blob: b0c7d4aa2b8c78f32ec3b43cfd6feed800377d9a (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
32
33
34
35
36
37
38
{% import "github.com/codemicro/walrss/walrss/internal/urls" %}

{% code type SignInPage struct {
    BasePage
    Problem string
    OIDCEnabled bool
} %}

{% func (p *SignInPage) Title() %}Sign in{% endfunc %}
{% func (p *SignInPage) Body() %}
{%= navbar() %}

<div class="container">
    <h1>Sign in</h1>

    {% if p.Problem != "" %}
        {%= ProblemBox(p.Problem) %}
    {% endif %}

    <form action="" method="post">
        <div class="mb-3">
            <label for="emailInput" class="form-label">Email address</label>
            <input type="email" class="form-control" id="emailInput" name="email">
        </div>
        <div class="mb-3">
            <label for="passwordInput" class="form-label">Password</label>
            <input type="password" class="form-control" id="passwordInput" name="password">
        </div>
        <button type="submit" class="btn btn-primary">Submit</button>
    </form>
    <br>
    <a href="{%s= urls.AuthRegister %}">No account? Click here to register</a>
    <br>
    {% if p.OIDCEnabled %}
        <a href="{%s= urls.AuthOIDCOutbound %}">Click here to login with OIDC</a>
    {% endif %}
</div>
{% endfunc %}