-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change calendar list view (both creator's and shared);
Change calendar date view.
- Loading branch information
Showing
8 changed files
with
119 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
/*** | ||
* @var $model app\models\Calendar | ||
*/ | ||
?> | ||
<div style='padding: 40px; margin: 10px; display: inline-block; background: #f5f5f5; cursor: pointer;' | ||
onclick='location.assign("/calendar/<?= $model->id ?>")'> | ||
<?= $model->dateEvent ?> (<?= $model->creator->username ?>) | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
use yii\helpers\Html; | ||
use yii\widgets\ListView; | ||
|
||
/* @var $this yii\web\View */ | ||
/* @var $searchModel app\models\search\CalendarSearch */ | ||
/* @var $dataProvider yii\data\ActiveDataProvider */ | ||
|
||
$this->title = Yii::t('app', 'Calendars'); | ||
//$this->params['breadcrumbs'][] = $this->title; | ||
?> | ||
<div class="calendar-index"> | ||
<h1><?= Html::encode($this->title) ?>: my events</h1> | ||
|
||
<p> | ||
<?= Html::a(Yii::t('app', 'Add event'), ['create'], ['class' => 'btn btn-success']) ?> | ||
</p> | ||
<?= ListView::widget([ | ||
'dataProvider' => $dataProvider, | ||
'itemOptions' => ['class' => 'item'], | ||
'itemView' => function ($model, $key, $index, $widget) { | ||
return $this->render('_calendarTemplate', [ | ||
'model' => $model, | ||
]); | ||
}, | ||
]) ?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
use yii\helpers\Html; | ||
use yii\widgets\ListView; | ||
|
||
/* @var $this yii\web\View */ | ||
/* @var $searchModel app\models\search\CalendarSearch */ | ||
/* @var $dataProvider yii\data\ActiveDataProvider */ | ||
|
||
$this->title = Yii::t('app', 'Calendars'); | ||
//$this->params['breadcrumbs'][] = $this->title; | ||
?> | ||
<div class="calendar-index"> | ||
<h1><?= Html::encode($this->title) ?>: shared events</h1> | ||
|
||
<p> | ||
<?= Html::a(Yii::t('app', 'Add event'), ['create'], ['class' => 'btn btn-success']) ?> | ||
</p> | ||
<?= ListView::widget([ | ||
'dataProvider' => $dataProvider, | ||
'itemOptions' => ['class' => 'item'], | ||
'itemView' => function ($model, $key, $index, $widget) { | ||
return $this->render('_calendarTemplate', [ | ||
'model' => $model, | ||
]); | ||
}, | ||
]) ?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters