<commit_before>{% extends parent_template|default:"organizer/base_organizer.html" %}

{% block title %}
{{ block.super }} - Create Tag
{% endblock %}

{% block content %}
  <form
      action="{% url 'organizer_tag_create' %}"
      method="post">
    {% csrf_token %}
    {% if form.non_field_errors %}
      <ul class="custom_error_list">
        {% for error in form.non_field_errors %}
          <li><em>{{ error }}</em></li>
        {% endfor %}
      </ul>
    {% endif %}
    {% if form.name.errors %}
      <ul class="custom_error_list">
        {% for error in form.name.errors %}
          <li><em>{{ error }}</em></li>
        {% endfor %}
      </ul>
    {% endif %}
    <p>
      <label for="id_name">Name:</label>
        <input id="id_name" maxlength="31"
            name="name" type="text" />
    </p>
    {% if form.slug.errors %}
      <ul class="custom_error_list">
        {% for error in form.slug.errors %}
          <li><em>{{ error }}</em></li>
        {% endfor %}
      </ul>
    {% endif %}
    <p>
      <label for="id_slug">Slug:</label>
        <input id="id_slug" maxlength="31"
            name="slug" type="text" />
      <span class="helptext">
        A label for URL config
      </span>
    </p>
    <button type="submit">
      Create Tag</button>
  </form>
{% endblock %}
<commit_msg>Ch08: tag_form.html: print submitted values.<commit_after>{% extends parent_template|default:"organizer/base_organizer.html" %}

{% block title %}
{{ block.super }} - Create Tag
{% endblock %}

{% block content %}
  <form
      action="{% url 'organizer_tag_create' %}"
      method="post">
    {% csrf_token %}
    {% if form.non_field_errors %}
      <ul class="custom_error_list">
        {% for error in form.non_field_errors %}
          <li><em>{{ error }}</em></li>
        {% endfor %}
      </ul>
    {% endif %}
    {% if form.name.errors %}
      <ul class="custom_error_list">
        {% for error in form.name.errors %}
          <li><em>{{ error }}</em></li>
        {% endfor %}
      </ul>
    {% endif %}
    <p>
      <label for="id_name">Name:</label>
      {% if form.name.value %}
        <input id="id_name" maxlength="31"
            name="name" type="text"
            value="{{ form.name.value }}" />
      {% else %}
        <input id="id_name" maxlength="31"
            name="name" type="text" />
      {% endif %}
    </p>
    {% if form.slug.errors %}
      <ul class="custom_error_list">
        {% for error in form.slug.errors %}
          <li><em>{{ error }}</em></li>
        {% endfor %}
      </ul>
    {% endif %}
    <p>
      <label for="id_slug">Slug:</label>
      {% if form.slug.value %}
        <input id="id_slug" maxlength="31"
            name="slug" type="text"
            value="{{ form.slug.value }}" />
      {% else %}
        <input id="id_slug" maxlength="31"
            name="slug" type="text" />
      {% endif %}
      <span class="helptext">
        A label for URL config
      </span>
    </p>
    <button type="submit">
      Create Tag</button>
  </form>
{% endblock %}

{'fraction_non_alphanumeric': 0.19221967963386727, 'fraction_numerical': 0.004576659038901602, 'mean_word_length': 2.063063063063063, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, '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': '4218879', 'n_tokens_mistral': 1093, 'n_tokens_neox': 1005, 'n_words': 208}