<commit_before>{% extends "base.html" %}
{% load staticfiles %}
{% load bootstrap4 %}

{% block main %}

<div class="container-fluid">
  <div class="page-header">
    <div class="row h-100">
      <h1 class="mr-4">
        {{ applicant.full_name }}
      </h1>
      <h5 class="my-auto">
        <em><NAME>: {{ applicant.created_at }}</em>
      </h5>
    </div>
  </div>

  <div class="col-md-8">
    <form autocomplete="off" role="form" action="/admin/applicants/{{ applicant.id }}/" method="post">
      {% csrf_token %}

      <!-- Applicant name information -->
      <div id="names" class="row">
        {% bootstrap_field form.surname        form_group_class="form-group col-md-4" placeholder=False required_css_class="required" bound_css_class="" %}
        {% bootstrap_field form.given_names    form_group_class="form-group col-md-4" placeholder=False required_css_class="required" bound_css_class="" %}
        {% bootstrap_field form.preferred_name form_group_class="form-group col-md-4" placeholder=False bound_css_class="" %}
      </div>

      <!-- Applicant address information -->
      <div id="address" class="row">
        {% bootstrap_field form.street_address form_group_class="form-group col-md-6" placeholder=False required_css_class="required" bound_css_class="" %}
        {% bootstrap_field form.postal_code    form_group_class="form-group col-md-3" placeholder=False required_css_class="required" bound_css_class="" %}
        {% bootstrap_field form.city           form_group_class="form-group col-md-3" placeholder=False required_css_class="required" bound_css_class="" %}
      </div>

      <!-- Applicant country -->
      <div id="country" class="row">
        {% bootstrap_field form.country form_group_class="form-group col-md-12" required_css_class="required" bound_css_class="" %}
      </div>

      <!-- Applicant contact information -->
      <div id="contact" class="row">
        {% bootstrap_field form.phone form_group_class="form-group col-md-6" placeholder=False required_css_class="required" bound_css_class="" %}
        {% bootstrap_field form.email form_group_class="form-group col-md-6" placeholder="@aalto.fi" required_css_class="required" bound_css_class="" %}
      </div>

      <!-- Applicant metadata -->
      <div id="meta" class="row">
        {% bootstrap_field form.student_id     form_group_class="form-group col-md-4" placeholder=False required_css_class="required" bound_css_class="" %}
        {% bootstrap_field form.birth_date     form_group_class="form-group col-md-4" placeholder=False required_css_class="required" bound_css_class="" %}
        {% bootstrap_field form.enrolment_year form_group_class="form-group col-md-4" placeholder=False required_css_class="required" bound_css_class="" %}
      </div>

      <!-- Field of study -->
      <div id="programme">
        {% bootstrap_field form.degree_programme_options form_group_class="form-group" placeholder=False required_css_class="required" bound_css_class="" %}
        <div id="unknown_degree" style="display: none;">
          {% bootstrap_field form.degree_programme form_group_class="form-group" placeholder=False required_css_class="required" bound_css_class="" %}
        </div>
      </div>

      <!-- Mother tongue -->
      <div id="language">
        {% bootstrap_field form.mother_tongue form_group_class="form-group" placeholder=False required_css_class="required" bound_css_class="" %}
      </div>

      <!-- Applicant motivation -->
      <div id="motivation">
        {% bootstrap_field form.motivation form_group_class="form-group" placeholder=False required_css_class="required" bound_css_class="" %}
      </div>

      <!-- Consents -->
      <div id="consents">
        <div class="form-group">
          <div class="form-check">
            {% if form.subscribed_to_modulen.errors %}<div class="alert alert-danger">{{ form.subscribed_to_modulen.errors }}</div>{% endif %}
            <input id="{{ form.subscribed_to_modulen.id_for_label }}" class="form-check-input" type="checkbox" name="{{ form.subscribed_to_modulen.name }}" autocomplete="off">
            <label class="form-check-label" for="{{ form.subscribed_to_modulen.id_for_label }}">
              Jag vill få Teknologföreningens medlemstidning Modulen hemskickad
            </label>
          </div>
        </div>

        <div class="form-group">
          <div class="form-check">
            {% if form.allow_publish_info.errors %}<div class="alert alert-danger">{{ form.allow_publish_info.errors }}</div>{% endif %}
            <input id="{{ form.allow_publish_info.id_for_label }}" class="form-check-input" type="checkbox" name="{{ form.allow_publish_info.name }}" autocomplete="off">
            <label class="form-check-label" for="{{ form.allow_publish_info.id_for_label }}">
              Jag tillåter att mina uppgifter utlämnas till Katalogen och Modulens redaktion
            </label>
          </div>
        </div>
      </div>

      <div class="row">
        <div class="col-md-12">
          {% bootstrap_button "Spara" button_type="submit" button_class="btn btn-success" %}<commit_msg>Fix consents on admin form<commit_after>{% extends "base.html" %}
{% load staticfiles %}
{% load bootstrap4 %}

{% block main %}

