Improve Event management
This commit is contained in:
@@ -14,30 +14,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<h2>Esemény</h2>
|
||||
<?= /** @var \common\models\Event $event */
|
||||
/** @noinspection PhpUnhandledExceptionInspection */
|
||||
\yii\widgets\DetailView::widget([
|
||||
'model' => $event,
|
||||
'attributes' => [
|
||||
'id',
|
||||
'start:datetime',
|
||||
'end:datetime',
|
||||
[
|
||||
'attribute' => 'room.name',
|
||||
'label' => $model->getAttributeLabel('id_room')
|
||||
],
|
||||
[
|
||||
'attribute' => 'trainer.name',
|
||||
'label' => $model->getAttributeLabel('id_trainer')
|
||||
],
|
||||
[
|
||||
'attribute' => 'eventType.name',
|
||||
'label' => $model->getAttributeLabel('id_event_type')
|
||||
],
|
||||
'seat_count',
|
||||
],
|
||||
]) ?>
|
||||
<?php echo $this->render('_view', ['model' => $event]); ?>
|
||||
|
||||
<?= $this->render('_form_register_card', [
|
||||
'model' => $model,
|
||||
|
||||
Reference in New Issue
Block a user