<commit_before>{% if request.path.startswith('/result') %}
  {% extends 'checker/base.html' %}
{% else %}
  {% extends 'base.html' %}
{% endif %}

{% import "macros/form.html" as Form %}
{% import "macros/subform.html" as Subform %}
{% import "macros/element.html" as Element %}

{% set title = _('Contact Civil Legal Advice') %}
{% block page_title %}{{ title }}{% endblock %}

{% block inner_content %}
  {% block page_text %}
    {% if config.CONTACT_ONLY %}
      {% call Element.alert() %}
        <p>{{ _('The full service is currently unavailable. However, you can still get in touch using the form below.') }}</p>
      {% endcall %}
    {% endif %}
    <h1>{{ title }}</h1>
    <p>
      {% trans %}Please submit your details to get in touch with Civil Legal Advice (CLA).{% endtrans %}
    </p>
    <p>
      {% trans %}You can choose to contact CLA yourself and speak to someone immediately (this is an 0345 number -
      <a href="https://www.gov.uk/call-charges" rel="external" target="_blank">call charges</a> apply)
      or ask us to call you back, which is free.{% endtrans %}
    </p>
    <p>{{ _('You’ll need to provide evidence of the financial information you’ve given us through this service.') }}</p>
  {% endblock %}

  <form method="POST" action="{{ url_for('contact.get_in_touch') }}" class="contact-form">
    {{ form.csrf_token }}
    {{ Form.handle_errors(form) }}

    {{ Form.text_input_fieldset(
      form.full_name,
      class_='m-large'
    ) }}

    {% call Form.fieldset(form.callback_requested) %}
      {{ Form.radio_buttons(form.callback_requested) }}
<commit_msg>give phone number to users at immediate risk of harm<commit_after>{% if request.path.startswith('/result') %}
  {% extends 'checker/base.html' %}
{% else %}
  {% extends 'base.html' %}
{% endif %}

{% import "macros/form.html" as Form %}
{% import "macros/subform.html" as Subform %}
{% import "macros/element.html" as Element %}

{% set title = _('Contact Civil Legal Advice') %}
{% block page_title %}{{ title }}{% endblock %}

{% block inner_content %}
  {% block page_text %}
    {% if config.CONTACT_ONLY %}
      {% call Element.alert() %}
        <p>{{ _('The full service is currently unavailable. However, you can still get in touch using the form below.') }}</p>
      {% endcall %}
    {% endif %}
    <h1>{{ title }}</h1>
    {#
      'n18' is the index of the node which corresponds to 'yes' in response
      to question 'Are you at immediate risk of harm?'
    #}
    {% if 'n18' in session.checker.diagnosis_previous_choices %}
      <h2 class="subtitle">
        {% trans %}If you're in immediate danger please call Civil Legal
        Advice on 0345 345 4 345. Call charges apply.{% endtrans %}
      </h2>
      <p>
        {% trans %}You can also ask us to call you back using the form below,
        which is free.{% endtrans %}
      </p>
      <p>
        {% trans %}If you're in an emergency situation, please call the police
        on 999.{% endtrans %}
      </p>
    {% else %}
      <p>
        {% trans %}Please submit your details to get in touch with Civil Legal Advice (CLA).{% endtrans %}
      </p>
      <p>
        {% trans %}You can choose to contact CLA yourself and speak to someone immediately (this is an 0345 number -
        <a href="https://www.gov.uk/call-charges" rel="external" target="_blank">call charges</a> apply)
        or ask us to call you back, which is free.{% endtrans %}
      </p>
      <p>{{ _('You’ll need to provide evidence of the financial information you’ve given us through this service.') }}</p>
    {% endif %}
  {% endblock %}

  <form method="POST" action="{{ url_for('contact.get_in_touch') }}" class="contact-form">
    {{ form.csrf_token }}
    {{ Form.handle_errors(form) }}

    {{ Form.text_input_fieldset(
      form.full_name,
      class_='m-large'
    ) }}

    {% call Form.fieldset(form.callback_requested) %}
      {{ Form.radio_buttons(form.callback_requested) }}

{'fraction_non_alphanumeric': 0.15701643489254108, 'fraction_numerical': 0.00809102402022756, 'mean_word_length': 2.9481037924151696, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '2993728', 'n_tokens_mistral': 1360, 'n_tokens_neox': 1207, 'n_words': 392}