summaryrefslogtreecommitdiff
path: root/resources/views/pages/login.twig
blob: 34dbd63fdfae7d2f65ddd5d351d9e3669945c0fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{% extends "layouts/app.twig" %}
{% import 'macros/base.twig' as m %}

{% block title %}{{ __('Login') }}{% endblock %}

{% block content %}
    <div class="col-md-12">
        <div class="row">
            <div class="col-sm-12 text-center">
                <h2>{{ __('Welcome to the %s!', [config('name') ~ m.angel() ~ (config('app_name')|upper) ])|raw }}</h2>
            </div>
        </div>

        <div class="row">
            {% for name,date in {
                (__('Buildup starts')): config('buildup_start'),
                (__('Event starts')): config('event_start'),
                (__('Event ends')): config('event_end'),
                (__('Teardown ends')): config('teardown_end')
            } if date %}
                {% if date > date() %}
                    <div class="col-sm-3 text-center hidden-xs">
                        <h4>{{ name }}</h4>
                        <span class="moment-countdown text-big" data-timestamp="{{ date.getTimestamp }}">%c</span>
                        <small>{{ date.format(__('Y-m-d')) }}</small>
                    </div>
                {% endif %}
            {% endfor %}
        </div>

        <div class="row">
            <div class="col-sm-6 col-sm-offset-3 col-md-4 col-md-offset-4">
                <div class="panel panel-primary first">
                    <div class="panel-body">
                        {{ msg() }}
                        {% for message in errors|default([]) %}
                            {{ m.alert(__(message), 'danger') }}
                        {% endfor %}

                        <form action="" enctype="multipart/form-data" method="post">
                            {{ csrf() }}
                            <div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon input-lg">{{ m.angel }}</span>
                                    <input class="form-control input-lg" id="form_nick"
                                           type="text" name="login" value="" placeholder="{{ __('Nick') }}">
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon input-lg">{{ m.glyphicon('lock') }}</span>
                                    <input class="form-control input-lg" id="form_password"
                                           type="password" name="password" value="" placeholder="{{ __('Password') }}">
                                </div>
                            </div>

                            <div class="form-group">
                                <button class="btn btn-primary btn-lg btn-block" type="submit" name="submit">
                                    {{ __('Login') }}
                                </button>
                            </div>

                            <div class="text-center">
                                <a href="{{ url('/password/reset') }}" class="">
                                    {{ __('I forgot my password') }}
                                </a>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-sm-6 text-center">
                <h2>{{ __('Register') }}</h2>
                {% if has_permission_to('register') and config('registration_enabled') %}
                    <p>{{ __('Please sign up, if you want to help us!') }}</p>
                    <div class="form-group">
                        <a href="{{ url('register') }}" class="btn btn-default">{{ __('Register') }} &raquo;</a>
                    </div>
                {% 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>
                <div class="form-group">
                    <a href="{{ url('angeltypes', {'action': 'about'}) }}" class="btn btn-default">
                        {{ __('Teams/Job description') }} &raquo;
                    </a>
                </div>
            </div>

            <div class="col-md-12 text-center">
                {{ m.glyphicon('info-sign') }} {{ __('Please note: You have to activate cookies!') }}
            </div>
        </div>
    </div>
{% endblock %}