pageHeader() public static method

Example: ~~~ echo Html::pageHeader( 'Example page header', 'Subtext for header' ); ~~~
See also: http://getbootstrap.com/components/#page-header
public static pageHeader ( string $title, string $subTitle = '', array $options = [] ) : string
$title string the title to be shown
$subTitle string the subtitle to be shown as subtext within the title
$options array HTML attributes/ options for the page header
return string
Beispiel #1
0
 */
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']);
?>
Beispiel #2
0
<?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>