|
|
|
|
@ -20,14 +20,18 @@ |
|
|
|
|
{% block content_list %} |
|
|
|
|
<div class="m-article p-calendar"> |
|
|
|
|
{% with days=days events=events current_day=current_day %} |
|
|
|
|
{% include 'includes/accounts/calendar_table.html' %} |
|
|
|
|
{% include 'client/includes/accounts/calendar_table.html' %} |
|
|
|
|
{% endwith %} |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<div class="m-article cal-lists"> |
|
|
|
|
{% if events|length > 0 %} |
|
|
|
|
<div class="cl-sect"> |
|
|
|
|
<div class="cls-title">{{ days.15|date:"F"}}’{{ days.15|date:"y"}}</div> |
|
|
|
|
<div class="cls-title">{{ days.15|date:"F"}}’{{ days.15|date:"y"}} |
|
|
|
|
<div style="float:right;margin-right: 5px;" class="check-wrap"> |
|
|
|
|
<label class="check"><input type="checkbox" id="selectall"/></label> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{% include 'client/includes/accounts/calendar_list.html' with events=events %} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
@ -35,8 +39,8 @@ |
|
|
|
|
<div class="cla-title">{% trans 'Все / выделенные:' %}</div> |
|
|
|
|
<div class="cla-btns"> |
|
|
|
|
<a class="button" id="btn_delete" href="#">{% trans 'удалить из расписания' %}</a> |
|
|
|
|
|
|
|
|
|
<a id ='export' class="button icon-save" href="#">{% trans 'сохранить в xls' %}</a> |
|
|
|
|
<a id ='export' class="button icon-save" href="#">{% trans 'выбраные в xls' %}</a> |
|
|
|
|
<a id ='future' class="button icon-save" href="#">{% trans 'все предстоящие в xls' %}</a> |
|
|
|
|
|
|
|
|
|
<!--<a class="button icon-calendar-o" href="#">{% trans 'ЭКСПОРТИРОВАТЬ В' %} <span class="lc">iCal</span></a> |
|
|
|
|
|
|
|
|
|
@ -54,6 +58,16 @@ |
|
|
|
|
</div> |
|
|
|
|
<script> |
|
|
|
|
$(function(){ |
|
|
|
|
if(window.location.search === "?message=empty"){ |
|
|
|
|
alert("{% trans 'У вас нету событий в будущем!' %}"); |
|
|
|
|
window.location.search = "" |
|
|
|
|
} |
|
|
|
|
$('#selectall').click(function(event) { //on click |
|
|
|
|
$(".qwer").trigger("click"); |
|
|
|
|
}); |
|
|
|
|
$("#future").click(function(event) { |
|
|
|
|
window.location.href = "/profile/calendar/export/?" + "filter=future"; |
|
|
|
|
}); |
|
|
|
|
$("#export").click(function(event){ |
|
|
|
|
event.preventDefault(); |
|
|
|
|
var list = $('.qwer'); |
|
|
|
|
|