1 <div class="generic-page-wrapper">
3 {{include file="section_title.tpl" title=$title}}
5 {{* The link to create a new event *}}
6 <div id="new-event-link"><a onclick="addToModal('{{$new_event.0}}')" >{{$new_event.1}}</a></div>
8 {{* We create our own fullcallendar header (with title & calendar view *}}
10 <div id="fc-header-right" class="pull-right">
11 {{* The dropdown to change the callendar view *}}
12 <ul class="nav nav-pills">
13 <li class="dropdown pull-right">
14 <a class="btn btn-link btn-sm dropdown-toggle" type="button" id="event-calendar-views" data-toggle="dropdown" aria-expanded="true">
15 <i class="fa fa-angle-down"></i> {{$view}}
17 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="event-calendar-views">
19 <a onclick="changeView('changeView', 'month');$('#events-calendar').fullCalendar('option', {contentHeight: '', aspectRatio: 1});">{{$month}}</a>
22 <a onclick="changeView('changeView', 'agendaWeek');$('#events-calendar').fullCalendar('option', 'contentHeight', 'auto');">{{$week}}</a>
25 <a onclick="changeView('changeView', 'agendaDay');$('#events-calendar').fullCalendar('option', 'contentHeight', 'auto');">{{$day}}</a>
28 <a onclick="changeView('changeView', 'listMonth');$('#events-calendar').fullCalendar('option', 'contentHeight', 'auto');">{{$list}}</a>
35 {{* The buttons to change the month/weeks/days *}}
36 <div id="fc-fc-header-left" class="btn-group">
37 <button class="btn btn-eventnav" onclick="changeView('prev', false);" title="{{$previous.1}}"><i class="fa fa-angle-up" aria-hidden="true"></i></i></button>
38 <button class="btn btn-eventnav btn-separator" onclick="changeView('next', false);" title="{{$next.1}}"><i class="fa fa-angle-down" aria-hidden="true"></i></i></button>
39 <button class="btn btn-eventnav btn-separator" onclick="changeView('today', false);" title="{{$today}}"><i class="fa fa-bullseye"></i></button>
42 {{* The title (e.g. name of the mont/week/day) *}}
43 <div id="event-calendar-title"><h4 id="fc-title"></h4></div>
47 {{* This is the container where the fullCalendar is inserted through js *}}
48 <div id="events-calendar"></div>