*/ use yii\widgets\ActiveForm; use kartik\helpers\Html; /** * @var $this \yii\web\View * @var $model \frontend\models\vks\Request */ $this->title = "Отмена заявки"; $this->params['breadcrumbs'][] = ['label' => 'Заявки', 'url' => \yii\helpers\Url::to(['user/requests'])]; $this->params['breadcrumbs'][] = $this->title; ?> <div> <?php echo Html::pageHeader($this->title); ?> <p>Для отмены заявки, необходимо указать причину:</p> <?php $form = ActiveForm::begin([]); ?> <?php echo $form->field($model, 'cancellationReason')->textarea(); ?> <?php echo Html::submitButton('Отменить', ['class' => 'btn btn-warning']); ?>
<?php /** * teleport * Created: 16.10.15 10:32 * @copyright Copyright (c) 2015 OSKR NIAEP */ use kartik\helpers\Html; /** * @var $this \yii\web\View * @var $model \frontend\models\vks\Request */ $this->title = "Бронирование помещений"; ?> <div class="vks-request-create"> <?php echo Html::pageHeader($this->title, 'обновлена ' . Yii::$app->formatter->asDate($model->updatedAt->sec)); ?> <p class="lead">Создана <?php echo Yii::$app->formatter->asDate($model->createdAt->sec); ?> </p> <?php echo $this->render('_form', ['model' => $model, 'submitText' => 'Сохранить']); ?> </div>