<commit_before>{% extends 'event/index.html' %}

{% block content %}
<!-- ############ PAGE START-->
<div class="app-body light" id="view">
  <div class="row-col">
    <div class="col-lg-9 b-r no-border-md">
      <div class="padding p-y-0 m-b-md">
        <h2 class="m-y-md">{% if event.id %} Update {% else %} Add {% endif %} event</h2>
        <form method="post">
          {% csrf_token %}
          <div class="form-group row">
            <div class="col-sm-1 form-control-label text-muted">Title</div>
            <div class="col-sm-3"><input name="title" value="{{ form.title.value|default_if_none:"" }}" placeholder="Title" class="form-control {% if form.title.errors %}b-danger{% endif %}"></div>
            {% if form.title.errors %}
              <span class="label label-md danger pos-rlt p-a-sm col-xs-2">
                <b class="arrow left b-danger"></b>
                {% for errors in form.title.errors %}
                  {{ errors|striptags }}<br>
                {% endfor %}
              </span>
            {% endif %}
          </div>
          <div class="form-group row">
            <div class="col-sm-1 form-control-label text-muted">Datetime</div>
            <div class="col-sm-3"><input name="datetime" type="datetime-local" value="{{ form.datetime.value|date:"Y-m-d\TH:i"|default_if_none:"" }}" class="form-control {% if form.datetime.errors %}b-danger{% endif %}"></div>
            {% if form.datetime.errors %}
              <span class="label label-md danger pos-rlt p-a-sm col-xs-2">
                <b class="arrow left b-danger"></b>
                {% for errors in form.datetime.errors %}
                  {{ errors|striptags }}<br>
                {% endfor %}
              </span>
            {% endif %}
          </div>
          <div class="form-group row">
            <div class="col-sm-1 form-control-label text-muted">Venue</div>
            <div class="col-sm-3">
              <select name="venue" required_id="id_venue" class="form-control {% if form.venue.errors %}b-danger{% endif %}">
                {% for id, venue in form.venue.field.choices %}
                  <option value="{{ id }}" {% if id == form.venue.value %}selected{% endif %}>{{ venue }}</option>
                {% endfor %}
              </select>
            </div>
            {% if form.venue.errors %}
              <span class="label label-md danger pos-rlt p-a-sm col-xs-2">
                <b class="arrow left b-danger"></b>
                {% for errors in form.venue.errors %}
                  {{ errors|striptags }}<br>
                {% endfor %}
              </span>
            {% endif %}
          </div>
          <div class="form-group row">
            <div class="col-sm-1 form-control-label text-muted">Artists</div>
            <div class="col-sm-3">
              <select name="artists" required_id="id_artists" multiple="multiple" class="form-control {% if form.artists.errors %}b-danger{% endif %}">
                {% for id, artist in form.artists.field.choices %}
                  <option value="{{ id }}">{{ artist }}</option>
                {% endfor %}
              </select>
            </div>
            {% if form.artists.errors %}
              <span class="label label-md danger pos-rlt p-a-sm m-y-md col-xs-2">
                <b class="arrow left b-danger"></b>
                {% for errors in form.artists.errors %}
                  {{ errors|striptags }}<br>
                {% endfor %}
              </span>
            {% endif %}
          </div>
            <button type="submit" class="btn btn-md rounded primary p-x-md">{% if event.id %} Update {% else %} Add {% endif %}</button>
          </div>
        </form>
      </div><commit_msg>Fix Artists multiple choice scroll<commit_after>{% extends 'event/index.html' %}

{% block content %}
<!-- ############ PAGE START-->
<div class="app-body light" id="view">
  <div class="row-col">
    <div class="col-lg-9 b-r no-border-md">
      <div class="padding p-y-0 m-b-md">
        <h2 class="m-y-md">{% if event.id %} Update {% else %} Add {% endif %} event</h2>
        <form method="post">
          {% csrf_token %}
          <div class="form-group row">
            <div class="col-sm-1 form-control-label text-muted">Title</div>
            <div class="col-sm-3"><input name="title" value="{{ form.title.value|default_if_none:"" }}" placeholder="Title" class="form-control {% if form.title.errors %}b-danger{% endif %}"></div>
            {% if form.title.errors %}
              <span class="label label-md danger pos-rlt p-a-sm col-xs-2">
                <b class="arrow left b-danger"></b>
                {% for errors in form.title.errors %}
                  {{ errors|striptags }}<br>
                {% endfor %}
              </span>
            {% endif %}
          </div>
          <div class="form-group row">
            <div class="col-sm-1 form-control-label text-muted">Datetime</div>
            <div class="col-sm-3"><input name="datetime" type="datetime-local" value="{{ form.datetime.value|date:"Y-m-d\TH:i"|default_if_none:"" }}" class="form-control {% if form.datetime.errors %}b-danger{% endif %}"></div>
            {% if form.datetime.errors %}
              <span class="label label-md danger pos-rlt p-a-sm col-xs-2">
                <b class="arrow left b-danger"></b>
                {% for errors in form.datetime.errors %}
                  {{ errors|striptags }}<br>
                {% endfor %}
              </span>
            {% endif %}
          </div>
          <div class="form-group row">
            <div class="col-sm-1 form-control-label text-muted">Venue</div>
            <div class="col-sm-3">
              <select name="venue" required_id="id_venue" class="form-control {% if form.venue.errors %}b-danger{% endif %}">
                {% for id, venue in form.venue.field.choices %}
                  <option value="{{ id }}" {% if id == form.venue.value %}selected{% endif %}>{{ venue }}</option>
                {% endfor %}
              </select>
            </div>
            {% if form.venue.errors %}
              <span class="label label-md danger pos-rlt p-a-sm col-xs-2">
                <b class="arrow left b-danger"></b>
                {% for errors in form.venue.errors %}
                  {{ errors|striptags }}<br>
                {% endfor %}
              </span>
            {% endif %}
          </div>
          <div class="form-group row">
            <div class="col-sm-1 form-control-label text-muted">Artists</div>
            <div class="col-sm-3">
              <select name="artists" required_id="id_artists" multiple="multiple" class="form-control {% if form.artists.errors %}b-danger{% endif %}" style="overflow-y: scroll; height: {% if form.artists.field.choices.queryset.all|length >= 10 %}12.75{% else %}6.75{% endif %}rem">
                {% for id, artist in form.artists.field.choices %}
                  <option value="{{ id }}">{{ artist }}</option>
                {% endfor %}
              </select>
            </div>
            {% if form.artists.errors %}
              <span class="label label-md danger pos-rlt p-a-sm m-y-md col-xs-2">
                <b class="arrow left b-danger"></b>
                {% for errors in form.artists.errors %}
                  {{ errors|striptags }}<br>
                {% endfor %}
              </span>
            {% endif %}
          </div>
            <button type="submit" class="btn btn-md rounded primary p-x-md">{% if event.id %} Update {% else %} Add {% endif %}</button>
          </div>
        </form>
      </div>
{'fraction_non_alphanumeric': 0.1799894819879043, 'fraction_numerical': 0.005390481199053379, 'mean_word_length': 1.7206723891273248, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 138, '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': '394298', 'n_tokens_mistral': 2455, 'n_tokens_neox': 2208, 'n_words': 508}