engelsystem/resources/views/pages/login.twig

128 lines
6.0 KiB
Twig
Raw Normal View History

{% extends "layouts/app.twig" %}
{% import 'macros/base.twig' as m %}
{% block title %}{{ __('login.login') }}{% endblock %}
{% block content %}
<div class="col-md-12">
<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">
<h2>{{ __('Welcome to the %s!', [config('name') ~ m.angel() ~ (config('app_name')|upper) ])|raw }}</h2>
</div>
</div>
<div class="row mb-3">
{% for name,date in {
(__('Buildup starts')): config('buildup_start'),
(__('Event starts')): config('event_start'),
(__('Event ends')): config('event_end'),
(__('Teardown ends')): config('teardown_end')
} | filter(date => date) %}
{% if date > date() %}
2021-07-24 18:19:53 +02:00
<div class="col-sm-3 text-center d-none d-sm-block">
<h4>{{ name }}</h4>
2022-04-21 11:16:16 +02:00
<div class="moment-countdown h2 text-body" data-timestamp="{{ date.getTimestamp }}">%c</div>
<small>{{ date.format(__('Y-m-d')) }}</small>
</div>
{% endif %}
{% endfor %}
</div>
<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() }}">
<div class="card-body">
{% include 'layouts/parts/messages.twig' %}
<form action="" enctype="multipart/form-data" method="post">
{{ csrf() }}
<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() }}">
{{ m.angel }}
</span>
2019-11-15 21:42:08 +01:00
<input
class="form-control"
2020-06-01 15:13:21 +02:00
id="form_nick"
type="text"
name="login"
value=""
placeholder="{{ __('Nick') }}"
autofocus>
</div>
</div>
<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() }}">
<i class="bi bi-key"></i>
</span>
2020-06-01 15:13:21 +02:00
<input
class="form-control" id="form_password"
2020-06-01 15:13:21 +02:00
type="password" name="password" value="" placeholder="{{ __('Password') }}"
>
</div>
</div>
<div class="mb-3 text-center">
<button class="btn btn-primary btn-lg btn-block" type="submit" name="submit">
{{ __('login.login') }}
</button>
</div>
{% 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') %}
<a href="{{ url('oauth/' ~ name) }}" class="btn btn-primary btn-lg{% if config.hidden|default(false) %} d-none{% endif %}">
{{ __(
'oauth.login-using-provider',
[__(config.name|default(name|capitalize))]
) }}
</a>
{% endfor %}
</div>
</div>
{% endif %}
2020-11-15 18:47:30 +01:00
<div class="text-center">
2019-10-08 16:17:06 +02:00
<a href="{{ url('/password/reset') }}" class="">
{{ __('I forgot my password') }}
</a>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row mb-5">
<div class="col-sm-6 text-center">
<h2>{{ __('Register') }}</h2>
{% if has_permission_to('register') and config('registration_enabled') %}
{% if config('enable_password') %}
<p>{{ __('Please sign up, if you want to help us!') }}</p>
<a href="{{ url('register') }}" class="btn btn-primary">{{ __('Register') }} &raquo;</a>
{% else %}
<p>{{ __('Registration is only available via external login.') }}</p>
{% endif %}
{% else %}
{{ m.alert(__('Registration is disabled.'), 'danger') }}
{% endif %}
</div>
<div class="col-sm-6 text-center">
<h2>{{ __('What can I do?') }}</h2>
<p>{{ __('Please read about the jobs you can do to help us.') }}</p>
2021-07-24 18:19:53 +02:00
<a href="{{ url('angeltypes', {'action': 'about'}) }}" class="btn btn-primary">
{{ __('Teams/Job description') }} &raquo;
</a>
</div>
<div class="col-md-12 text-center">
2021-07-24 21:08:04 +02:00
{{ m.icon('info-circle') }} {{ __('Please note: You have to activate cookies!') }}
</div>
</div>
</div>
{% endblock %}