7bdeea185204af1649d23c08f92cbe12bf0f18cd
[qcg-portal.git] / qcg / templates / qcg / job_templates.html
1 {% extends 'qcg/base.html' %}
2
3 {% block container %}
4     <h1 class="page-header">{% block title %}Szablony zadania{% endblock %}</h1>
5
6     {% if templates %}
7         <table class="table table-hover">
8             <thead>
9                 <tr>
10                     <th class="text-right" style="width: 40px">#</th>
11                     <th>Nazwa</th>
12                     <th style="width: 200px">Data utworzenia</th>
13                     <th style="width: 200px">Data modyfikacji</th>
14                     <th></th>
15                 </tr>
16             </thead>
17             <tbody>
18                 {% for template in templates %}
19                     <tr>
20                         <td class="text-right">{{ forloop.counter }}</td>
21                         <td><a href="#">{{ template.name }}</a></td>
22                         <td>{{ template.created }}</td>
23                         <td>{{ template.updated }}</td>
24                         <td class="text-right">
25                             <button class="btn btn-xs btn-danger" title="Usuń">
26                                 <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
27                             </button>
28                         </td>
29                     </tr>
30                 {% endfor %}
31             </tbody>
32         </table>
33     {% else %}
34         <div id="no-items" class="alert alert-info">
35             <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
36             Brak zapisanych szablonów zadań
37         </div>
38     {% endif %}
39
40 {% endblock %}