Beispiel #1
0
<?php

use backend\components\widgets\Web;
?>


<div class="page-content">
    <!-- /section:settings.box -->
    <div class="page-content-area">
        <div class="row">
            <div class="col-xs-12 category-create">
                <div class="form-group field-article-content">
                    <div class="col-sm-12">
                        <?php 
echo Web::widget(['options' => ['formData' => ['res_name' => 'post', 'db' => true]]]);
?>
                    <div class="help-block"></div>
                    </div>
                </div>
                <div class="hr hr-18 dotted hr-double"></div>
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.page-content-area -->
</div>

<?php 
echo \cboy\ueditor\UEditor::widget(['name' => 'abc', 'res' => 'post']);
Beispiel #2
0
echo $form->field($model, 'category_id')->hiddenInput(['value' => Yii::$app->getRequest()->get('category_id')])->label(false);
?>

    <?php 
echo $form->field($model, 'price')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'intro')->textarea(['rows' => 6]);
?>

    <div class="form-group field-goods-cover">
        <label class="control-label col-sm-2" for="goods-cover">图片</label>
        <div class="col-sm-10">
        <?php 
echo Web::widget(['options' => ['formData' => ['res_name' => 'shop_goods', 'db' => true]]]);
?>
        <div class="help-block"></div>
        </div>
    </div>

    <?php 
echo $form->field($model, 'unit')->textInput(['maxlength' => true]);
?>

    <?php 
if ($attr) {
    ?>
        <?php 
    $av_model = new AvRel();
    ?>