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

{% block content %}
<div class="wrapper">
  <div class="main-dashboard container">
    <div class="row">
      <div class="col-md-12">

        <div class="center-page">
          <div class="wrapper">
            <div class="container">
              <nav class="pull-left">
                <ul class="list-unstyled list-inline">
                  <li>
                    <a href="{{ url_for('module_employee.add') }}">
                      <i class="material-icons">add_circle</i> Add Employee
                      <div class="ripple-container"></div>
                    </a>
                  </li>
                </ul>
              </nav>
            </div>
          </div>

          <table class="table table-bordered">
            <thead>
              <tr>
                <th>Username</th>
                <th>Fullname</th>
                <th>Nip</th>
                <th>Edit</th>
              </tr>
            </thead>
            <tbody>

              {% for employee in data %}
                <tr>
                  <td>{{ employee.username }}</td>
                  <td>{{ employee.fullname }}</td>
                  <td>{{ employee.nip }}</td>
                  <td><a href="{{ url_for('module_employee.edit', employee_id=employee.id) }}">Edit</a>
                </tr>
              {% endfor %}
          </table>
        </div>

    </div>
  </div>
</div>
{% endblock %}
<commit_msg>Add modal dialog for deleting confirmation<commit_after>{% extends "base.html" %}

{% block content %}
<div class="wrapper">
  <div class="main-dashboard container">
    <div class="row">
      <div class="col-md-12">

        <div class="center-page">
          <div class="wrapper">
            <div class="container">
              <nav class="pull-left">
                <ul class="list-unstyled list-inline">
                  <li>
                    <a href="{{ url_for('module_employee.add') }}">
                      <i class="material-icons">add_circle</i> Add Employee
                      <div class="ripple-container"></div>
                    </a>
                  </li>
                </ul>
              </nav>
            </div>
          </div>

          <table class="table table-bordered">
            <thead>
              <tr>
                <th>Username</th>
                <th>Fullname</th>
                <th>Nip</th>
                <th>Edit</th>
              </tr>
            </thead>
            <tbody>

              {% for employee in data %}
                <tr>
                  <td>{{ employee.username }}</td>
                  <td>{{ employee.fullname }}</td>
                  <td>{{ employee.nip }}</td>
                  <td><a href="{{ url_for('module_employee.edit', employee_id=employee.id) }}">Edit</a> | <a href="#deleteConfirmationModal" class="delete-link" data-username="{{ employee.username }}" data-link="{{ url_for('module_employee.delete', employee_id=employee.id) }}" data-toggle="modal" data-target="#deleteConfirmationModal">Delete</a></td>
                </tr>
              {% endfor %}
          </table>
        </div>
      </div>
    </div>
  </div>
</div>

<!-- Delete employee confirmation Modal -->
<div class="modal fade" id="deleteConfirmationModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">Are you sure you want to delete?</h4>
      </div>
      <div class="modal-body">
        You will delete <b>an employee</b>. This is not recoverable.
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default btn-simple" data-dismiss="modal">Cancel</button>
        <a href="#" id="delete-link" class="delete-id btn btn-info btn-danger">Delete</a>
      </div>
    </div>
  </div>
</div>
{% endblock %}

{'fraction_non_alphanumeric': 0.17008146136756355, 'fraction_numerical': 0.0017279684028634905, 'mean_word_length': 1.5743329097839898, 'pattern_counts': {'":': 0, '<': 132, '<?xml version=': 0, '>': 132, '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': '3067737', 'n_tokens_mistral': 1220, 'n_tokens_neox': 1129, 'n_words': 240}