2020-02-21 13:20:16 +00:00
|
|
|
{% extends 'base/skeleton.html' %}
|
2018-11-11 12:41:48 +00:00
|
|
|
|
|
|
|
{% load static %}
|
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
{% block body %}
|
2020-02-19 20:03:39 +00:00
|
|
|
<div class="pf-c-background-image">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="pf-c-background-image__filter" width="0" height="0">
|
|
|
|
<filter id="image_overlay">
|
|
|
|
<feColorMatrix type="matrix" values="1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0"></feColorMatrix>
|
|
|
|
<feComponentTransfer color-interpolation-filters="sRGB" result="duotone">
|
|
|
|
<feFuncR type="table" tableValues="0.086274509803922 0.43921568627451"></feFuncR>
|
|
|
|
<feFuncG type="table" tableValues="0.086274509803922 0.43921568627451"></feFuncG>
|
|
|
|
<feFuncB type="table" tableValues="0.086274509803922 0.43921568627451"></feFuncB>
|
|
|
|
<feFuncA type="table" tableValues="0 1"></feFuncA>
|
|
|
|
</feComponentTransfer>
|
|
|
|
</filter>
|
|
|
|
</svg>
|
|
|
|
</div>
|
2020-02-21 14:00:45 +00:00
|
|
|
{% include 'partials/messages.html' %}
|
2020-02-19 20:03:39 +00:00
|
|
|
<div class="pf-c-login">
|
|
|
|
<div class="pf-c-login__container">
|
|
|
|
<header class="pf-c-login__header">
|
|
|
|
<img class="pf-c-brand" src="{% static 'passbook/logo.svg' %}" style="height: 60px;"
|
|
|
|
alt="passbook icon" />
|
2020-02-28 09:50:16 +00:00
|
|
|
<img class="pf-c-brand" src="{% static 'passbook/brand.svg' %}" style="height: 60px;"
|
2020-02-19 20:03:39 +00:00
|
|
|
alt="passbook branding" />
|
|
|
|
</header>
|
|
|
|
<main class="pf-c-login__main">
|
|
|
|
<header class="pf-c-login__main-header">
|
2020-02-21 14:00:45 +00:00
|
|
|
<h1 class="pf-c-title pf-m-3xl">
|
|
|
|
{% block card_title %}
|
|
|
|
{% trans title %}
|
|
|
|
{% endblock %}
|
|
|
|
</h1>
|
2020-02-19 20:03:39 +00:00
|
|
|
</header>
|
|
|
|
<div class="pf-c-login__main-body">
|
|
|
|
{% block card %}
|
|
|
|
<form method="POST" class="pf-c-form">
|
2020-02-21 14:00:45 +00:00
|
|
|
{% include 'partials/form.html' %}
|
2020-02-19 20:03:39 +00:00
|
|
|
<div class="pf-c-form__group pf-m-action">
|
|
|
|
<button class="pf-c-button pf-m-primary pf-m-block" type="submit">Log in</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
<footer class="pf-c-login__main-footer">
|
|
|
|
{% if config.login.subtext %}
|
|
|
|
<p>{{ config.login.subtext }}</p>
|
|
|
|
{% endif %}
|
|
|
|
<ul class="pf-c-login__main-footer-links">
|
2020-02-21 10:20:55 +00:00
|
|
|
{% for source in sources %}
|
2020-02-19 20:03:39 +00:00
|
|
|
<li class="pf-c-login__main-footer-links-item">
|
2020-02-21 10:20:55 +00:00
|
|
|
<a href="{{ source.url }}" class="pf-c-login__main-footer-links-item-link">
|
|
|
|
{% if source.icon_path %}
|
|
|
|
<img src="{% static source.icon_path %}" alt="{{ source.name }}">
|
2020-02-23 14:09:58 +00:00
|
|
|
{% elif source.icon_url %}
|
2020-02-21 10:20:55 +00:00
|
|
|
<img src="icon_url" alt="{{ source.name }}">
|
2020-02-23 14:09:58 +00:00
|
|
|
{% else %}
|
|
|
|
<i class="pf-icon pf-icon-arrow" title="{{ source.name }}"></i>
|
2020-02-19 20:03:39 +00:00
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2020-05-10 16:45:16 +00:00
|
|
|
{% if enroll_url or recovery_url %}
|
2020-02-19 20:03:39 +00:00
|
|
|
<div class="pf-c-login__main-footer-band">
|
2020-05-10 16:45:16 +00:00
|
|
|
{% if enroll_url %}
|
2020-02-19 20:03:39 +00:00
|
|
|
<p class="pf-c-login__main-footer-band-item">
|
|
|
|
{% trans 'Need an account?' %}
|
2020-05-10 16:14:10 +00:00
|
|
|
<a href="{{ enroll_url }}">{% trans 'Sign up.' %}</a>
|
2020-02-19 20:03:39 +00:00
|
|
|
</p>
|
2020-05-10 16:45:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if recovery_url %}
|
|
|
|
<p class="pf-c-login__main-footer-band-item">
|
|
|
|
<a href="{{ recovery_url }}">
|
|
|
|
{% trans 'Forgot username or password?' %}
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2020-02-19 20:03:39 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</footer>
|
|
|
|
</main>
|
|
|
|
<footer class="pf-c-login__footer">
|
|
|
|
<p></p>
|
|
|
|
<ul class="pf-c-list pf-m-inline">
|
|
|
|
<li>
|
2020-02-21 14:00:45 +00:00
|
|
|
<a href="https://beryju.github.io/passbook/">{% trans 'Documentation' %}</a>
|
2020-02-19 20:03:39 +00:00
|
|
|
</li>
|
|
|
|
<!-- todo: load config.passbook.footer.links -->
|
|
|
|
</ul>
|
|
|
|
</footer>
|
|
|
|
</div>
|
2019-02-25 13:10:10 +00:00
|
|
|
</div>
|
2018-12-10 12:51:50 +00:00
|
|
|
{% endblock %}
|