<commit_before>{% extends "admin/base.html" %}

{% block admin_content %}

  <h1 class="heading-large">Suits</h1>

  <div class="grid-row section">
    <div class="column-full">

      <table class="suits">
        <thead>
          <tr>
            <th>Created</th>
            <th>Plaintiff</th>
            <th>Defendant</th>
            <th>Payment</th>
            <th></th>
          </tr>
        </thead>
        <tbody>
        {% for suit in suits %}
          <tr>
            <td>{{ "{:%d-%m-%Y %H:%M}".format(suit.created) }}</td>
            <td>{{ suit.plaintiff.name }}</td>
            <td>{{ suit.defendant.name }}</td>
            <td>
              {%- if suit.payment_id -%}
                {{ suit.payment.status }}
              {%- else -%}
                Not paid
              {%- endif -%}
            </td>
            <td>
              {%- if suit.accepted -%}
                <span class="accepted">Accepted</span>
              {%- else -%}
                {% if can_accept_suit %}
                <form method="post" action="{{ url_for('base.accept', suit=suit.id) }}">
                  <button class="button">Accept</button>
                </form>
                {% endif %}
              {%- endif -%}
              {% if can_accept_suit %}
              <form method="post" action="{{ url_for('base.reject', suit=suit.id) }}">
                <button class="secondary button">Reject</button>
              </form>
              {% endif %}
            </td>
          </tr>
        {% endfor %}
        </tbody>
      </table>

    </div>
  </div>

  <hr />

  <div>
    <a href="{{ config["GOVUK_NOTIFY"]["service_url"] }}/services/{{ config["GOVUK_NOTIFY"]["client_id"] }}/dashboard">Update email and sms templates</a>
  </div>

{% endblock %}<commit_msg>remove link to notify from suits page<commit_after>{% extends "admin/base.html" %}

{% block admin_content %}

  <h1 class="heading-large">Suits</h1>

  <div class="grid-row section">
    <div class="column-full">

      <table class="suits">
        <thead>
          <tr>
            <th>Created</th>
            <th>Plaintiff</th>
            <th>Defendant</th>
            <th>Payment</th>
            <th></th>
          </tr>
        </thead>
        <tbody>
        {% for suit in suits %}
          <tr>
            <td>{{ "{:%d-%m-%Y %H:%M}".format(suit.created) }}</td>
            <td>{{ suit.plaintiff.name }}</td>
            <td>{{ suit.defendant.name }}</td>
            <td>
              {%- if suit.payment_id -%}
                {{ suit.payment.status }}
              {%- else -%}
                Not paid
              {%- endif -%}
            </td>
            <td>
              {%- if suit.accepted -%}
                <span class="accepted">Accepted</span>
              {%- else -%}
                {% if can_accept_suit %}
                <form method="post" action="{{ url_for('base.accept', suit=suit.id) }}">
                  <button class="button">Accept</button>
                </form>
                {% endif %}
              {%- endif -%}
              {% if can_accept_suit %}
              <form method="post" action="{{ url_for('base.reject', suit=suit.id) }}">
                <button class="secondary button">Reject</button>
              </form>
              {% endif %}
            </td>
          </tr>
        {% endfor %}
        </tbody>
      </table>

    </div>
  </div>


{% endblock %}
{'fraction_non_alphanumeric': 0.1841722432353797, 'fraction_numerical': 0.0011638056444573757, 'mean_word_length': 1.310483870967742, 'pattern_counts': {'":': 0, '<': 100, '<?xml version=': 0, '>': 100, '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': '2337185', 'n_tokens_mistral': 1115, 'n_tokens_neox': 1012, 'n_words': 191}