{% extends "pages/main.html" %}
{% load staticfiles %}
{% block title %} Violations {% endblock %}

{% block container %}

<h2>Control : {{ control.name }}</h2>
<a href="javascript: history.go(-1)">Back</a>

<div class="table-responsive">
    <table class="table table-striped">
        <thead>
          <tr>
            <th>id</th>
            <th>Time</th>
            <th>On view</th>
            <th>Details</th>
          </tr>
        </thead>
        <tbody>
         {% for entry in control.entries %}
          <tr>
            <td>{{ entry.id }}</td>
            <td>{{ entry.timestamp }}</td>
            <td>{{ entry.view }}</td>
            <td>{{ entry.details }}</td>
          </tr>
         {% endfor %}
        </tbody>
    </table>
</div>

{% endblock %}

