예제 #1
0
파일: _form.php 프로젝트: efabrikov/renault
/* @var $model common\models\Domain */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="domain-form">

    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'logo')->widget(\trntv\filekit\widget\Upload::classname(), ['url' => ['logo-upload']]);
?>

    <?php 
echo $form->field($model, 'm_logo')->widget(\trntv\filekit\widget\Upload::classname(), ['url' => ['m_logo-upload']]);
?>

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

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

    <?php 
echo $form->field($model, 'locale')->dropDownList(['uk' => 'Укаїнська', 'ru' => 'Русский']);
?>

    <?php 
예제 #2
0
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\UserProfile */
/* @var $form yii\bootstrap\ActiveForm */
$this->title = Yii::t('backend', 'Edit profile');
?>

<div class="user-profile-form">

    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'picture')->widget(\trntv\filekit\widget\Upload::classname(), ['url' => ['avatar-upload']]);
?>

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

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

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

    <?php 
예제 #3
0
$this->title = Yii::t('frontend', 'User Settings');
?>

<div class="user-profile-form">

    <?php 
$form = ActiveForm::begin();
?>

    <h2><?php 
echo Yii::t('frontend', 'Profile settings');
?>
</h2>

    <?php 
echo $form->field($model->getModel('profile'), 'picture')->widget(Upload::classname(), ['url' => ['avatar-upload']]);
?>

    <?php 
echo $form->field($model->getModel('profile'), 'firstname')->textInput(['maxlength' => 255]);
?>

    <?php 
echo $form->field($model->getModel('profile'), 'middlename')->textInput(['maxlength' => 255]);
?>

    <?php 
echo $form->field($model->getModel('profile'), 'lastname')->textInput(['maxlength' => 255]);
?>

    <?php 
예제 #4
0
?>

    <?php 
echo $form->field($model, 'category_id')->dropDownList(\yii\helpers\ArrayHelper::map($categories, 'id', 'name'), ['prompt' => Yii::t('app', 'Select category')]);
?>

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

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

    <?php 
echo $form->field($model, 'picture')->widget(Upload::classname(), ['url' => ['banner-upload']]);
?>

    <?php 
echo $form->field($model, 'status')->dropDownList($model->getStatusesArray(), ['options' => [$model->status => ['selected ' => true]]]);
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('backend', 'Create') : Yii::t('backend', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
?>
예제 #5
0
파일: _form.php 프로젝트: kartrez/pitomec
?>

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

    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->errorSummary($model);
?>

    <div class="row">
        <div class="col-md-3">
            <?php 
echo $form->field($model, 'category_image')->widget(\trntv\filekit\widget\Upload::classname(), ['url' => ['picture-upload'], 'maxFileSize' => 5000000])->label('Основное изображение');
?>
        </div>
        <div class="col-md-9">
            <div class="row">
                <div class="col-md-6">
                    <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => true]);
?>
                </div>
                <div class="col-md-6">
                    <?php 
echo $form->field($model, 'parent_id')->dropDownList($categories, ['prompt' => ''])->label("Родительская категория");
?>
                </div>
            </div>
예제 #6
0
파일: _form.php 프로젝트: kartrez/pitomec
<div class="product-category-form">

    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->errorSummary($model);
?>

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

    <?php 
echo $form->field($model, 'main_image')->widget(\trntv\filekit\widget\Upload::classname(), ['url' => ['product-category']]);
?>

    <?php 
echo $form->field($model, 'description')->widget(\yii\imperavi\Widget::className(), ['plugins' => ['fullscreen', 'fontcolor', 'video'], 'options' => ['minHeight' => 400, 'maxHeight' => 400, 'buttonSource' => true, 'convertDivs' => false, 'removeEmptyTags' => false, 'imageUpload' => Yii::$app->urlManager->createUrl(['/file-storage/upload-imperavi'])]]);
?>

    <?php 
echo $form->field($model, 'parent_id')->textInput();
?>

    <?php 
echo $form->field($model, 'lvl')->textInput();
?>

    <?php