<commit_before>{% extends 'layout/base.html' %}
{% from 'macros/misc.html' import render_notification %}
{% set current_page = 'shop_order' %}
{% set title = 'Bestellen' %}

{% block body %}

  <h1>{{ title }}</h1>

{{ render_notification('info', 'info', '<a href="%s">Melde dich an</a>, um bestellen zu können.'|format(url_for('authentication.login_form'))|safe) }}

{{ render_snippet('shop_order_intro', ignore_if_unknown=True)|safe }}

  <h2>Artikel</h2>
  <table class="index wide">
    <thead>
      <tr>
        <th>Beschreibung</th>
        <th class="number" style="width: 15%;">Stückpreis</th>
      </tr>
    </thead>
    <tbody>
      {%- for item in article_compilation %}
        {%- with is_available = (item.article.quantity > 0) %}
      <tr{% if not is_available %} class="dimmed"{% endif %}>
        <td><strong>{{ item.article.description }}</strong>
          {%- if not is_available %}
          <br><em>derzeit nicht verfügbar</em>
          {%- endif -%}
        </td>
        <td class="number">{{ item.article.tax_rate_as_percentage }}&thinsp;%</td><commit_msg>Add missing article tax column header<commit_after>{% extends 'layout/base.html' %}
{% from 'macros/misc.html' import render_notification %}
{% set current_page = 'shop_order' %}
{% set title = 'Bestellen' %}

{% block body %}

  <h1>{{ title }}</h1>

{{ render_notification('info', 'info', '<a href="%s">Melde dich an</a>, um bestellen zu können.'|format(url_for('authentication.login_form'))|safe) }}

{{ render_snippet('shop_order_intro', ignore_if_unknown=True)|safe }}

  <h2>Artikel</h2>
  <table class="index wide">
    <thead>
      <tr>
        <th>Beschreibung</th>
        <th class="number" style="width: 15%;">Steuersatz</th>
        <th class="number" style="width: 15%;">Stückpreis</th>
      </tr>
    </thead>
    <tbody>
      {%- for item in article_compilation %}
        {%- with is_available = (item.article.quantity > 0) %}
      <tr{% if not is_available %} class="dimmed"{% endif %}>
        <td><strong>{{ item.article.description }}</strong>
          {%- if not is_available %}
          <br><em>derzeit nicht verfügbar</em>
          {%- endif -%}
        </td>
        <td class="number">{{ item.article.tax_rate_as_percentage }}&thinsp;%</td>
{'fraction_non_alphanumeric': 0.19389110225763612, 'fraction_numerical': 0.007082779991146525, 'mean_word_length': 3.3212237093690247, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 59, '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': '3633948', 'n_tokens_mistral': 829, 'n_tokens_neox': 764, 'n_words': 154}