add holiday calendar
This commit is contained in:
31
backend/modules/holiday/views/holiday/calendar.php
Normal file
31
backend/modules/holiday/views/holiday/calendar.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use yii\data\ActiveDataProvider;
|
||||
use yii\helpers\Html;
|
||||
use yii\jui\DatePicker;
|
||||
use yii\web\View;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $dataProvider yii\data\ActiveDataProvider */
|
||||
|
||||
$this->title = 'Отпуска';
|
||||
$this->params['breadcrumps'][] = $this->title;
|
||||
?>
|
||||
<?= Html::a('Назад', ['index'], ['class' => 'btn btn-success']) ?>
|
||||
<div class="holiday-calendar">
|
||||
<?= \edofre\fullcalendarscheduler\FullcalendarScheduler::widget([
|
||||
'header' => [
|
||||
'left' => 'today prev,next',
|
||||
'center' => 'title',
|
||||
],
|
||||
'clientOptions' => [
|
||||
'now' => date("Y/m/d"),
|
||||
'editable' => false,
|
||||
'aspectRatio' => 2.4,
|
||||
'scrollTime' => '00:00', // undo default 6am scrollTime
|
||||
'defaultView' => 'month',
|
||||
],
|
||||
'events' => $events,
|
||||
]);
|
||||
?>
|
||||
</div>
|
@ -14,6 +14,7 @@ $this->params['breadcrumps'][] = $this->title;
|
||||
<div class="holiday-index">
|
||||
<p>
|
||||
<?= Html::a('Добавить', ['create'], ['class' => 'btn btn-success']) ?>
|
||||
<?= Html::a('Календарь', ['calendar'], ['class' => 'btn btn-success']) ?>
|
||||
</p>
|
||||
<?= \yii\grid\GridView::widget([
|
||||
'dataProvider' => $dataProvider,
|
||||
|
Reference in New Issue
Block a user