webcron/templates/security/login.html.twig

54 lines
3.0 KiB
Twig
Raw Normal View History

2017-04-14 15:58:09 +02:00
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
2017-04-15 14:13:00 +02:00
<title>Webcron management :: Log in</title>
2022-05-02 13:25:50 +02:00
{{ vite_entry_link_tags('security.login') }}
2021-04-08 16:34:25 +02:00
2022-05-02 13:25:50 +02:00
{{ vite_entry_script_tags('security.login') }}
2017-04-14 15:58:09 +02:00
</head>
<body>
2021-04-08 16:34:25 +02:00
<div class="container-fluid py-3">
<div class="row justify-content-md-center">
<div class="col-md-4 col-xs-12">
{{ include('flashes.html.twig') }}
2022-04-27 14:24:48 +02:00
{% if error %}
<div class="alert alert-danger alert-dismissible fade show" role="alert">
2022-07-01 12:00:36 +02:00
{{ error.messageKey | trans(error.messageData, 'security') }}
2022-04-27 14:24:48 +02:00
<button type="button" class="btn-close" data-dismiss="alert" aria-label="Close">
</button>
</div>
{% endif %}
2021-04-08 16:34:25 +02:00
<h1>Webcron management</h1>
<form class="form-horizontal" method="post" action="{{ path('login_check') }}">
2017-04-14 15:58:09 +02:00
2021-04-12 12:23:50 +02:00
<div class="mb-3">
2022-05-24 18:09:14 +02:00
<label for="username">{{ 'security.login.username.label' | trans }}</label>
<input type="text" name="_username" class="form-control" id="username" placeholder="{{ 'security.login.username.placeholder' | trans }}">
2021-04-08 16:34:25 +02:00
</div>
2021-04-12 12:23:50 +02:00
<div class="mb-3">
2022-05-24 18:09:14 +02:00
<label for="password">{{ 'security.login.password.label' | trans }}</label>
<input type="password" name="_password" class="form-control" id="password" placeholder="{{ 'security.login.password.placeholder' | trans }}">
2021-04-08 16:34:25 +02:00
</div>
<div class="form-check mb-3">
2022-04-27 14:24:48 +02:00
<input type="checkbox" name="_remember_me" id="autologin" class="form-check-input">
2022-05-24 18:09:14 +02:00
<label class="from-check-label" for="autologin">{{ 'security.login.remember.label' | trans }}</label>
2021-04-08 16:34:25 +02:00
</div>
2022-04-27 14:24:48 +02:00
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
2022-07-01 12:00:36 +02:00
<button type="submit" class="mb-3 btn btn-outline-primary">{{ 'security.login.submit-btn.label' | trans }}</button>
2021-04-08 16:34:25 +02:00
</form>
2022-07-01 12:00:36 +02:00
{% if app.request.server.get('DEMO_MODE') %}
{# Demo mode credentials #}
<div class="mb-3 text-muted small">
<p class="mb-0">{{ 'demomode.credentials.header' | trans }}</p>
<p class="mb-0">{{ 'demomode.credentials.username' | trans }}: {{ app.request.server.get('DEMO_USER') }}</p>
<p class="mb-0">{{ 'demomode.credentials.password' | trans }}: {{ app.request.server.get('DEMO_PASS') }}</p>
</div>
{% endif %}
2017-05-12 09:35:06 +02:00
</div>
2021-04-08 16:34:25 +02:00
</div>
2017-04-14 15:58:09 +02:00
</div>
</body>
</html>