<div class="container-fluid">
  <div class="page-header">
    <div class="row h-100">
      <h1 class="mr-4">
        {{ applicant.full_name }}
      </h1>
      <h5 class="my-auto">
        <em><NAME>: {{ applicant.created_at }}</em>
      </h5>
    </div>
  </div>

  <div class="col-md-8">
    <form autocomplete="off" role="form" action="/admin/applicants/{{ applicant.id }}/" method="post">
      {% csrf_token %}

      <!-- Applicant name information -->
      <div id="names" class="row">
        {% bootstrap_field form.surname        form_group_class="form-group col-md-4" placeholder=False required_css_class="required" bound_css_class="" %}
        {% bootstrap_field form.given_names    form_group_class="form-group col-md-4" placeholder=False required_css_class="required" bound_css_class="" %}
        {% bootstrap_field form.preferred_name form_group_class="form-group col-md-4" placeholder=False bound_css_class="" %}
      </div>

      <!-- Applicant address information -->
      <div id="address" class="row">
        {% bootstrap_field form.street_address form_group_class="form-group col-md-6" placeholder=False required_css_class="required" bound_css_class="" %}
        {% bootstrap_field form.postal_code    form_group_class="form-group col-md-3" placeholder=False required_css_class="required" bound_css_class="" %}
        {% bootstrap_field form.city           form_group_class="form-group col-md-3" placeholder=False required_css_class="required" bound_css_class="" %}
      </div>

      <!-- Applicant country -->
      <div id="country" class="row">
        {% bootstrap_field form.country form_group_class="form-group col-md-12" required_css_class="required" bound_css_class="" %}
      </div>

      <!-- Applicant contact information -->
      <div id="contact" class="row">
        {% bootstrap_field form.phone form_group_class="form-group col-md-6" placeholder=False required_css_class="required" bound_css_class="" %}
        {% bootstrap_field form.email form_group_class="form-group col-md-6" placeholder="@aalto.fi" required_css_class="required" bound_css_class="" %}
      </div>

      <!-- Applicant metadata -->
      <div id="meta" class="row">
        {% bootstrap_field form.student_id     form_group_class="form-group col-md-4" placeholder=False required_css_class="required" bound_css_class="" %}
        {% bootstrap_field form.birth_date     form_group_class="form-group col-md-4" placeholder=False required_css_class="required" bound_css_class="" %}
        {% bootstrap_field form.enrolment_year form_group_class="form-group col-md-4" placeholder=False required_css_class="required" bound_css_class="" %}
      </div>

      <!-- Field of study -->
      <div id="programme">
        {% bootstrap_field form.degree_programme_options form_group_class="form-group" placeholder=False required_css_class="required" bound_css_class="" %}
        <div id="unknown_degree" style="display: none;">
          {% bootstrap_field form.degree_programme form_group_class="form-group" placeholder=False required_css_class="required" bound_css_class="" %}
        </div>
      </div>

      <!-- Mother tongue -->
      <div id="language">
        {% bootstrap_field form.mother_tongue form_group_class="form-group" placeholder=False required_css_class="required" bound_css_class="" %}
      </div>

      <!-- Applicant motivation -->
      <div id="motivation">
        {% bootstrap_field form.motivation form_group_class="form-group" placeholder=False required_css_class="required" bound_css_class="" %}
      </div>

      <!-- Consents -->
      <div id="consents">
        <div class="form-group">
          <div class="form-check">
            {% if form.subscribed_to_modulen.errors %}<div class="alert alert-danger">{{ form.subscribed_to_modulen.errors }}</div>{% endif %}
            <input id="{{ form.subscribed_to_modulen.id_for_label }}" class="form-check-input" type="checkbox" name="{{ form.subscribed_to_modulen.name }}" autocomplete="off">
            <label class="form-check-label" for="{{ form.subscribed_to_modulen.id_for_label }}">
              Jag vill få Teknologföreningens medlemstidning Modulen hemskickad och att mina uppgifter utlämnas till Modulens redaktion
            </label>
          </div>
        </div>

        <div class="form-group">
          <div class="form-check">
            {% if form.allow_publish_info.errors %}<div class="alert alert-danger">{{ form.allow_publish_info.errors }}</div>{% endif %}
            <input id="{{ form.allow_publish_info.id_for_label }}" class="form-check-input" type="checkbox" name="{{ form.allow_publish_info.name }}" autocomplete="off">
            <label class="form-check-label" for="{{ form.allow_publish_info.id_for_label }}">
              Jag tillåter att mina uppgifter utlämnas till Katalogen
            </label>
          </div>
        </div>
      </div>

      <div class="row">
        <div class="col-md-12">
          {% bootstrap_button "Spara" button_type="submit" button_class="btn btn-success" %}
{'fraction_non_alphanumeric': 0.14960170973382553, 'fraction_numerical': 0.004857198367981349, 'mean_word_length': 3.4146655231560894, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 129, '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': '358549', 'n_tokens_mistral': 3274, 'n_tokens_neox': 3058, 'n_words': 573}