<commit_before>{% load i18n %}

{% if form.errors %}
    <div class="ui error message">
      <div class="header">{% trans 'Required information missing' %}</div>
      <p>{% trans 'Please review the form to make sure that all required fields are filled.' %}</p>
    </div>
{% endif %}

<div class="order">
    <div class="field {% if form.client.errors %} error {% endif %}">
        <label>{{ form.client.label }}</label>
        {% if form.client.errors %} {{ form.client.errors }} {% endif %}
        <div class="ui fluid search selection dropdown">
          <input type="hidden" name="{{ form.client.name }}">
          <i class="dropdown icon"></i>
          <div class="default text">{% trans 'Select a client' %}</div>
          <div class="menu">
            {% for value, option in form.client.field.choices %}
              <div class="item" data-value="{{value}}">{{option}}</div>
            {% endfor %}
          </div>
        </div>
    </div>

    <div class="field {% if form.creation_date.errors %} error {% endif %}">
        <label>{{ form.creation_date.label }}</label>
        <div class="ui calendar" id="form_creation_date">
            <div class="ui input left icon">
                  <i class="calendar icon"></i>
                  {{ form.creation_date }}
            </div>
        </div>
        {% if form.creation_date.errors %} {{ form.creation_date.errors }} {% endif %}
    </div>

    <div class="field {% if form.delivery_date.errors %} error {% endif %}"><commit_msg>Add value to hidden input to add selected value on edit order.<commit_after>{% load i18n %}

{% if form.errors %}
    <div class="ui error message">
      <div class="header">{% trans 'Required information missing' %}</div>
      <p>{% trans 'Please review the form to make sure that all required fields are filled.' %}</p>
    </div>
{% endif %}

<div class="order">
    <div class="field {% if form.client.errors %} error {% endif %}">
        <label>{{ form.client.label }}</label>
        {% if form.client.errors %} {{ form.client.errors }} {% endif %}
        <div class="ui fluid search selection dropdown">
          <input type="hidden" name="{{ form.client.name }}" value={{form.client.value}}>
          <i class="dropdown icon"></i>
          <div class="default text">{% trans 'Select a client' %}</div>
          <div class="menu">
            {% for value, option in form.client.field.choices %}
              <div class="item" data-value="{{value}}">{{option}}</div>
            {% endfor %}
          </div>
        </div>
    </div>

    <div class="field {% if form.creation_date.errors %} error {% endif %}">
        <label>{{ form.creation_date.label }}</label>
        <div class="ui calendar" id="form_creation_date">
            <div class="ui input left icon">
                  <i class="calendar icon"></i>
                  {{ form.creation_date }}
            </div>
        </div>
        {% if form.creation_date.errors %} {{ form.creation_date.errors }} {% endif %}
    </div>

    <div class="field {% if form.delivery_date.errors %} error {% endif %}">
{'fraction_non_alphanumeric': 0.18093699515347333, 'fraction_numerical': 0.0012924071082390954, 'mean_word_length': 2.365217391304348, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '5192374', 'n_tokens_mistral': 968, 'n_tokens_neox': 864, 'n_words': 250}