refactor error-reporting for admin/customer; remove now unused Froxlor\UI\Template class

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-03-27 12:44:44 +02:00
parent 2a91dafe20
commit 943301e908
6 changed files with 131 additions and 274 deletions

View File

@@ -0,0 +1,25 @@
{% extends "Froxlor/userarea.html.twig" %}
{% block heading %}
<div>
<h5 class="mb-1">
<i class="fa-solid fa-bug me-1"></i>
{{ lng('error.send_report_title') }}
</h5>
</div>
{% endblock %}
{% block content %}
<form action="{{ linker({'section':'index','page':'send_error_report','errorid':errorid}) }}" class="col-12 d-flex flex-column" method="post" enctype="application/x-www-form-urlencoded">
<div class="alert alert-primary" role="alert">{{ lng('error.send_report_desc')|raw }}</div>
<code class="border rounded bg-white p-2 mb-3">{{ mail_html|nl2br }}</code>
<div>
<input type="hidden" name="send" value="send"/>
<div class="col-12 text-end">
<button type="submit" class="btn btn-primary">{{ lng('error.send_report') }}</button>
</div>
</div>
</form>
{% endblock %}