eesyphp/templates/login.tpl

40 lines
1.4 KiB
Smarty
Raw Normal View History

2023-02-25 05:02:27 +01:00
{extends file='Tpl:empty.tpl'}
{if !$include_navbar}
{block name="navbar"}{/block}
{/if}
{block name="pagetitle"}{/block}
{block name="main"}
<main class="form-signin w-100 m-auto text-center">
<form action="login" method="POST">
{if !$include_navbar}
<img class="mb-4" src="{static_url path="images/logo.svg"}" alt="" width="100">
{/if}
<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"
placeholder="{t domain=$CORE_TEXT_DOMAIN}Username{/t}"/>
<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>
<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}
<a class='btn btn-secondary w-100 my-2' href='login?method={$method}&next={$next|escape:"url"}'>{$name}</a>
{/foreach}
</form>
</main>
2023-02-25 05:02:27 +01:00
{/block}
{*
# vim: autoindent expandtab tabstop=2 shiftwidth=2 softtabstop=2
*}