47 lines
1.3 KiB
PHP
47 lines
1.3 KiB
PHP
<?php
|
|
|
|
use yii\helpers\Html;
|
|
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $model common\models\CardEventRegistrationForm */
|
|
|
|
$this->title = Yii::t('event-registration', 'Create Event Registration');
|
|
$this->params['breadcrumbs'][] = ['label' => Yii::t('event-registration', 'Event Registrations'), 'url' => ['index']];
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
?>
|
|
<div class="event-registration-create">
|
|
|
|
<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',
|
|
],
|
|
]) ?>
|
|
|
|
<?= $this->render('_form_register_card', [
|
|
'model' => $model,
|
|
]) ?>
|
|
|
|
</div>
|