示例#1
0
echo Html::encode($this->title);
?>
        </h5>

    </div>

    <div class="panel-body">

        <?php 
$form = ActiveForm::begin();
?>
        <?php 
echo $form->field($modelTranslation, 'title')->textInput(['maxlength' => true]);
?>
        <?php 
echo $form->field($modelTranslation, 'description')->widget(Summernote::className());
?>

        <div class="form-group">
            <?php 
echo Html::a(Yii::t('shop', 'Close'), Url::toRoute('product-availability/index'), ['class' => 'btn btn-xs btn-danger pull-right']);
?>
            <?php 
echo Html::submitButton(Yii::t('shop', 'Save'), ['class' => 'btn btn-xs btn-primary pull-right m-r-xs']);
?>
        </div>
        <?php 
ActiveForm::end();
?>

    </div>
示例#2
0
        <?php 
echo '<ul class="list-group ul-treefree ul-dropfree">';
?>
        <?php 
echo '<li class="list-group-item"><input type="radio" checked name="Category[parent_id]" value="" id="null"><label for="null">' . \Yii::t("shop", "Without parent") . '</label>';
?>
        <?php 
echo CategoryTranslation::treeRecoursion($categoriesTree, $category->parent_id, 'Category[parent_id]', $category_translation->category_id);
?>
        <?php 
echo '</ul>';
?>

        <!-- DESCRIPTION -->
        <?php 
echo $addForm->field($category_translation, 'description', ['inputOptions' => ['class' => 'form-control']])->widget(Summernote::className())->label(\Yii::t('shop', 'Description'));
?>

        <!-- SORT ORDER -->
        <?php 
echo $addForm->field($category, 'position', ['inputOptions' => ['class' => 'form-control']])->textInput(['type' => 'number', 'max' => $maxPosition, 'min' => $minPosition]);
?>

    </div>

    <input type="submit" class="btn btn-primary pull-right" value="<?php 
echo \Yii::t('shop', 'Save');
?>
">

<?php 
示例#3
0
    </div>


    <!--SALE-->
    <?php 
echo $form->field($product, 'sale', ['inputOptions' => ['class' => '']])->checkbox(['class' => '']);
?>

    <!--SHORT DESCRIPTION-->
    <?php 
echo $form->field($products_translation, 'description', ['inputOptions' => ['class' => 'form-control']])->widget(Summernote::className())->label(\Yii::t('shop', 'Short description'));
?>

    <!-- FULL TEXT -->
    <?php 
echo $form->field($products_translation, 'full_text', ['inputOptions' => ['class' => 'form-control']])->widget(Summernote::className())->label(\Yii::t('shop', 'Full description'));
?>

    <!-- SEO -->
    <h2><?php 
echo \Yii::t('shop', 'SEO options');
?>
</h2>
    <?php 
echo $form->field($products_translation, 'seoUrl', ['inputOptions' => ['class' => 'form-control']])->label('SEO URL');
?>
    <?php 
echo Html::button('Generate', ['class' => 'btn btn-primary pull-right', 'id' => 'generate-seo-url']);
?>

    <?php