+{% extends 'qcg/base.html' %}
+
+{% block container %}
+ <h1 class="page-header">{% block title %}Szablony zadania{% endblock %}</h1>
+
+ {% if templates %}
+ <table class="table table-hover">
+ <thead>
+ <tr>
+ <th class="text-right" style="width: 40px">#</th>
+ <th>Nazwa</th>
+ <th style="width: 200px">Data utworzenia</th>
+ <th style="width: 200px">Data modyfikacji</th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for template in templates %}
+ <tr>
+ <td class="text-right">{{ forloop.counter }}</td>
+ <td><a href="#">{{ template.name }}</a></td>
+ <td>{{ template.created }}</td>
+ <td>{{ template.updated }}</td>
+ <td class="text-right">
+ <button class="btn btn-xs btn-danger" title="Usuń">
+ <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
+ </button>
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ {% else %}
+ <div id="no-items" class="alert alert-info">
+ <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
+ Brak zapisanych szablonów zadań
+ </div>
+ {% endif %}
+
+{% endblock %}