Authentication/layout/pages/layout.auth_form_page.latte

35 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-02-06 15:44:28 +01:00
{varType bool $register_enabled}
{varType bool $forgot_password_enabled}
{varType string $auth_url}
{varType FuzeWorks\Forms\Form $form}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{$serverName} > {$form->getLabel()}</title>
<!-- Bootstrap core CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<!-- Custom styles for this template -->
<link href="signin.css" rel="stylesheet">
</head>
<body class="text-center">
<h3>{$form->getLabel()}</h3>
{$form|noescape}
<br/>
<div class="btn-group" role="group">
{if $form->getName() == 'AuthLoginForm'}
{if $register_enabled}
<br/><a class="btn btn-outline-primary" href="{$auth_url}/register" role="button">Sign up</a>
{/if}
{elseif $form->getName() == 'AuthRegisterForm' OR $form->getName() == "AuthForgotPasswordForm"}
<br/><a class="btn btn-outline-primary" href="{$auth_url}/login" role="button">Sign in</a>
{/if}
</div>
<p class="mt-5 mb-3 text-muted">&copy; 2013 - {date('Y')}</p>
</body>
</html>