Line | |
---|
1 | {% extends 'index.html' %}
|
---|
2 | {% block content %}
|
---|
3 |
|
---|
4 | <div class="container" style="margin-top: 20px;">
|
---|
5 | <a class="btn btn-primary" href="{% url 'fakturi_new' %}">Нов</a>
|
---|
6 | <table class="table table-striped table-hover">
|
---|
7 | <thead>
|
---|
8 | <tr>
|
---|
9 | <th scope="col">#</th>
|
---|
10 | <th scope="col">Тип</th>
|
---|
11 | <th scope="col">Клиент</th>
|
---|
12 | <th scope="col">Цена Вкупно</th>
|
---|
13 | </tr>
|
---|
14 | </thead>
|
---|
15 | <tbody class="table-group-divider">
|
---|
16 | {% for faktura in fakturi %}
|
---|
17 | <tr>
|
---|
18 | <th>{{ faktura.broj }}</th>
|
---|
19 | <td>{{ faktura.tipid }}</td>
|
---|
20 | <td>{{ faktura.klientid }}</td>
|
---|
21 | <td style="font-weight: bold;">{{ faktura.cena_vkupno }}</td>
|
---|
22 | <td><a href="{% url 'fakturi_edit' faktura.stavkaid %}" class="btn btn-primary">Измени</a></td>
|
---|
23 | <form method="POST" action="{% url 'fakturi_delete' faktura.stavkaid %}">
|
---|
24 | {% csrf_token %}
|
---|
25 | <td><button type="submit" class="btn btn-danger">X</button></td>
|
---|
26 | </form>
|
---|
27 | </tr>
|
---|
28 | {% endfor %}
|
---|
29 | </tbody>
|
---|
30 | </table>
|
---|
31 | </div>
|
---|
32 |
|
---|
33 | {% endblock %} |
---|
Note:
See
TracBrowser
for help on using the repository browser.