<commit_before>{% extends 'layout/admin/base.html' %}
{% from 'macros/forms.html' import form_buttons, form_field, form_fieldset %}
{% from 'macros/shop_admin.html' import render_order_link %}
{% from 'macros/shop_admin.html' import render_main_tabs with context %}
{% set current_page = 'shop_admin.orders' %}
{% set current_page_party = order.party %}
{% set title = 'Bestellung stornieren' %}

{% block before_body %}
{{ render_main_tabs(current_page, order.party) }}
{%- endblock %}

{% block body %}

  <nav class="breadcrumbs">
    <ol>
      <li>Bestellungen</li>
      <li><a href="{{ url_for('.order_index_for_party', party_id=order.party.id) }}">{{ order.party.title }}</a></li>
      <li>{{ render_order_link(order) }}</li>
    </ol>
  </nav>
  <h1>{{ title }}</h1>

  <form action="{{ url_for('.order_cancel', id=order.id) }}" method="post">
    {% call form_fieldset() %}
      {{ form_field(cancel_form.reason, maxlength=200, required='required') }}
    {% endcall %}

    {{ form_buttons('Stornieren', icon='disabled', cancel_url=url_for('.order_view', id=order.id)) }}
  </form>

{%- endblock %}
<commit_msg>Add note to cancelation form regarding the visibility of the reason<commit_after>{% extends 'layout/admin/base.html' %}
{% from 'macros/forms.html' import form_buttons, form_field, form_fieldset %}
{% from 'macros/shop_admin.html' import render_order_link %}
{% from 'macros/shop_admin.html' import render_main_tabs with context %}
{% set current_page = 'shop_admin.orders' %}
{% set current_page_party = order.party %}
{% set title = 'Bestellung stornieren' %}

{% block before_body %}
{{ render_main_tabs(current_page, order.party) }}
{%- endblock %}

{% block body %}

  <nav class="breadcrumbs">
    <ol>
      <li>Bestellungen</li>
      <li><a href="{{ url_for('.order_index_for_party', party_id=order.party.id) }}">{{ order.party.title }}</a></li>
      <li>{{ render_order_link(order) }}</li>
    </ol>
  </nav>
  <h1>{{ title }}</h1>

  <form action="{{ url_for('.order_cancel', id=order.id) }}" method="post">
    {% call form_fieldset() %}
      {{ form_field(cancel_form.reason, maxlength=200, required='required') }}
    {% endcall %}
    <small><p>Die Begründung wird an die bestellende Person weitergegeben.<br>Es handelt sich <em>nicht</em> um einen internen Vermerk.</p></small>

    {{ form_buttons('Stornieren', icon='disabled', cancel_url=url_for('.order_view', id=order.id)) }}
  </form>

{%- endblock %}

{'fraction_non_alphanumeric': 0.18979591836734694, 'fraction_numerical': 0.004081632653061225, 'mean_word_length': 4.660508083140877, 'pattern_counts': {'":': 0, '<': 42, '<?xml version=': 0, '>': 42, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5529103', 'n_tokens_mistral': 898, 'n_tokens_neox': 837, 'n_words': 167}