core: make generic error template work with shell executor

This commit is contained in:
Jens Langhammer 2020-06-23 21:49:43 +02:00
parent 52f138d402
commit db6cb5ad51
1 changed files with 52 additions and 14 deletions

View File

@ -1,20 +1,58 @@
{% extends 'login/base.html' %} {% extends 'base/skeleton.html' %}
{% load static %} {% load static %}
{% load i18n %} {% load i18n %}
{% load passbook_utils %} {% load passbook_utils %}
{% block card_title %} {% block body %}
{% trans 'Bad Request' %} <div class="pf-c-background-image">
{% endblock %} <svg xmlns="http://www.w3.org/2000/svg" class="pf-c-background-image__filter" width="0" height="0">
<filter id="image_overlay">
{% block card %} <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>
<form> <feComponentTransfer color-interpolation-filters="sRGB" result="duotone">
{% if message %} <feFuncR type="table" tableValues="0.086274509803922 0.43921568627451"></feFuncR>
<h3>{% trans message %}</h3> <feFuncG type="table" tableValues="0.086274509803922 0.43921568627451"></feFuncG>
{% endif %} <feFuncB type="table" tableValues="0.086274509803922 0.43921568627451"></feFuncB>
{% if 'back' in request.GET %} <feFuncA type="table" tableValues="0 1"></feFuncA>
<a href="{% back %}" class="btn btn-primary btn-block btn-lg">{% trans 'Back' %}</a> </feComponentTransfer>
{% endif %} </filter>
</form> </svg>
</div>
<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" />
<img class="pf-c-brand" src="{% static 'passbook/brand.svg' %}" style="height: 60px;"
alt="passbook branding" />
</header>
<main class="pf-c-login__main" id="flow-body">
<header class="pf-c-login__main-header">
<h1 class="pf-c-title pf-m-3xl">
{% trans 'Bad Request' %}
</h1>
</header>
<div class="pf-c-login__main-body">
{% block card %}
<form method="POST" class="pf-c-form">
{% if message %}
<h3>{% trans message %}</h3>
{% endif %}
{% if 'back' in request.GET %}
<a href="{% back %}" class="btn btn-primary btn-block btn-lg">{% trans 'Back' %}</a>
{% endif %}
</form>
{% endblock %}
</div>
</main>
<footer class="pf-c-login__footer">
<p></p>
<ul class="pf-c-list pf-m-inline">
<li>
<a href="https://passbook.beryju.org/">{% trans 'Documentation' %}</a>
</li>
<!-- todo: load config.passbook.footer.links -->
</ul>
</footer>
</div>
</div>
{% endblock %} {% endblock %}