|
|
@ -1,7 +1,6 @@ |
|
|
{% extends 'base.html' %} |
|
|
{% extends 'base.html' %} |
|
|
{% block main %} |
|
|
{% block main %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ol class="breadcrumb"> |
|
|
<ol class="breadcrumb"> |
|
|
<li><span class="glyphicon glyphicon-home"></span></li> |
|
|
<li><span class="glyphicon glyphicon-home"></span></li> |
|
|
<li class="active">Тарифы</li> |
|
|
<li class="active">Тарифы</li> |
|
|
@ -38,12 +37,6 @@ |
|
|
</a> |
|
|
</a> |
|
|
{% if order_by == 'amount' %}<span class="glyphicon glyphicon-filter"></span>{% endif %} |
|
|
{% if order_by == 'amount' %}<span class="glyphicon glyphicon-filter"></span>{% endif %} |
|
|
</th> |
|
|
</th> |
|
|
<th> |
|
|
|
|
|
<a href="{% url 'tarifs:home' %}?order_by=time_of_action&dir={{ dir|default:"down" }}"> |
|
|
|
|
|
Время действия |
|
|
|
|
|
</a> |
|
|
|
|
|
{% if order_by == 'time_of_action' %}<span class="glyphicon glyphicon-filter"></span>{% endif %} |
|
|
|
|
|
</th> |
|
|
|
|
|
<th width="250">Название скрипта</th> |
|
|
<th width="250">Название скрипта</th> |
|
|
<th width="50">Do</th> |
|
|
<th width="50">Do</th> |
|
|
</tr> |
|
|
</tr> |
|
|
@ -61,7 +54,6 @@ |
|
|
<td>{{ tar.speedIn }}</td> |
|
|
<td>{{ tar.speedIn }}</td> |
|
|
<td>{{ tar.speedOut }}</td> |
|
|
<td>{{ tar.speedOut }}</td> |
|
|
<td>{{ tar.amount }} руб</td> |
|
|
<td>{{ tar.amount }} руб</td> |
|
|
<td>{{ tar.time_of_action }} дней</td> |
|
|
|
|
|
<td>{{ tar.get_calc_type_display }}</td> |
|
|
<td>{{ tar.get_calc_type_display }}</td> |
|
|
<td> |
|
|
<td> |
|
|
{% if perms.tariff_app.delete_tariff %} |
|
|
{% if perms.tariff_app.delete_tariff %} |
|
|
@ -73,7 +65,7 @@ |
|
|
</tr> |
|
|
</tr> |
|
|
{% empty %} |
|
|
{% empty %} |
|
|
<tr> |
|
|
<tr> |
|
|
<td colspan="7">Ещё нет созданных тарифов. |
|
|
|
|
|
|
|
|
<td colspan="6">Ещё нет созданных тарифов. |
|
|
{% if perms.tariff_app.add_tariff %} |
|
|
{% if perms.tariff_app.add_tariff %} |
|
|
<a href="{% url 'tarifs:add' %}" class="lgtbx">Создать</a> |
|
|
<a href="{% url 'tarifs:add' %}" class="lgtbx">Создать</a> |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
@ -85,7 +77,7 @@ |
|
|
{% if perms.tariff_app.add_tariff %} |
|
|
{% if perms.tariff_app.add_tariff %} |
|
|
<tfoot> |
|
|
<tfoot> |
|
|
<tr> |
|
|
<tr> |
|
|
<td colspan="7"> |
|
|
|
|
|
|
|
|
<td colspan="6"> |
|
|
<a href="{% url 'tarifs:add' %}" class="btn btn-sm btn-success"> |
|
|
<a href="{% url 'tarifs:add' %}" class="btn btn-sm btn-success"> |
|
|
<span class="glyphicon glyphicon-plus"></span> Добавить |
|
|
<span class="glyphicon glyphicon-plus"></span> Добавить |
|
|
</a> |
|
|
</a> |
|
|
|