Пример #1
0
echo $form->field($model, 'language')->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'country')->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'url')->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'name_ascii')->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'status')->widget(\oakcms\bootstrapswitch\Switcher::className());
?>

    <?php 
ActiveForm::end();
?>

</div>
<script>
    function sendFormReload(elm) {
        $(elm).append($("<input type='hidden' name='submit-type' value='continue'>"));
        $(elm).submit();
        return false;
    }
</script>
Пример #2
0
?>
    <?php 
echo isset($parent) ? $form->field($model, 'parent')->dropDownList(ArrayHelper::map(ContentCategory::find()->andFilterWhere(['<>', 'id', $model->id])->all(), 'id', 'title'), ['prompt' => '']) : '';
?>

    <?php 
if ($settings['categoryThumb']['value']) {
    ?>

    <?php 
}
?>

    <?php 
echo $form->field($model, 'meta_title')->textInput();
?>
    <?php 
echo $form->field($model, 'meta_keywords')->textInput();
?>
    <?php 
echo $form->field($model, 'meta_description')->textInput();
\app\modules\admin\widgets\ActiveForm::end();
?>
<script>
    function sendFormReload(elm) {
        $(elm).append($("<input type='hidden' name='submit-type' value='continue'>"));
        $(elm).submit();
        return false;
    }
</script>