2024-08-24 18:23:27 +00:00
|
|
|
{{*
|
|
|
|
* Copyright (C) 2010-2024, the Friendica project
|
|
|
|
* SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
*}}
|
2016-06-12 16:23:10 +00:00
|
|
|
<div class="generic-page-wrapper">
|
2018-12-14 03:35:51 +00:00
|
|
|
{{$tabs nofilter}}
|
2018-07-21 11:31:05 +00:00
|
|
|
{{include file="section_title.tpl" title=$title pullright=1}}
|
2016-06-17 08:33:12 +00:00
|
|
|
|
2016-06-17 12:27:33 +00:00
|
|
|
{{* The link to create a new event *}}
|
2018-09-06 12:40:34 +00:00
|
|
|
{{if $new_event.0}}
|
2018-07-21 11:31:05 +00:00
|
|
|
<div class="pull-right" id="new-event-link">
|
2018-12-14 03:28:12 +00:00
|
|
|
<button type="button" class="btn-link page-action faded-icon" onclick="addToModal('{{$new_event.0}}')" title="{{$new_event.1}}" data-toggle="tooltip">
|
2018-08-11 11:41:55 +00:00
|
|
|
<i class="fa fa-plus"></i>
|
2018-07-21 11:31:05 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
2018-09-06 12:40:34 +00:00
|
|
|
{{/if}}
|
2016-06-12 16:23:10 +00:00
|
|
|
|
2023-03-22 03:17:00 +00:00
|
|
|
{{* We create our own fullcalendar header (with title & calendar view *}}
|
2018-07-21 11:31:05 +00:00
|
|
|
<div id="fc-header" class="clear">
|
2016-06-12 16:23:10 +00:00
|
|
|
<div id="fc-header-right" class="pull-right">
|
2023-03-22 03:17:00 +00:00
|
|
|
{{* The dropdown to change the calendar view *}}
|
2016-06-12 16:23:10 +00:00
|
|
|
<ul class="nav nav-pills">
|
|
|
|
<li class="dropdown pull-right">
|
2023-01-18 17:08:49 +00:00
|
|
|
<button class="btn btn-link dropdown-toggle" type="button" id="event-calendar-views" data-toggle="dropdown" aria-expanded="false">
|
2017-10-20 13:21:42 +00:00
|
|
|
<i class="fa fa-angle-down" aria-hidden="true"></i> {{$view}}
|
2017-03-15 03:47:02 +00:00
|
|
|
</button>
|
2016-06-12 16:23:10 +00:00
|
|
|
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="event-calendar-views">
|
2017-10-20 13:21:42 +00:00
|
|
|
<li role="presentation">
|
|
|
|
<button role="menuitem" type="button" class="btn-link" onclick="changeView('changeView', 'month');$('#events-calendar').fullCalendar('option', {contentHeight: '', aspectRatio: 1});">{{$month}}</button>
|
2016-06-12 16:23:10 +00:00
|
|
|
</li>
|
2017-10-20 13:21:42 +00:00
|
|
|
<li role="presentation">
|
|
|
|
<button role="menuitem" type="button" class="btn-link" onclick="changeView('changeView', 'agendaWeek');$('#events-calendar').fullCalendar('option', 'contentHeight', 'auto');">{{$week}}</button>
|
2016-06-12 16:23:10 +00:00
|
|
|
</li>
|
2017-10-20 13:21:42 +00:00
|
|
|
<li role="presentation">
|
|
|
|
<button role="menuitem" type="button" class="btn-link" onclick="changeView('changeView', 'agendaDay');$('#events-calendar').fullCalendar('option', 'contentHeight', 'auto');">{{$day}}</button>
|
2016-10-16 14:04:53 +00:00
|
|
|
</li>
|
2017-10-20 13:21:42 +00:00
|
|
|
<li role="presentation">
|
|
|
|
<button role="menuitem" type="button" class="btn-link" onclick="changeView('changeView', 'listMonth');$('#events-calendar').fullCalendar('option', 'contentHeight', 'auto');">{{$list}}</button>
|
2016-06-12 16:23:10 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2016-06-17 12:27:33 +00:00
|
|
|
|
|
|
|
{{* The buttons to change the month/weeks/days *}}
|
2016-06-12 16:23:10 +00:00
|
|
|
<div id="fc-fc-header-left" class="btn-group">
|
2018-12-14 03:28:12 +00:00
|
|
|
<button class="btn btn-eventnav" onclick="changeView('prev', false);" title="{{$previous.1}}"><i class="fa fa-angle-up" aria-hidden="true"></i></button>
|
|
|
|
<button class="btn btn-eventnav btn-separator" onclick="changeView('next', false);" title="{{$next.1}}"><i class="fa fa-angle-down" aria-hidden="true"></i></button>
|
|
|
|
<button class="btn btn-eventnav btn-separator" onclick="changeView('today', false);" title="{{$today}}"><i class="fa fa-bullseye" aria-hidden="true"></i></button>
|
2016-06-12 16:23:10 +00:00
|
|
|
</div>
|
|
|
|
|
2016-06-17 12:27:33 +00:00
|
|
|
{{* The title (e.g. name of the mont/week/day) *}}
|
2016-06-12 16:23:10 +00:00
|
|
|
<div id="event-calendar-title"><h4 id="fc-title"></h4></div>
|
|
|
|
|
|
|
|
</div>
|
2016-06-17 12:27:33 +00:00
|
|
|
|
|
|
|
{{* This is the container where the fullCalendar is inserted through js *}}
|
2016-06-12 16:23:10 +00:00
|
|
|
<div id="events-calendar"></div>
|
|
|
|
</div>
|