Exemple #1
0
?>

<div class="box box-primary<? if(!$showSearchForm) { ?> collapsed-box<? } ?>">
    <div class="box-header with-border">
        <h3 class="box-title"><?php 
echo Yii::t('b/radiata/forms', 'Detailed search form');
?>
</h3>

        <div class="box-tools pull-right">
            <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i></button>
        </div>
    </div>

    <?php 
$form = ActiveForm::begin(['action' => ['index'], 'method' => 'get', 'layout' => 'horizontal', 'fieldClass' => RadiataField::className()]);
?>

    <div class="box-body">
        <?php 
echo $form->field($model, 'title');
?>

        <?php 
echo $form->field($model, 'parent_id')->dropDownList($modelMenu->getItemsForLinkedField(), ['encodeSpaces' => true]);
?>

        <?php 
echo $form->field($model, 'status')->dropDownList($model->getStatusesList(), ['prompt' => Yii::t('b/radiata/forms', 'Choose value')]);
?>
    </div>
Exemple #2
0
use yii\bootstrap\ActiveForm;
use yii\bootstrap\Modal;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\web\JsExpression;
use yii\web\View;
/* @var $this yii\web\View */
/* @var $model common\modules\news\models\News */
/* @var $modelCategory common\modules\news\models\NewsCategory */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="news-form">

    <?php 
$form = ActiveForm::begin(['id' => 'news-form', 'layout' => 'horizontal', 'fieldClass' => RadiataField::className(), 'options' => ['enctype' => 'multipart/form-data']]);
?>

    <?php 
echo FieldHelper::showErrors($model);
?>

    <div class="nav-tabs-custom">
        <!-- Tabs within a box -->
        <ul class="nav nav-tabs">
            <li class="active"><a href="#main-tab" data-toggle="tab"><?php 
echo Yii::t('b/news', 'Main tab');
?>
</a></li>
            <li><a href="#tags-tab" data-toggle="tab"><?php 
echo Yii::t('b/news', 'Tags tab');
Exemple #3
0
<?php

use backend\forms\helpers\FieldHelper;
use backend\forms\RadiataField;
use backend\forms\widgets\LangInputWidget;
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\modules\news\models\NewsCategory */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="news-category-form">

    <?php 
$form = ActiveForm::begin(['layout' => 'horizontal', 'fieldClass' => RadiataField::className()]);
?>

    <?php 
echo FieldHelper::showErrors($model);
?>

    <?php 
echo $form->field($model, 'title')->widget(LangInputWidget::classname(), ['options' => ['type' => 'activeTextInput']]);
?>

    <?php 
echo $form->field($model, 'slug')->widget(LangInputWidget::classname(), ['options' => ['type' => 'activeTextInput']]);
?>

    <?php