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

{% block page_title %}Responses to {{ brief.title or brief.lotName }} – Digital Marketplace{% endblock %}

{% block breadcrumb %}
  {%
      with items = [
        {
          "link": "/",
          "label": "Digital Marketplace"
        },
        {
          "link": url_for(".buyer_dashboard"),
          "label": "Your account"
        },
        {
        "link": url_for("buyers.view_brief_overview", framework_slug=brief.frameworkSlug, lot_slug=brief.lotSlug, brief_id=brief.id),
        "label": brief.title
        }
      ]
  %}
    {% include "toolkit/breadcrumb.html" %}
  {% endwith %}
{% endblock %}

{% block main_content %}
<div class="grid-row">
    <div class="column-two-thirds">
        {% with
        heading = "Shortlist suppliers",
        smaller = true
        %}
        {% include "toolkit/page-heading.html" %}
        {% endwith %}
    </div>
</div>

<div class="grid-row">
    <div class="column-two-thirds">
        <div class="dmspeak">
          {% if response_counts['eligible'] > 0 %}
            {% if ods %}
            <p>
              <span class='visual-emphasis'>{{ response_counts['eligible'] }} {{ pluralize(response_counts['eligible'], "supplier", "suppliers") }}</span>
              responded to your requirements and {{ pluralize(response_counts['eligible'], "meets", "meet") }} all your essential skills and experience. Suppliers that didn't meet all your essential requirements have already been told they were unsuccessful.
            </p>
            <p>
              You said you’d take <span class='visual-emphasis'>{{ brief.numberOfSuppliers }} {{ pluralize(brief.numberOfSuppliers, "supplier", "suppliers") }}</span> through to the evaluation stage. To do this, you need to:
            </p>
            {% with items = [
                {
                    "body": 'Read the <a href="https://www.gov.uk/guidance/how-to-shortlist-digital-outcomes-and-specialists-suppliers">guidance on how to shortlist.</a>'|safe,
                },
                {
                    "body": 'Review and score the evidence suppliers have given.',
                },
                {
                    "body": 'Tell the highest scoring suppliers that they’re through to the next stage.',
                },
                {
                    "body": 'Tell any unsuccessful suppliers who don\'t make it through to the next stage.',
                }
            ]
            %}
                {% include "toolkit/instruction-list.html" %}
            {% endwith %}

            {% if brief.get("status") == "closed" %}
                {%
                with
                items = [
                    {
                        "title": "Download supplier responses to this requirement",
                        "link": url_for('buyers.download_brief_responses', framework_slug=brief.frameworkSlug, lot_slug=brief.lotSlug, brief_id=brief.id),
                        "file_type": "ODS",
                        "download": "True"
                    }
                ]
                %}
                    {% include "toolkit/documents.html" %}
                {% endwith %}
            {% else %}
            <p>
                The file will be available here once applications have closed.
            </p>
            {% endif %}

            {% else %}
            <p>
                <span class='visual-emphasis'>{{ response_counts['eligible'] }} {{ pluralize(response_counts['eligible'], "supplier", "suppliers") }}</span>
                responded to your requirements and {{ pluralize(response_counts['eligible'], "meets", "meet") }} all your essential skills and experience.
            </p>
            <p>
                Suppliers that did not meet all your essential requirements have already been told they were unsuccessful.
            </p>

            <p>
              Download the list of supplier responses and follow the guidance on <a href="https://www.gov.uk/guidance/how-to-shortlist-digital-outcomes-and-specialists-suppliers">how to shortlist</a>.
            </p>

            {% if brief.get("status") == "closed" %}
                {%
                with
                items = [
                    {
                        "title": "Download supplier responses to \u2018" + brief.get('title', brief['lotName']) + "\u2019",
                        "link": url_for('buyers.download_brief_responses', framework_slug=brief.frameworkSlug, lot_slug=brief.lotSlug, brief_id=brief.id),
                        "file_type": "CSV",
                        "download": "True"
                    }
                ]
                %}
                    {% include "toolkit/documents.html" %}
                {% endwith %}
            {% else %}
            <p>
                The file will be available here once applications have closed.
            </p>
            {% endif %}

            {% endif %}
          {% else %}
            <p>
                No suppliers met your essential skills and experience requirements.
            </p>
            <p>
                All the suppliers who applied have already been told they were unsuccessful.
            </p>
            <div class='explanation-list'>
                <p class='lead'>
                    If you still need this service, you should start the buying process again. Consider:
                </p>
                <ul class='list-bullet'>
                    <li>talking to suppliers before you start</li>
                    <li>rewriting your requirements</li>
                </ul>
            </div>
        </div>
        {% endif %}

        {%
            with
            url = url_for('buyers.view_brief_overview', framework_slug=brief.frameworkSlug, lot_slug=brief.lotSlug, brief_id=brief.id),
            text = "Back to overview"
        %}
            {% include "toolkit/secondary-action-link.html" %}
        {% endwith %}
    </div>
</div>
{% endblock %}
<commit_msg>Fixes for vertical spacing issues<commit_after>{% extends "_base_page.html" %}

{% block page_title %}Responses to {{ brief.title or brief.lotName }} – Digital Marketplace{% endblock %}

