diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-07-21 13:42:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-21 13:42:19 +0200 |
commit | 43fa21f6553bb9e46f00d0768eab56e74c842bb4 (patch) | |
tree | 00df255fcd7c3777855bee27967117440c4add8c /resources/views/pages | |
parent | 4f60daa29568a43ab1da761d89124308dc7b37e7 (diff) | |
parent | 1e16f4c47ec15ffea41e1fa612d205b8db2a16d1 (diff) |
Merge branch 'master' into docker
Diffstat (limited to 'resources/views/pages')
-rw-r--r-- | resources/views/pages/credits.twig | 1 | ||||
-rw-r--r-- | resources/views/pages/login.twig | 104 |
2 files changed, 105 insertions, 0 deletions
diff --git a/resources/views/pages/credits.twig b/resources/views/pages/credits.twig index eb98c7e7..3bb04895 100644 --- a/resources/views/pages/credits.twig +++ b/resources/views/pages/credits.twig @@ -15,6 +15,7 @@ <div class="col-md-4"> <h2>Source code</h2> + <p>Version: <i>{{ version }}</i></p> <p> The original engelsystem was written by <a href="https://github.com/cookieBerlin/engelsystem">cookie</a>. diff --git a/resources/views/pages/login.twig b/resources/views/pages/login.twig new file mode 100644 index 00000000..75b98aa1 --- /dev/null +++ b/resources/views/pages/login.twig @@ -0,0 +1,104 @@ +{% 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-heading">{{ m.angel }} {{ __('Login') }}</div> + + <div class="panel-body"> + {% for message in errors|default([]) %} + {{ m.alert(__(message), 'danger') }} + {% endfor %} + + <form action="" enctype="multipart/form-data" method="post"> + {{ csrf() }} + <div class="form-group"> + <input class="form-control" id="form_nick" + type="text" name="login" value="" placeholder="{{ __('Nick') }}"> + </div> + + <div class="form-group"> + <input class="form-control" id="form_password" + type="password" name="password" value="" placeholder="{{ __('Password') }}"> + </div> + + <div class="form-group"> + <div class="btn-group"> + <button class="btn btn-primary" type="submit" name="submit"> + {{ __('Login') }} + </button> + + {% if show_password_recovery|default(false) %} + <a href="{{ url('user-password-recovery') }}" class="btn btn-default "> + {{ __('I forgot my password') }} + </a> + {% endif %} + </div> + </div> + + </form> + </div> + + <div class="panel-footer"> + {{ m.glyphicon('info-sign') }} {{ __('Please note: You have to activate cookies!') }} + </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') }} »</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') }} » + </a> + </div> + </div> + </div> + + </div> +{% endblock %} |