You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
2.4 KiB
89 lines
2.4 KiB
{% extends 'admin_list.html' %}
|
|
|
|
{% load static %}
|
|
|
|
{% block scripts %}
|
|
|
|
<script src="{% static 'custom_js/event_switcher.js' %}"></script>
|
|
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="box span8">
|
|
<div class="box-header well">
|
|
<h2><i class="icon-arrow-down"></i>Фильтры</h2>
|
|
</div>
|
|
<div class="box-content">
|
|
<form>
|
|
{{ form }}
|
|
|
|
<button type="submit" class="btn">Найти</button>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box span8">
|
|
|
|
<div class="box-header well">
|
|
<h2><i class="icon-arrow-down"></i>Список вебинаров</h2>
|
|
</div>
|
|
<div class="box-content">
|
|
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>Название</th>
|
|
<th>Дата</th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in object_list %}
|
|
|
|
<tr>
|
|
<td>{{ item.name }}</td>
|
|
<td>{{ item.data_begin }}</td>
|
|
|
|
<td>
|
|
<a class="btn-small btn-warning off" style="{% if item.is_published %}{% else %}display: none;{% endif %}"
|
|
href="/admin/webinar/switch/{{ item.url }}/off">
|
|
Отключить
|
|
</a>
|
|
<a class="btn-small btn-success on" style="{% if item.is_published %}display: none;{% else %}{% endif %}"
|
|
href="/admin/webinar/switch/{{ item.url }}/on">
|
|
Включить
|
|
</a>
|
|
</td>
|
|
|
|
<td class="center sorting_1">
|
|
<a class="btn-small btn-info" href="/admin/webinar/change/{{ item.url|lower }}">
|
|
Изменить
|
|
</a>
|
|
</td>
|
|
|
|
<td>
|
|
<a class="btn-small btn-inverse" href="/admin/webinar/copy/{{ item.url|lower }}">
|
|
Копировать
|
|
</a>
|
|
</td>
|
|
|
|
<td>
|
|
<a class="btn-small btn-danger" href="/admin/webinar/delete/{{ item.url|lower }}">
|
|
Удалить
|
|
</a>
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<a class="btn btn-success" href="/admin/webinar/add"><i class="icon-plus-sign icon-white"></i> Добавить вебинар</a>
|
|
</div>
|
|
{# pagination #}
|
|
{% include 'c_admin/includes/admin_pagination.html' with page_obj=object_list %}
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|