58 lines
1.5 KiB
XML
58 lines
1.5 KiB
XML
<metal:block use-macro="main_template">
|
|
<div metal:fill-slot="content">
|
|
<div class="container">
|
|
|
|
<div class="form-group">
|
|
<div class="row">
|
|
<div class="col-md-2">
|
|
<a class="btn btn-primary" role="button" href="/">
|
|
<span class="glyphicon glyphicon-chevron-left"></span> Retour</a>
|
|
</div>
|
|
<div class="col-md-5">
|
|
<p>
|
|
<span class="label" style="background-color:LightYellow; color:black;">RDV Peinture</span>
|
|
<span class="label" style="background-color:Gold; color:black;">RDV Menuiserie</span>
|
|
<span class="label" style="background-color:LightGreen; color:black;">RDV Plomberie</span>
|
|
<span class="label" style="background-color:LightBlue; color:black;">RDV Plomberie</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="container">
|
|
<div id="calendar"></div>
|
|
</div>
|
|
<br />
|
|
<br />
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
$('#calendar').fullCalendar({
|
|
schedulerLicenseKey: 'GPL-My-Project-Is-Open-Source',
|
|
defaultView: 'timelineDay',
|
|
minTime: "07:00:00",
|
|
maxTime: "21:00:00",
|
|
height: 'auto',
|
|
locale: 'fr',
|
|
header: {
|
|
left: '',
|
|
center: 'prev title next',
|
|
right: 'timelineDay'
|
|
},
|
|
resourceAreaWidth: '20%',
|
|
resourceLabelText: 'Intervenants',
|
|
resources: ${fullcalendar_ressources},
|
|
events:${fullcalendar_events},
|
|
eventRender: function(event, element){
|
|
element.find('.fc-title').append("<br/>" + event.description);
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
|
|
</div><!-- content -->
|
|
</metal:block>
|
|
|
|
|