<commit_before><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html><commit_msg>implement todo.html<commit_after>{% extends "base_ext.html" %}

{% load crispy_forms_tags %}
{% load el_pagination_tags %}
{% load lbworkflow_tags %}

{% block nav_sel_node %}id-nav-todo{% endblock %}

{% block right_side %}
  <section class="content-header">
    {% include "incs/messages.html" %}
    <div class="right-btns">
        <a href="{% url 'wf_start_wf' %}">
          Submit a new workflow
        </a>
    </div>
    <h1>
      Todo
    </h1>
  </section>
  <section class="content">
    <div class="box">
      {% if sform %}
      <div class="box-header">
        <div class="input-group">
          {% crispy sform %}
        </div>
      </div>
      {% endif %}
      <div class="box-body table-responsive no-padding">
        <form id="id-list-form" action="{% url 'wf_do_batch_trans' %}" method="post">
        <input type="hidden" name="transition-type" id="id-transition-type"/>
        {% csrf_token %}
        <table class="table table-hover">
          <tbody>
            <tr>
              <th>
                <input type="checkbox" onclick="$('[name=sel_pi]').prop( 'checked', $(this).prop('checked'));"/>
              </th>
              <th>NO.</th>
              <th>Process name</th>
              <th>Summary</th>
              <th>Created on</th>
              <th>Created by</th>
              <th>Current operator</th>
              <th>Activity</th>
            </tr>
            {% paginate object_list %}
            {% for o in object_list %}{% with pi=o.instance %}
              <tr>
                <td>
                  <input type="checkbox" name="sel_pi" value="{{ pi.pk }}"/>
                </td>
                <td><a href="{% url 'wf_detail' pi.pk %}">{{ pi.no }}</a></td>
                <td>{{ pi.process.name }}</td>
                <td>{{ pi.summary }}</td>
                <td>{{ pi.created_on|date:"Y-m-d H:i" }}</td>
                <td>{{ pi.created_by }}</td>
                <td>{{ pi.get_operators_display }}</td>
                <td>
                  <span class="label label-{{ pi|flow_status_css_class }}">
                    {{ pi.cur_activity.name }}
                  </span>
                </td>
              </tr>
            {% endwith %}{% endfor %}
          </tbody>
        </table>
        </form>
      </div>
      <div class="box-footer clearfix">
        {% show_pages %}
        <div style="float:right">
          <button class="btn btn-sm btn-default" onclick="$('#id-transition-type').val('agree');$('#id-list-form').submit()">Agree</button>
          <button class="btn btn-sm btn-danger" onclick="$('#id-transition-type').val('reject');$('#id-list-form').submit()">Reject</button>
        </div>
      </div>
    </div>
  </section>
{% endblock %}

{'fraction_non_alphanumeric': 0.19571230982019364, 'fraction_numerical': 0.001037344398340249, 'mean_word_length': 1.768421052631579, 'pattern_counts': {'":': 0, '<': 88, '<?xml version=': 0, '>': 88, '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': '3857657', 'n_tokens_mistral': 974, 'n_tokens_neox': 904, 'n_words': 176}