{% block breadcrumb %}
  {%
      with items = [
        {
          "link": "/",
          "label": "Digital Marketplace"
        },
        {
          "link": url_for(".buyer_dashboard"),
          "label": "Your account"
        },
        {
        "link": url_for("buyers.view_brief_overview", framework_slug=brief.frameworkSlug, lot_slug=brief.lotSlug, brief_id=brief.id),
        "label": brief.title
        }
      ]
  %}
    {% include "toolkit/breadcrumb.html" %}
  {% endwith %}
{% endblock %}

{% block main_content %}
<div class="grid-row">
    <div class="column-two-thirds">
        {% with
        heading = "Shortlist suppliers",
        smaller = true
        %}
        {% include "toolkit/page-heading.html" %}
        {% endwith %}
    </div>
</div>

<div class="grid-row">
    <div class="column-two-thirds">
      {% if response_counts['eligible'] > 0 %}
        {% if ods %}
          <div class="dmspeak">
              <p>
                <span class='visual-emphasis'>{{ response_counts['eligible'] }} {{ pluralize(response_counts['eligible'], "supplier", "suppliers") }}</span>
                responded to your requirements and {{ pluralize(response_counts['eligible'], "meets", "meet") }} all your essential skills and experience. Suppliers that didn't meet all your essential requirements have already been told they were unsuccessful.
              </p>
              <p>
                You said you’d take <span class='visual-emphasis'>{{ brief.numberOfSuppliers }} {{ pluralize(brief.numberOfSuppliers, "supplier", "suppliers") }}</span> through to the evaluation stage. To do this, you need to:
              </p>
          </div>
          {% with items = [
              {
                  "body": 'Read the <a href="https://www.gov.uk/guidance/how-to-shortlist-digital-outcomes-and-specialists-suppliers">guidance on how to shortlist.</a>'|safe,
              },
              {
                  "body": 'Review and score the evidence suppliers have given.',
              },
              {
                  "body": 'Tell the highest scoring suppliers that they’re through to the next stage.',
              },
              {
                  "body": 'Tell any unsuccessful suppliers who don\'t make it through to the next stage.',
              }
          ]
          %}
              {% include "toolkit/instruction-list.html" %}
          {% endwith %}

          {% if brief.get("status") == "closed" %}
              {%
              with
              items = [
                  {
                      "title": "Download supplier responses to this requirement",
                      "link": url_for('buyers.download_brief_responses', framework_slug=brief.frameworkSlug, lot_slug=brief.lotSlug, brief_id=brief.id),
                      "file_type": "ODS",
                      "download": "True"
                  }
              ]
              %}
                  {% include "toolkit/documents.html" %}
              {% endwith %}
          {% else %}
          <div class="dmspeak">
            <p>
                The file will be available here once applications have closed.
            </p>
          </div>
          {% endif %}

        {% else %}
          <div class="dmspeak">
            <p>
                <span class='visual-emphasis'>{{ response_counts['eligible'] }} {{ pluralize(response_counts['eligible'], "supplier", "suppliers") }}</span>
                responded to your requirements and {{ pluralize(response_counts['eligible'], "meets", "meet") }} all your essential skills and experience.
            </p>
            <p>
                Suppliers that did not meet all your essential requirements have already been told they were unsuccessful.
            </p>

            <p>
              Download the list of supplier responses and follow the guidance on <a href="https://www.gov.uk/guidance/how-to-shortlist-digital-outcomes-and-specialists-suppliers">how to shortlist</a>.
            </p>
          </div>

          {% if brief.get("status") == "closed" %}
              {%
              with
              items = [
                  {
                      "title": "Download supplier responses to \u2018" + brief.get('title', brief['lotName']) + "\u2019",
                      "link": url_for('buyers.download_brief_responses', framework_slug=brief.frameworkSlug, lot_slug=brief.lotSlug, brief_id=brief.id),
                      "file_type": "CSV",
                      "download": "True"
                  }
              ]
              %}
                  {% include "toolkit/documents.html" %}
              {% endwith %}
          {% else %}
          <div class="dmspeak">
            <p>
                The file will be available here once applications have closed.
            </p>
          </div>
          {% endif %}

        {% endif %}
      {% else %}
        <div class="dmspeak">
          <p>
              No suppliers met your essential skills and experience requirements.
          </p>
          <p>
              All the suppliers who applied have already been told they were unsuccessful.
          </p>
        </div>
        <div class='explanation-list'>
            <p class='lead'>
                If you still need this service, you should start the buying process again. Consider:
            </p>
            <ul class='list-bullet'>
                <li>talking to suppliers before you start</li>
                <li>rewriting your requirements</li>
            </ul>
        </div>
      {% endif %}

      {%
          with
          url = url_for('buyers.view_brief_overview', framework_slug=brief.frameworkSlug, lot_slug=brief.lotSlug, brief_id=brief.id),
          text = "Back to overview"
      %}
          {% include "toolkit/secondary-action-link.html" %}
      {% endwith %}
    </div>
</div>
{% endblock %}

{'fraction_non_alphanumeric': 0.12728481222997673, 'fraction_numerical': 0.0014955134596211367, 'mean_word_length': 1.5769642474844787, 'pattern_counts': {'":': 36, '<': 107, '<?xml version=': 0, '>': 109, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '660813', 'n_tokens_mistral': 3385, 'n_tokens_neox': 3077, 'n_words': 800}