~homeworkprod/byceps

ref: 99eda8d843f1399155676c463363e508c6bf3892 byceps/byceps/blueprints/admin/shop/order/templates/admin/shop/order/cancel_form.html -rw-r--r-- 1.1 KiB
99eda8d8 — Jochen Kupperschmidt Add missing German translations 10 months ago
                                                                                
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
{% extends 'layout/admin/shop/order.html' %}
{% from 'macros/admin/shop/order.html' import render_order_link %}
{% from 'macros/forms.html' import form_buttons, form_field, form_field_checkbox, form_fieldset %}
{% from 'macros/misc.html' import render_notification %}
{% set title = 'Bestellung stornieren' %}

{% block body %}

  <nav class="breadcrumbs">
    <ol>
      <li>{{ render_order_link(order) }}</li>
    </ol>
  </nav>
  <h1>{{ title }}</h1>

  <form action="{{ url_for('.cancel', order_id=order.id) }}" method="post">
    {% call form_fieldset() %}
      {{ form_field(form.reason, maxlength=1000, autofocus='autofocus') }}
      {{ render_notification('Die Begründung wird an die bestellende Person weitergegeben.<br>Es handelt sich <em>nicht</em> um einen internen Vermerk.'|safe, category='warning', icon='warning') }}
      {{ form_field_checkbox(form.send_email, form.send_email.label.text, checked='checked') }}
    {% endcall %}

    {{ form_buttons(_('Cancel'), icon='disabled', cancel_url=url_for('.view', order_id=order.id)) }}
  </form>

{%- endblock %}