2018-11-27 12:01:36 +01:00
|
|
|
{% extends "layouts/app.twig" %}
|
|
|
|
{% import 'macros/base.twig' as m %}
|
|
|
|
|
2023-10-02 16:15:25 +02:00
|
|
|
{% block title %}{{ __('general.login') }}{% endblock %}
|
2018-11-27 12:01:36 +01:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="col-md-12">
|
2021-04-17 14:49:53 +02:00
|
|
|
<div class="row mb-3 mt-5">
|
2020-11-15 18:47:30 +01:00
|
|
|
<div class="col-sm-12 text-center" id="welcome-title">
|
2023-12-06 19:03:12 +01:00
|
|
|
<h2>{{ __('login.welcome', [config('name')|e ~ m.angel() ~ (config('app_name')|upper|e) ])|raw }}</h2>
|
2018-11-27 12:01:36 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-04-17 14:49:53 +02:00
|
|
|
<div class="row mb-3">
|
2018-11-27 12:01:36 +01:00
|
|
|
{% for name,date in {
|
2023-11-23 17:37:06 +01:00
|
|
|
(__('event.buildup.start')): config('buildup_start'),
|
|
|
|
(__('event.starts')): config('event_start'),
|
|
|
|
(__('event.ends')): config('event_end'),
|
|
|
|
(__('event.teardown.ends')): config('teardown_end')
|
2019-03-16 22:02:36 +01:00
|
|
|
} | filter(date => date) %}
|
2018-11-27 12:01:36 +01:00
|
|
|
{% if date > date() %}
|
2021-07-24 18:19:53 +02:00
|
|
|
<div class="col-sm-3 text-center d-none d-sm-block">
|
2018-11-27 12:01:36 +01:00
|
|
|
<h4>{{ name }}</h4>
|
2023-11-23 14:30:46 +01:00
|
|
|
<div class="h2 text-body" title="{{ date.format(__('general.datetime')) }}" data-countdown-ts="{{ date.getTimestamp() }}">%c</div>
|
|
|
|
<small>{{ date.format(__('general.date')) }}</small>
|
2018-11-27 12:01:36 +01:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
2021-04-17 14:49:53 +02:00
|
|
|
<div class="row mb-5">
|
2021-08-05 01:00:12 +02:00
|
|
|
<div class="col-md-6 offset-md-3 col-lg-4 offset-lg-4">
|
|
|
|
<div class="card {{ m.type_bg_class() }}">
|
2021-04-17 14:49:53 +02:00
|
|
|
<div class="card-body">
|
2020-03-01 18:21:16 +01:00
|
|
|
{% include 'layouts/parts/messages.twig' %}
|
2018-11-27 12:01:36 +01:00
|
|
|
|
2023-02-02 22:53:51 +01:00
|
|
|
{% if session_get('show_welcome', false) %}
|
|
|
|
{{ m.alert(config('welcome_msg') | md, null, true) }}
|
|
|
|
{% endif %}
|
|
|
|
|
2018-11-27 12:01:36 +01:00
|
|
|
<form action="" enctype="multipart/form-data" method="post">
|
|
|
|
{{ csrf() }}
|
2021-04-17 14:49:53 +02:00
|
|
|
<div class="mb-3">
|
|
|
|
<div class="input-group input-group-lg">
|
2021-08-05 01:00:12 +02:00
|
|
|
<span class="input-group-text {{ m.type_text_class() }}">
|
2021-04-17 14:49:53 +02:00
|
|
|
{{ m.angel }}
|
|
|
|
</span>
|
2019-11-15 21:42:08 +01:00
|
|
|
<input
|
2021-04-17 14:49:53 +02:00
|
|
|
class="form-control"
|
2020-06-01 15:13:21 +02:00
|
|
|
id="form_nick"
|
|
|
|
type="text"
|
|
|
|
name="login"
|
|
|
|
value=""
|
2023-10-03 18:59:46 +02:00
|
|
|
placeholder="{{ __('general.nick') }}"
|
2020-06-01 15:13:21 +02:00
|
|
|
autofocus>
|
2019-07-21 18:53:51 +02:00
|
|
|
</div>
|
2018-11-27 12:01:36 +01:00
|
|
|
</div>
|
|
|
|
|
2021-04-17 14:49:53 +02:00
|
|
|
<div class="mb-3">
|
|
|
|
<div class="input-group input-group-lg">
|
2021-08-05 01:00:12 +02:00
|
|
|
<span class="input-group-text {{ m.type_text_class() }}">
|
2021-04-17 14:49:53 +02:00
|
|
|
<i class="bi bi-key"></i>
|
|
|
|
</span>
|
2020-06-01 15:13:21 +02:00
|
|
|
<input
|
2022-12-10 23:05:49 +01:00
|
|
|
class="form-control" id="form_password" type="password"
|
2023-10-01 22:33:58 +02:00
|
|
|
name="password" value="" placeholder="{{ __('settings.password') }}" autocomplete="current-password"
|
2020-06-01 15:13:21 +02:00
|
|
|
>
|
2019-07-21 18:53:51 +02:00
|
|
|
</div>
|
2018-11-27 12:01:36 +01:00
|
|
|
</div>
|
|
|
|
|
2021-04-17 14:49:53 +02:00
|
|
|
<div class="mb-3 text-center">
|
2019-07-21 18:53:51 +02:00
|
|
|
<button class="btn btn-primary btn-lg btn-block" type="submit" name="submit">
|
2023-10-02 16:15:25 +02:00
|
|
|
{{ __('general.login') }}
|
2019-07-21 18:53:51 +02:00
|
|
|
</button>
|
2018-11-27 12:01:36 +01:00
|
|
|
</div>
|
|
|
|
|
2021-04-17 14:49:53 +02:00
|
|
|
{% if config('oauth') is not empty %}
|
2021-08-05 01:00:12 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="mb-3 btn-group">
|
|
|
|
{% for name,config in config('oauth') %}
|
2023-11-13 16:56:52 +01:00
|
|
|
<a href="{{ url('/oauth/' ~ name) }}" class="btn btn-primary btn-lg{% if config.hidden|default(false) %} d-none{% endif %}">
|
2021-08-05 01:00:12 +02:00
|
|
|
{{ __(
|
|
|
|
'oauth.login-using-provider',
|
|
|
|
[__(config.name|default(name|capitalize))]
|
|
|
|
) }}
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2021-04-17 14:49:53 +02:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-11-15 18:47:30 +01:00
|
|
|
|
2019-07-21 18:53:51 +02:00
|
|
|
<div class="text-center">
|
2019-10-08 16:17:06 +02:00
|
|
|
<a href="{{ url('/password/reset') }}" class="">
|
2023-11-23 17:37:06 +01:00
|
|
|
{{ __('login.password.reset') }}
|
2019-07-21 18:53:51 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
2018-11-27 12:01:36 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-04-17 14:49:53 +02:00
|
|
|
<div class="row mb-5">
|
2018-11-27 12:01:36 +01:00
|
|
|
<div class="col-sm-6 text-center">
|
2023-11-23 17:37:06 +01:00
|
|
|
<h2>{{ __('general.register') }}</h2>
|
2018-11-27 12:01:36 +01:00
|
|
|
{% if has_permission_to('register') and config('registration_enabled') %}
|
2021-12-10 01:51:04 +01:00
|
|
|
{% if config('enable_password') %}
|
2023-11-23 17:37:06 +01:00
|
|
|
<p>{{ __('login.registration') }}</p>
|
|
|
|
<a href="{{ url('/register') }}" class="btn btn-primary">{{ __('general.register') }} »</a>
|
2021-12-10 01:51:04 +01:00
|
|
|
{% else %}
|
2023-11-23 17:37:06 +01:00
|
|
|
<p>{{ __('login.registration.external') }}</p>
|
2021-12-10 01:51:04 +01:00
|
|
|
{% endif %}
|
2018-11-27 12:01:36 +01:00
|
|
|
{% else %}
|
2023-11-23 17:37:06 +01:00
|
|
|
{{ m.alert(__('login.registration.disabled'), 'danger') }}
|
2018-11-27 12:01:36 +01:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-sm-6 text-center">
|
2023-11-23 17:37:06 +01:00
|
|
|
<h2>{{ __('login.do') }}</h2>
|
2023-11-24 16:20:12 +01:00
|
|
|
<p>{{ __('login.jobs') }}</p>
|
2023-02-13 19:28:10 +01:00
|
|
|
<a href="{{ url('/angeltypes/about') }}" class="btn btn-primary">
|
|
|
|
{{ __('angeltypes.about') }} »
|
2021-07-24 18:19:53 +02:00
|
|
|
</a>
|
2018-11-27 12:01:36 +01:00
|
|
|
</div>
|
|
|
|
|
2019-10-06 17:56:53 +02:00
|
|
|
<div class="col-md-12 text-center">
|
2023-11-23 17:37:06 +01:00
|
|
|
{{ m.icon('info-circle') }} {{ __('login.cookies') }}
|
2019-10-06 17:56:53 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-27 12:01:36 +01:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|