mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Added first version of calendar (closes #42)
This commit is contained in:
32
views/calendar.blade.php
Normal file
32
views/calendar.blade.php
Normal file
@@ -0,0 +1,32 @@
|
||||
@extends('layout.default')
|
||||
|
||||
@section('title', $L('Calendar'))
|
||||
@section('activeNav', 'calendar')
|
||||
@section('viewJsName', 'calendar')
|
||||
|
||||
@push('pageScripts')
|
||||
<script src="{{ $U('/node_modules/fullcalendar/dist/fullcalendar.min.js?v=', true) }}{{ $version }}"></script>
|
||||
@if(!empty($L('fullcalendar_locale')))<script src="{{ $U('/node_modules', true) }}/fullcalendar/dist/locale/{{ $L('fullcalendar_locale') }}.js?v={{ $version }}"></script>@endif
|
||||
@endpush
|
||||
|
||||
@push('pageStyles')
|
||||
<link href="{{ $U('/node_modules/fullcalendar/dist/fullcalendar.min.css?v=', true) }}{{ $version }}" rel="stylesheet">
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h1>@yield('title')</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var fullcalendarEventSources = {!! json_encode($fullcalendarEventSources) !!}
|
||||
</script>
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div id="calendar"></div>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
Reference in New Issue
Block a user