|
|
|
@ -21,21 +21,21 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="box-content"> |
|
|
|
<div class="box-content"> |
|
|
|
<table class="table table-hover"> |
|
|
|
<table class="table table-hover"> |
|
|
|
<thead> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<th>id</th> |
|
|
|
<th>id</th> |
|
|
|
<th>Страна</th> |
|
|
|
<th>Страна</th> |
|
|
|
<th>Столица</th> |
|
|
|
<th>Столица</th> |
|
|
|
<th> </th> |
|
|
|
<th> </th> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<tbody> |
|
|
|
{% for item in object_list %} |
|
|
|
{% for item in object_list %} |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td>{{ item.id }}</td> |
|
|
|
<td>{{ item.id }}</td> |
|
|
|
<td>{{ item.name }}</td> |
|
|
|
<td>{{ item.name }}</td> |
|
|
|
<td>{% ifnotequal item.capital None %}{{ item.capital }} {% endifnotequal %}</td> |
|
|
|
<td>{{ item.capital|default_if_none:'' }}</td> |
|
|
|
<td class="center sorting_1"> |
|
|
|
<td class="center sorting_1"> |
|
|
|
<a class="btn btn-info" href="/admin/country/change/{{ item.url|lower }}"> |
|
|
|
<a class="btn btn-info" href="/admin/country/change/{{ item.url|lower }}"> |
|
|
|
<i class="icon-edit icon-white"></i> Изменить |
|
|
|
<i class="icon-edit icon-white"></i> Изменить |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
@ -44,10 +44,10 @@ |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</table> |
|
|
|
<a class="btn btn-success" href="/admin/country/add"><i class="icon-plus-sign icon-white"></i> Добавить страну</a> |
|
|
|
<a class="btn btn-success" href="/admin/country/add"><i class="icon-plus-sign icon-white"></i> Добавить страну</a> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|