Exemplo n.º 1
0
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use webvimark\behaviors\multilanguage\input_widget;
$form = ActiveForm::begin(['enableClientValidation' => true, 'options' => ['enctype' => 'multipart/form-data', 'class' => 'model-form']]);
if ($this->context->module->settings['enableTitle']) {
    ?>
    <?php 
    echo $form->field($model, 'title')->widget(\webvimark\behaviors\multilanguage\input_widget\MultiLanguageActiveField::className());
}
if ($this->context->module->settings['enableText']) {
    ?>
    <?php 
    echo $form->field($model, 'text')->widget(\webvimark\behaviors\multilanguage\input_widget\MultiLanguageActiveField::className());
    ?>


<?php 
}
?>


<?php 
if ($model->image) {
    ?>
    <img src="<?php 
    echo $model->image;
    ?>
" style="width: 200px">
<?php 
Exemplo n.º 2
0
        ?>
</a>
    <?php 
    }
    ?>
    <?php 
    echo $form->field($model, 'image')->fileInput();
}
?>

<?php 
echo $dataForm;
if ($settings['itemDescription']) {
    ?>
    <?php 
    echo $form->field($model, 'description')->widget(Redactor::className(), ['options' => ['minHeight' => 400, 'imageUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'customers'], true), 'fileUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'customers'], true), 'plugins' => ['fullscreen']]])->widget(\webvimark\behaviors\multilanguage\input_widget\MultiLanguageActiveField::className());
}
?>

<?php 
//= $form->field($model, 'available')
//= $form->field($model, 'price')
?>




<?php 
echo $form->field($model, 'time')->widget(DateTimePicker::className());
?>
Exemplo n.º 3
0
if ($model->type != ContentPage::TYPE_EXTERNAL_LINK) {
    ?>

			<div class="tab-pane" id="page-content-seo">


				<?php 
    echo $form->field($model, 'meta_title')->textInput(['maxlength' => 255])->widget(MultiLanguageActiveField::className());
    ?>

				<?php 
    echo $form->field($model, 'meta_keywords')->textInput(['maxlength' => 255])->widget(MultiLanguageActiveField::className());
    ?>

				<?php 
    echo $form->field($model, 'meta_description')->textarea(['maxlength' => 255, 'rows' => 3])->widget(MultiLanguageActiveField::className(), ['inputType' => 'textArea', 'inputOptions' => ['rows' => 3, 'class' => 'form-control']]);
    ?>

			</div>
		<?php 
}
?>



		<div class="tab-pane" id="page-content-additional">

			<div class="row">
				<div class="col-sm-6">

					<?php 
Exemplo n.º 4
0
<?php

use yii\helpers\Html;
use yii\easyii\helpers\Image;
use yii\helpers\Url;
use yii\widgets\ActiveForm;
use yii\easyii\widgets\Redactor;
use yii\easyii\widgets\SeoForm;
use webvimark\behaviors\multilanguage\input_widget;
$form = ActiveForm::begin(['enableAjaxValidation' => true, 'options' => ['enctype' => 'multipart/form-data', 'class' => 'model-form']]);
?>

<?php 
echo $form->field($model, 'title')->widget(input_widget\MultiLanguageActiveField::className());
echo $form->field($model, 'text')->widget(input_widget\MultiLanguageActiveField::className());
echo $form->field($model, 'url')->widget(input_widget\MultiLanguageActiveField::className());
//= $form->field($model, 'catpage');
?>



<?php 
if ($model->image) {
    ?>
    <img src="<?php 
    echo Image::thumb($model->image, 240);
    ?>
">
<!--    <a href="--><?php 
    //= Url::to(['/admin/'.$module.'/items/clear-image', 'id' => $model->primaryKey])
    ?>
Exemplo n.º 5
0
<?php 
//= $form->field($model, 'homepage')->checkBox()
echo $form->field($model, 'homepage')->dropDownList(['1' => 'homepage', '0' => 'who\'s Dry', '2' => 'All'], ['prompt' => 'Select Location']);
?>

<?php 
echo $form->field($model, 'owner')->widget(input_widget\MultiLanguageActiveField::className());
echo $form->field($model, 'title')->widget(input_widget\MultiLanguageActiveField::className());
?>




<?php 
echo $form->field($model, 'text')->widget(Redactor::className(), ['options' => ['minHeight' => 400, 'imageUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'pages']), 'fileUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'pages']), 'plugins' => ['fullscreen']]])->widget(input_widget\MultiLanguageActiveField::className(), ['inputType' => 'textArea', 'inputOptions' => ['rows' => 3, 'class' => 'redactor']]);
?>

<?php 
if (IS_ROOT) {
    ?>
    <?php 
    echo $form->field($model, 'slug');
    ?>
    <?php 
    echo SeoForm::widget(['model' => $model]);
}
?>

<?php 
echo Html::submitButton(Yii::t('easyii', 'Save'), ['class' => 'btn btn-primary']);