<commit_before>{% extends 'layouts/shop_order_admin.html' %}
{% from 'macros/datetime.html' import render_date, render_datetime %}
{% from 'macros/icons.html' import render_icon %}
{% from 'macros/shop_article_admin.html' import render_article_link %}
{% from 'macros/shop_order_admin.html' import render_order_payment_method, render_order_payment_state %}
{% from 'macros/user_admin.html' import render_user_avatar_20_and_link %}
{% set current_page_party = party %}
{% set title = 'Bestellung ' ~ order.order_number %}

{% block head %}
  <style>
    .order-status-bar {
      justify-content: space-between;
    }

    .order-status-flag {
      margin-top: 0.2rem;
      opacity: 0.2;
      text-align: center;
    }
    .order-status-flag.set {
      opacity: 1;
    }

    .order-status-flag svg {
      font-size: 200%;
    }
  </style>
{%- endblock %}

{% block body %}

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

  {%- if g.current_user.has_permission(ShopOrderPermission.update) %}
  <div style="float: right; margin-left: 40px;">
    <div class="dropdown left">
      <button class="dropdown-toggle button">Aktionen {{ render_icon('caret-down') }}</button>
      <ol>
        <li><a href="{{ url_for('.export', order_id=order.id) }}" download="{{ order.order_number }}.xml">{{ render_icon('download') }} für Lexware exportieren (XML)</a></li>
        <li>
        {%- if order.is_invoiced %}
          <a data-action="order-unflag-invoiced" href="{{ url_for('.unset_invoiced_flag', order_id=order.id) }}">{{ render_icon('invoice') }} Rechnung wurde <strong>nicht</strong> versendet</a>
        {%- else %}
          <a data-action="order-flag-invoiced" href="{{ url_for('.set_invoiced_flag', order_id=order.id) }}">{{ render_icon('invoice') }} Rechnung wurde versendet</a>
        {%- endif %}
        </li>
        <li class="divider"></li>
        {%- if not order.is_canceled %}
          {%- if order.is_open %}
        <li><a href="{{ url_for('.mark_as_paid_form', order_id=order.id) }}">{{ render_icon('payment') }} Bestellung als bezahlt markieren</a></li>
          {%- endif %}<commit_msg>Keep list item tags close to the contained anchors<commit_after>{% extends 'layouts/shop_order_admin.html' %}
{% from 'macros/datetime.html' import render_date, render_datetime %}
{% from 'macros/icons.html' import render_icon %}
{% from 'macros/shop_article_admin.html' import render_article_link %}
{% from 'macros/shop_order_admin.html' import render_order_payment_method, render_order_payment_state %}
{% from 'macros/user_admin.html' import render_user_avatar_20_and_link %}
{% set current_page_party = party %}
{% set title = 'Bestellung ' ~ order.order_number %}

{% block head %}
  <style>
    .order-status-bar {
      justify-content: space-between;
    }

    .order-status-flag {
      margin-top: 0.2rem;
      opacity: 0.2;
      text-align: center;
    }
    .order-status-flag.set {
      opacity: 1;
    }

    .order-status-flag svg {
      font-size: 200%;
    }
  </style>
{%- endblock %}

{% block body %}

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

  {%- if g.current_user.has_permission(ShopOrderPermission.update) %}
  <div style="float: right; margin-left: 40px;">
    <div class="dropdown left">
      <button class="dropdown-toggle button">Aktionen {{ render_icon('caret-down') }}</button>
      <ol>
        <li><a href="{{ url_for('.export', order_id=order.id) }}" download="{{ order.order_number }}.xml">{{ render_icon('download') }} für Lexware exportieren (XML)</a></li>
        {%- if order.is_invoiced %}
        <li><a data-action="order-unflag-invoiced" href="{{ url_for('.unset_invoiced_flag', order_id=order.id) }}">{{ render_icon('invoice') }} Rechnung wurde <strong>nicht</strong> versendet</a></li>
        {%- else %}
        <li><a data-action="order-flag-invoiced" href="{{ url_for('.set_invoiced_flag', order_id=order.id) }}">{{ render_icon('invoice') }} Rechnung wurde versendet</a></li>
        {%- endif %}
        <li class="divider"></li>
        {%- if not order.is_canceled %}
          {%- if order.is_open %}
        <li><a href="{{ url_for('.mark_as_paid_form', order_id=order.id) }}">{{ render_icon('payment') }} Bestellung als bezahlt markieren</a></li>
          {%- endif %}
{'fraction_non_alphanumeric': 0.18657042869641294, 'fraction_numerical': 0.006124234470691163, 'mean_word_length': 3.457115009746589, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1220360', 'n_tokens_mistral': 1662, 'n_tokens_neox': 1566, 'n_words': 288}