<commit_before>{% extends "layout.html" %}

{% set title = "Add the exemptions you want to register" %}

{% block page_title %}
  {{ title }}
{% endblock %}

{% block content %}
<main id="content" role="main">
  {% include "includes/phase_banner_alpha.html" %}

  {% include "custom_inc/backlink.html" %}

  <div class="grid-row">
    <div class="column-two-thirds">


    <h1 class="heading-large">
      {{ title }}
    </h1>

    {% if error %}

      <div class="error-summary" role="group" aria-labelledby="groupLabel" tabindex="-1">
        <h1 class="heading-medium error-summary-heading" id="error-summary-heading">
          A problem to fix
        </h1>
        <ul class="error-summary-list">
          <li>
            <a class="error-text" href="#">Select one dredging exemption and no others.</a> Dredging exemptions must be registered on their own.
          </li>
        </ul>
      </div>

    {% else %}

    <div class="panel panel-border-wide">
      <p class="text">
        You can register more than one exemption, except for dredging, but they must all be at the same location.
      </p>
      <p class="text">
        You can only only register one dredging exemption at a time. If you need other exemptions ou should register them separately.
      </p>
      <p class="text">
        You must check you can meet the conditions for each exemption.
        <a target="blank" href="https://www.gov.uk/government/publications/environmental-permitting-regulations-exempt-flood-risk-activities">
          Exempt flood risk activities guidance
        </a>.
      </p>
    </div>

    {% endif %}

      <form method="post" class="form" action="/version_3/do_exemption_check">


      <style>
        span.exmpt{
          font-weight:bold;
          float:right;
        }
        label.exemption{
          background-color:#ededed;
          border-color:#ededed;
        }
        @media screen and (min-width: 320px) {
          label.exemption{
            width:99%;
            }
        }
        details {
          display:inline-block;
          padding-left:10px;
        }
        details summary {
          background: none;
        }
      </style>

        <div class="form-group">
          <fieldset>
            <legend class="visuallyhidden">{{ title }}</legend>

        {% import "custom_inc/macros.html" as formelement %}

        {% from "custom_inc/exemptionlist.html" import exemptions %}

        {% for ex in exemptions %}
          {% if ex.live=='1' %}
            {{ formelement.exemption3( ex.id, ex.govuktitle, ex.id, "exemption-"+ex.id, ex.desc, "checkbox") }}
          {% endif %}
        {% else %}
          <p>No radio buttons</p>
        {% endfor %}

          </fieldset>
        </div><!-- // end .form-group -->

        <div class="form-group">
          <input type="submit" class="button" value="Continue" />
        </div>

      </form>

    </div>
  </div>
<commit_msg>Add import statement for conditions file<commit_after>{% extends "layout.html" %}

{% set title = "Add the exemptions you want to register" %}

{% block page_title %}
  {{ title }}
{% endblock %}

{% block content %}
<main id="content" role="main">
  {% include "includes/phase_banner_alpha.html" %}

  {% include "custom_inc/backlink.html" %}

  <div class="grid-row">
    <div class="column-two-thirds">


    <h1 class="heading-large">
      {{ title }}
    </h1>

    {% if error %}

      <div class="error-summary" role="group" aria-labelledby="groupLabel" tabindex="-1">
        <h1 class="heading-medium error-summary-heading" id="error-summary-heading">
          A problem to fix
        </h1>
        <ul class="error-summary-list">
          <li>
            <a class="error-text" href="#">Select one dredging exemption and no others.</a> Dredging exemptions must be registered on their own.
          </li>
        </ul>
      </div>

    {% else %}

    <div class="panel panel-border-wide">
      <p class="text">
        You can register more than one exemption, except for dredging, but they must all be at the same location.
      </p>
      <p class="text">
        You can only only register one dredging exemption at a time. If you need other exemptions ou should register them separately.
      </p>
      <p class="text">
        You must check you can meet the conditions for each exemption.
        <a target="blank" href="https://www.gov.uk/government/publications/environmental-permitting-regulations-exempt-flood-risk-activities">
          Exempt flood risk activities guidance
        </a>.
      </p>
    </div>

    {% endif %}

      <form method="post" class="form" action="/version_3/do_exemption_check">


      <style>
        span.exmpt{
          font-weight:bold;
          float:right;
        }
        label.exemption{
          background-color:#ededed;
          border-color:#ededed;
        }
        @media screen and (min-width: 320px) {
          label.exemption{
            width:99%;
            }
        }
        details {
          display:inline-block;
          padding-left:10px;
        }
        details summary {
          background: none;
        }
      </style>

        <div class="form-group">
          <fieldset>
            <legend class="visuallyhidden">{{ title }}</legend>

        {% import "custom_inc/macros.html" as formelement %}

        {% from "custom_inc/exemptionlist.html" import exemptions %}

        {% import "custom_inc/fra-text.html" as text %}

        {% for ex in exemptions %}
          {% if ex.live=='1' %}
            {{ formelement.exemption3( ex.id, ex.govuktitle, ex.id, "exemption-"+ex.id, ex.desc, "checkbox") }}
          {% endif %}
        {% else %}
          <p>No radio buttons</p>
        {% endfor %}

          </fieldset>
        </div><!-- // end .form-group -->

        <div class="form-group">
          <input type="submit" class="button" value="Continue" />
        </div>

      </form>

    </div>
  </div>

{'fraction_non_alphanumeric': 0.14378975560763307, 'fraction_numerical': 0.0050217609641781055, 'mean_word_length': 2.011592741935484, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2974101', 'n_tokens_mistral': 1910, 'n_tokens_neox': 1723, 'n_words': 451}