2023-02-25 05:02:27 +01:00
|
|
|
{extends file='Tpl:empty.tpl'}
|
2023-03-07 18:12:58 +01:00
|
|
|
{if !$include_navbar}
|
|
|
|
{block name="navbar"}{/block}
|
|
|
|
{/if}
|
2023-03-05 00:32:16 +01:00
|
|
|
{block name="pagetitle"}{/block}
|
2023-03-07 18:12:58 +01:00
|
|
|
{block name="main"}
|
2023-03-05 00:32:16 +01:00
|
|
|
<main class="form-signin w-100 m-auto text-center">
|
|
|
|
<form action="login" method="POST">
|
2023-03-07 18:12:58 +01:00
|
|
|
{if !$include_navbar}
|
2023-03-05 00:32:16 +01:00
|
|
|
<img class="mb-4" src="{static_url path="images/logo.svg"}" alt="" width="100">
|
2023-03-07 18:12:58 +01:00
|
|
|
{/if}
|
2023-03-05 00:32:16 +01:00
|
|
|
<h1 class="h3 mb-3 fw-normal">{t domain=$CORE_TEXT_DOMAIN}Sign in{/t}</h1>
|
|
|
|
|
|
|
|
{include file='Tpl:errors.tpl'}
|
|
|
|
{include file='Tpl:messages.tpl'}
|
|
|
|
|
|
|
|
<div class="form-floating">
|
|
|
|
<input type="text" class="form-control" id="input_username" name="username"
|
2023-04-22 18:56:13 +02:00
|
|
|
placeholder="{t domain=$CORE_TEXT_DOMAIN}Username{/t}" value="{if $remember_username && $username}{$username|escape:"quotes"}{/if}"/>
|
2023-03-05 00:32:16 +01:00
|
|
|
<label for="input_username">{t domain=$CORE_TEXT_DOMAIN}Username{/t}</label>
|
|
|
|
</div>
|
|
|
|
<div class="form-floating">
|
|
|
|
<input type="password" class="form-control" id="input_password" name="password"
|
|
|
|
placeholder="{t domain=$CORE_TEXT_DOMAIN}Password{/t}"/>
|
|
|
|
<label for="input_password">{t domain=$CORE_TEXT_DOMAIN}Password{/t}</label>
|
|
|
|
</div>
|
|
|
|
|
2023-04-22 18:56:13 +02:00
|
|
|
{if $remember_username}
|
|
|
|
<div class="checkbox mb-3">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" name="remember-username" value="remember" {if $username}checked{/if}>
|
|
|
|
{t domain=$CORE_TEXT_DOMAIN}Remember username{/t}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
2023-03-05 00:32:16 +01:00
|
|
|
<button class="w-100 btn btn-lg btn-primary" type="submit">
|
|
|
|
{t domain=$CORE_TEXT_DOMAIN}Submit{/t}
|
|
|
|
</button>
|
|
|
|
{foreach $display_other_methods as $method => $name}
|
2023-03-11 13:30:55 +01:00
|
|
|
<a class='btn btn-secondary w-100 mt-2' href='login?method={$method}&next={$next|escape:"url"}'>{$name}</a>
|
2023-03-05 00:32:16 +01:00
|
|
|
{/foreach}
|
|
|
|
</form>
|
|
|
|
</main>
|
2023-02-25 05:02:27 +01:00
|
|
|
{/block}
|
|
|
|
{*
|
|
|
|
# vim: autoindent expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
|
|
|
*}
|