<commit_before>{% extends 'users/dashboard.html' %}

{% block sectiontitle %}
  <h1>Submission History</h1>
{% endblock %}

{% block section %}

  <div class="col-1-1">
    <h2>
      Submissions for
      {% if not form.hash %}
        <span class="code">/{{ form.hashid }}</span>
      {% else %}
        <span class="code">/{{ form.email }}</span>
      {% endif %}
      at <span class="code">{{ form.host }}</span>
      {% if not form.hash %}
        <br><small>targeting <span class="code">{{ form.email }}</span></small>
      {% else %}
        <br><small>you can now replace the email in the URL with <span class="code">/{{ form.hashid }}</span></small>
      {% endif %}
    </h2>
    {% if submissions %}
      <table class="submissions">
        <thead>
          <tr>
            <th>Submitted at</th>
            {% for f in fields %}
              <th>{{ f }}</th>
            {% endfor %}
          </tr>
        </thead>
        <tbody>
          {% for submission in submissions %}
            <tr>
              <td>{{ submission.submitted_at.strftime('%A, %B %d, %Y at %X') }}</td>
              {% for f in fields %}
                <td><pre>{{ submission.data[f] }}</pre></td>
              {% endfor %}
			<td><a href="{{ url_for('submission-deletion', hashid=form.hashid, submissionid=submission.id) }}" class="no-underline"><i class="fa fa-trash-o delete"></i></a></td>
            </tr>
          {% endfor %}
        </tbody>
      </table>
    {% else %}
      <h3>No submissions archived yet.</h3>
    {% endif %}
  </div>
</div>
<div class="container block">
  <div class="col-1-1 right">
    <a href="{{ url_for('form-submissions', hashid=form.hashid, format='csv') }}" target="_blank" class="button">Export as CSV</a>
    <a href="{{ url_for('form-submissions', hashid=form.hashid, format='json') }}" target="_blank" class="button">Export as JSON</a>
  </div>

{% endblock %}<commit_msg>Deletion of submissions<commit_after>{% extends 'users/dashboard.html' %}

{% block sectiontitle %}
  <h1>Submission History</h1>
{% endblock %}

{% block section %}

  <div class="col-1-1">
    <h2>
      Submissions for
      {% if not form.hash %}
        <span class="code">/{{ form.hashid }}</span>
      {% else %}
        <span class="code">/{{ form.email }}</span>
      {% endif %}
      at <span class="code">{{ form.host }}</span>
      {% if not form.hash %}
        <br><small>targeting <span class="code">{{ form.email }}</span></small>
      {% else %}
        <br><small>you can now replace the email in the URL with <span class="code">/{{ form.hashid }}</span></small>
      {% endif %}
    </h2>
    {% if submissions %}
      <table class="submissions">
        <thead>
          <tr>
            <th>Submitted at</th>
            {% for f in fields %}
              <th>{{ f }}</th>
            {% endfor %}
          </tr>
        </thead>
        <tbody>
          {% for submission in submissions %}
            <tr>
              <td>{{ submission.submitted_at.strftime('%A, %B %d, %Y at %X') }}</td>
              {% for f in fields %}
                <td><pre>{{ submission.data[f] }}</pre></td>
              {% endfor %}
                <td><form method="POST" action="{{ url_for('submission-deletion', hashid=form.hashid) }}"><input type="hidden" name="submissionid" value="{{submission.id}}"><button class="submit" class="no-border" style="border:none;padding:0;"><i class="fa fa-trash-o delete"></i></button></form></td>
<!--			<td><a href="{{ url_for('submission-deletion', hashid=form.hashid, submissionid=submission.id) }}" class="no-underline"><i class="fa fa-trash-o delete"></i></a></td>-->
            </tr>
          {% endfor %}
        </tbody>
      </table>
    {% else %}
      <h3>No submissions archived yet.</h3>
    {% endif %}
  </div>
</div>
<div class="container block">
  <div class="col-1-1 right">
    <a href="{{ url_for('form-submissions', hashid=form.hashid, format='csv') }}" target="_blank" class="button">Export as CSV</a>
    <a href="{{ url_for('form-submissions', hashid=form.hashid, format='json') }}" target="_blank" class="button">Export as JSON</a>
  </div>

{% endblock %}
{'fraction_non_alphanumeric': 0.21057692307692308, 'fraction_numerical': 0.005048076923076923, 'mean_word_length': 2.3829268292682926, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 129, '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': '662309', 'n_tokens_mistral': 1455, 'n_tokens_neox': 1328, 'n_words': 307}