<commit_before><!-- Load internationalisation utils-->
{% load i18n %}
{% load static %}

<table id="generated-orders" class="ui very basic stripped compact celled table">
  <thead>
    <th class="">{% trans 'Order' %}
            <i class="help-text question grey icon link" data-content="{% trans 'A unique identifier for the order.' %}"></i>
    </th>
    <th class="">{% trans 'Client' %}
        <i class="help-text question grey icon link" data-content="{% trans 'Quickly access the client file.' %}"></i>
    </th>
    <th class="">{% trans 'Delivery Date' %}
        <i class="help-text question grey icon link" data-content="{% trans 'The delivery date planned for the order.' %}"></i>
    </th>
    <th class="">{% trans 'Route' %}
        <i class="help-text question grey icon link" data-content="{% trans 'The delivery route.' %}"></i>
    </th>
    <th class="center aligned">{% trans 'Status' %}
        <i class="help-text question grey icon link" data-content="{% trans 'Display only Ordered orders.' %}"></i>
    </th>
    <th class="center aligned">{% trans 'Amount' %}
        <i class="help-text question grey icon link" data-content="{% trans 'Total amount in $CAD.' %}"></i>
    </th>
    <th class=""></th>
  </thead>
  <tbody>
    {% for order in orders %}
      <tr {% if not order.client.is_geolocalized %}class="error"{% endif %}>
        <td class="center aligned"><strong><i class="hashtag icon"></i>{{order.id}}</strong></td>
        <td><a href="{% url 'member:client_information' pk=order.client.id %}">{{order.client.member}}</a>
        </td>
        <td>{{order.delivery_date}}</td>
        <td>{{order.client.route}}
            {% if not order.client.is_geolocalized %}
            <a href="{% url 'member:member_update_address_information' pk=order.client.id %}" title="{% trans 'Fix geolocalization.' %}"><i class="warning sign red icon"></i></a>
            {% endif %}
        </td>
        <td class="center aligned">{{order.get_status_display}}</td>
        <td class="center aligned"><i class="dollar icon"></i>{{order.price}}</td>
        <td>
            <a class="ui basic icon button" title="{% trans 'Review or change the status of the order.' %}"  href="{% url 'order:view' pk=order.id %}"><i class="icon unhide"></i></a>
            <a class="ui basic icon button" title="{% trans 'Change the details of the order.' %}" href="{% url 'order:update' pk=order.id %}"><i class="icon edit"></i></a>
        </td>
      </tr>
    {% endfor %}
  </tbody>
</table><commit_msg>Display only ordered items on review orders page<commit_after><!-- Load internationalisation utils-->
{% load i18n %}
{% load static %}

<table id="generated-orders" class="ui very basic stripped compact celled table">
  <thead>
    <th class="">{% trans 'Order' %}
            <i class="help-text question grey icon link" data-content="{% trans 'A unique identifier for the order.' %}"></i>
    </th>
    <th class="">{% trans 'Client' %}
        <i class="help-text question grey icon link" data-content="{% trans 'Quickly access the client file.' %}"></i>
    </th>
    <th class="">{% trans 'Delivery Date' %}
        <i class="help-text question grey icon link" data-content="{% trans 'The delivery date planned for the order.' %}"></i>
    </th>
    <th class="">{% trans 'Route' %}
        <i class="help-text question grey icon link" data-content="{% trans 'The delivery route.' %}"></i>
    </th>
    <th class="center aligned">{% trans 'Status' %}
        <i class="help-text question grey icon link" data-content="{% trans 'Display only Ordered orders.' %}"></i>
    </th>
    <th class="center aligned">{% trans 'Amount' %}
        <i class="help-text question grey icon link" data-content="{% trans 'Total amount in $CAD.' %}"></i>
    </th>
    <th class=""></th>
  </thead>
  <tbody>
    {% for order in orders %}
      {% if order.status == 'O' %}
      <tr {% if not order.client.is_geolocalized %}class="error"{% endif %}>
        <td class="center aligned"><strong><i class="hashtag icon"></i>{{order.id}}</strong></td>
        <td><a href="{% url 'member:client_information' pk=order.client.id %}">{{order.client.member}}</a>
        </td>
        <td>{{order.delivery_date}}</td>
        <td>{{order.client.route}}
            {% if not order.client.is_geolocalized %}
            <a href="{% url 'member:member_update_address_information' pk=order.client.id %}" title="{% trans 'Fix geolocalization.' %}"><i class="warning sign red icon"></i></a>
            {% endif %}
        </td>
        <td class="center aligned">{{order.get_status_display}}</td>
        <td class="center aligned"><i class="dollar icon"></i>{{order.price}}</td>
        <td>
            <a class="ui basic icon button" title="{% trans 'Review or change the status of the order.' %}"  href="{% url 'order:view' pk=order.id %}"><i class="icon unhide"></i></a>
            <a class="ui basic icon button" title="{% trans 'Change the details of the order.' %}" href="{% url 'order:update' pk=order.id %}"><i class="icon edit"></i></a>
        </td>
      </tr>
    {% endif %}
    {% endfor %}
  </tbody>
</table>
{'fraction_non_alphanumeric': 0.20386266094420602, 'fraction_numerical': 0.0007803355442840422, 'mean_word_length': 3.1016, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 141, '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': '2763707', 'n_tokens_mistral': 1687, 'n_tokens_neox': 1543, 'n_words': 484}