1
0
Fork 0
friendica_2020-09-1_sharedH.../view/theme/frio/templates/events_js.tpl

50 lines
2.7 KiB
Smarty
Raw Normal View History

<div class="generic-page-wrapper">
{{$tabs}}
{{include file="section_title.tpl" title=$title}}
2016-06-17 14:27:33 +02:00
{{* The link to create a new event *}}
2017-03-18 01:27:17 +01:00
<div id="new-event-link"><button type="button" class="btn-link" onclick="addToModal('{{$new_event.0}}')" >{{$new_event.1}}</button></div>
2016-06-17 14:27:33 +02:00
{{* We create our own fullcallendar header (with title & calendar view *}}
<div id="fc-header">
<div id="fc-header-right" class="pull-right">
2016-06-17 14:27:33 +02:00
{{* The dropdown to change the callendar view *}}
<ul class="nav nav-pills">
<li class="dropdown pull-right">
2017-10-20 15:21:42 +02:00
<button class="btn btn-link btn-sm dropdown-toggle" type="button" id="event-calendar-views" data-toggle="dropdown" aria-expanded="false">
<i class="fa fa-angle-down" aria-hidden="true"></i> {{$view}}
</button>
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="event-calendar-views">
2017-10-20 15:21:42 +02: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>
</li>
2017-10-20 15:21:42 +02:00
<li role="presentation">
<button role="menuitem" type="button" class="btn-link" onclick="changeView('changeView', 'agendaWeek');$('#events-calendar').fullCalendar('option', 'contentHeight', 'auto');">{{$week}}</button>
</li>
2017-10-20 15:21:42 +02:00
<li role="presentation">
<button role="menuitem" type="button" class="btn-link" onclick="changeView('changeView', 'agendaDay');$('#events-calendar').fullCalendar('option', 'contentHeight', 'auto');">{{$day}}</button>
</li>
2017-10-20 15:21:42 +02:00
<li role="presentation">
<button role="menuitem" type="button" class="btn-link" onclick="changeView('changeView', 'listMonth');$('#events-calendar').fullCalendar('option', 'contentHeight', 'auto');">{{$list}}</button>
</li>
</ul>
</li>
</ul>
</div>
2016-06-17 14:27:33 +02:00
{{* The buttons to change the month/weeks/days *}}
<div id="fc-fc-header-left" class="btn-group">
2017-10-20 15:21:42 +02: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>
</div>
2016-06-17 14:27:33 +02:00
{{* The title (e.g. name of the mont/week/day) *}}
<div id="event-calendar-title"><h4 id="fc-title"></h4></div>
</div>
2016-06-17 14:27:33 +02:00
{{* This is the container where the fullCalendar is inserted through js *}}
<div id="events-calendar"></div>
</div>