mirror of
https://github.com/grocy/grocy.git
synced 2025-04-28 17:23:56 +00:00
* Add QR-Code for API-Url/Key * Show only API-Keys for current user * Allow only admin users to create custom API-Keys * Use a managed package of qrcode-generator instead of a copy of the JS file * Reuse existing localization string (API key) * Center QR-Code in popups Co-authored-by: Bernd Bestel <bernd@berrnd.de>
45 lines
1.2 KiB
PHP
45 lines
1.2 KiB
PHP
@extends('layout.default')
|
|
|
|
@section('title', $__t('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($__t('fullcalendar_locale') && $__t('fullcalendar_locale') != 'x'))<script src="{{ $U('/node_modules', true) }}/fullcalendar/dist/locale/{{ $__t('fullcalendar_locale') }}.js?v={{ $version }}"></script>@endif
|
|
<script src="{{ $U('/node_modules/qrcode-generator/qrcode.js?v=', true) }}{{ $version }}"></script>
|
|
@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">
|
|
<div class="title-related-links">
|
|
<h2 class="title">@yield('title')</h2>
|
|
<div class="related-links">
|
|
<a id="ical-button"
|
|
class="btn btn-outline-dark"
|
|
href="#">
|
|
{{ $__t('Share/Integrate calendar (iCal)') }}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
|
|
<script>
|
|
var fullcalendarEventSources = {!! json_encode(array($fullcalendarEventSources)) !!}
|
|
</script>
|
|
|
|
<div class="row">
|
|
<div class="col">
|
|
<div id="calendar"></div>
|
|
</div>
|
|
</div>
|
|
@stop
|