lavorato su calendario
This commit is contained in:
@@ -5,35 +5,21 @@
|
||||
@endsection
|
||||
@section('content')
|
||||
<div id="calendar"></div>
|
||||
<div class="modal fade " id="event" tabindex="-1" role="dialog"
|
||||
aria-labelledby="myModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog draggable" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Nuovo Appuntamento</h4>
|
||||
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
Start <input type="text" id="start" name="start">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@section('js')
|
||||
<script>
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var calendarEl = document.getElementById('calendar');
|
||||
|
||||
var calendar = new FullCalendar.Calendar(calendarEl, {
|
||||
timeZone: 'UTC',
|
||||
initialView: 'dayGridMonth',
|
||||
events: '/api/demo-feeds/events.json',
|
||||
editable: true,
|
||||
selectable: true,
|
||||
// plugins: [dayGridPlugin],
|
||||
// initialView: 'dayGridWeek',
|
||||
headerToolbar: {
|
||||
left: 'prev,next',
|
||||
center: 'title',
|
||||
right: 'dayGridMonth,timeGridWeek,timeGridDay' // user can switch between the two
|
||||
},
|
||||
dateClick: function(info) {
|
||||
alert('Clicked on: ' + info.dateStr);
|
||||
}
|
||||
});
|
||||
calendar.setOption('locale', 'it');
|
||||
calendar.render();
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<script src="/js/app/calendario.js"></script>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user