<commit_before><table class="col-2 no-pad-right">

  <tr>
    <td>Name</td>
    <td>{{ Claim['PrisonerFirstName']}} {{ Claim['PrisonerLastName'] }}</td>
  </tr>

  <tr>
    <td>Date of birth</td>
    <td>{{ getDateFormatted.shortDate(Claim['PrisonerDateOfBirth']) }}</td>
  </tr>

  <tr>
    <td>Prisoner number</td>
    <td>{{ Claim['PrisonNumber'] }}</td>
  </tr>

  <tr>
    <td>Prison</td>
    <td>{{ displayHelper.getPrisonDisplayName(Claim['NameOfPrison']) }}</td>
  </tr>

  <tr {% if errors['nomis-check'][0] %} class="warning"{% endif %}>
    <td>Eligible for visitation?</td>
    <td>
      {% if Claim['NomisCheck'] != 'APPROVED' %}
      <span class="text-warning">
        {% if displayHelper.getPrisonRegion(Claim['NameOfPrison']) != 'NI' %}
          NOMIS check required
        {% else %}
          NI prisoner check required
        {% endif %}
      </span>
      {% else %}
      <span class="text-success">
        {% if displayHelper.getPrisonRegion(Claim['NameOfPrison']) != 'NI' %}
          NOMIS check confirmed
        {% else %}
          NI prisoner check confirmed
        {% endif %}
      </span>
      {% endif %}

      {% if unlock %}
      <select class="form-control action-select" id="nomis-check" name="nomisCheck">
        <option value="">Select</option>
        <option {% if Claim['NomisCheck'] == 'APPROVED' %} selected {% endif %} value="APPROVED">Approve</option>
        <option {% if Claim['NomisCheck'] == 'REQUEST-INFORMATION' %} selected {% endif %} value="REQUEST-INFORMATION">Request information</option>
        <option {% if Claim['NomisCheck'] == 'REJECTED' %} selected {% endif %} value="REJECTED">Reject</option>
      </select>
      {% endif %}
    </td>
  </tr>

</table><commit_msg>APVS0196: Adding the release date to the view<commit_after><table class="col-2 no-pad-right">

  <tr>
    <td>Name</td>
    <td>{{ Claim['PrisonerFirstName']}} {{ Claim['PrisonerLastName'] }}</td>
  </tr>

  <tr>
    <td>Date of birth</td>
    <td>{{ getDateFormatted.shortDate(Claim['PrisonerDateOfBirth']) }}</td>
  </tr>

  <tr>
    <td>Prisoner number</td>
    <td>{{ Claim['PrisonNumber'] }}</td>
  </tr>

  <tr>
    <td>Prison</td>
    <td>{{ displayHelper.getPrisonDisplayName(Claim['NameOfPrison']) }}</td>
  </tr>

  <tr {% if errors['nomis-check'][0] %} class="warning"{% endif %}>
    <td>Eligible for visitation?</td>
    <td>
      {% if Claim['NomisCheck'] != 'APPROVED' %}
      <span class="text-warning">
        {% if displayHelper.getPrisonRegion(Claim['NameOfPrison']) != 'NI' %}
          NOMIS check required
        {% else %}
          NI prisoner check required
        {% endif %}
      </span>
      {% else %}
      <span class="text-success">
        {% if displayHelper.getPrisonRegion(Claim['NameOfPrison']) != 'NI' %}
          NOMIS check confirmed
        {% else %}
          NI prisoner check confirmed
        {% endif %}
      </span>
      {% endif %}

      {% if unlock %}
      <select class="form-control action-select" id="nomis-check" name="nomisCheck">
        <option value="">Select</option>
        <option {% if Claim['NomisCheck'] == 'APPROVED' %} selected {% endif %} value="APPROVED">Approve</option>
        <option {% if Claim['NomisCheck'] == 'REQUEST-INFORMATION' %} selected {% endif %} value="REQUEST-INFORMATION">Request information</option>
        <option {% if Claim['NomisCheck'] == 'REJECTED' %} selected {% endif %} value="REJECTED">Reject</option>
      </select>
      {% endif %}
    </td>
  </tr>

</table>

<br/>

<label for='release-date-is-set' class="block-label" data-target="release-date-is-set-section">
    <input type="checkbox" name='release-date-is-set' id='release-date-is-set' {% if Claim['ReleaseDateIsSet'] === true %} checked {% endif %} />
    <span>Release Date is set?</span>
  </label>

<br/>
<br/>
<br/>

<div id="release-date-is-set-section" class="form-date {% if Claim['ReleaseDateIsSet'] === false or Claim['ReleaseDateIsSet'] === null %} js-hidden" {% endif %}>
  <fieldset>
      <div class="form-group form-group-day">
          <label id="release-day" for="release-day-input">Day</label>
          <input id="release-day-input"
                type="number"
                name="release-day"
                autocomplete="off"
                value="{{ Claim['release-day'] }}"
                class="form-control">
        </div>

        <div class="form-group form-group-month">
          <label id="release-month" for="release-month-input">Month</label>
          <input id="release-month-input"
                type="number"
                name="release-month"
                autocomplete="off"
                value="{{ Claim['release-month'] }}"
                class="form-control">
        </div>

        <div class="form-group form-group-year">
          <label id="release-year" for="release-year-input">Year</label>
          <input id="release-year-input"
                type="number"
                name="release-year"
                autocomplete="off"
                value="{{ Claim['release-year'] }}"
                class="form-control">
        </div>
  </fieldset>
</div>
{'fraction_non_alphanumeric': 0.191170750680669, 'fraction_numerical': 0.0015558148580318942, 'mean_word_length': 2.5789839944328463, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 123, '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': '7139407', 'n_tokens_mistral': 1782, 'n_tokens_neox': 1607, 'n_words': 309}