Exemple #1
1
    </div>

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

    <?php 
echo $form->field($model, 'media_content')->widget(TinyMce::className(), ['compressorRoute' => 'helper/tiny-mce-compressor', 'settings' => ['menubar' => false, 'skin_url' => Yii::$app->urlManager->baseUrl . '/editor-skins/content', 'toolbar_items_size' => 'medium', 'toolbar' => "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | code fullscreen", 'formats' => ['alignleft' => ['selector' => 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', 'classes' => 'align-left'], 'aligncenter' => ['selector' => 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', 'classes' => 'align-center'], 'alignright' => ['selector' => 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', 'classes' => 'align-right'], 'alignfull' => ['selector' => 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', 'classes' => 'align-full']]], 'options' => ['style' => 'height:250px;']]);
?>

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

    <?php 
echo $form->field($model, 'media_post_id')->widget(SelectizeDropDownList::className(), ['items' => $model->mediaPost ? [$model->mediaPost->id => $model->mediaPost->post_title] : [], 'value' => $model->media_post_id, 'clientOptions' => ['valueField' => 'id', 'labelField' => 'post_title', 'searchField' => 'post_title', 'load' => new JsExpression('function (query, callback) {
                if (!query.length) return callback();
                $.ajax({
                url: "' . Url::to(['/post/ajax-search']) . '",
                    type: "POST",
                    dataType: "json",
                    data: {
                        post_title: query,
                        _csrf: yii.getCsrfToken()
                    },
                    error: function() {
                        callback();
                    },
                    success: function(response) {
                        callback(response);
                    }
Exemple #2
0
        'searchField' => ['fullName'],
    ],
]);*/
?>

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

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

<?php 
echo $form->field($model, 'date')->widget(\dosamigos\datepicker\DatePicker::className(), ['language' => 'ru', 'options' => ['class' => 'form-control', 'autocomplete' => 'off'], 'clientOptions' => ['forceParse' => true, 'todayBtn' => true, 'clearBtn' => true, 'autoclose' => true, 'todayHighlight' => true, 'format' => 'dd.mm.yyyy']]);
?>

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

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

<?php 
echo $form->field($model, 'who_give')->widget(\dosamigos\selectize\SelectizeDropDownList::className(), ['items' => \yii\helpers\ArrayHelper::map(\app\models\DocMigration::find()->select(['who_give'])->active()->distinct()->orderBy('who_give asc')->asArray()->all(), 'who_give', 'who_give'), 'options' => ['multiple' => false, 'class' => 'form-control', 'prompt' => ''], 'clientOptions' => ['selectOnTab' => true, 'openOnFocus' => false, 'persist' => false, 'maxItems' => 1, 'create' => true, 'valueField' => 'who_give', 'labelField' => 'who_give', 'searchField' => ['who_give']]]);
?>

<?php 
echo $form->field($model, 'note')->textarea(['rows' => 6]);
Exemple #3
0
?>

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

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

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

    <?php 
echo $form->field($model, 'icon')->widget(SelectizeDropDownList::className(), ['items' => Fa::getConstants()])->hint(Yii::t('writesdown', 'The icon use {FontAwesome} and appears on admin side menu', ['FontAwesome' => Html::a('FontAwesome', 'http://www.fontawesome.com/', ['target' => 'blank'])]));
?>

    <?php 
$role = ArrayHelper::map(Yii::$app->authManager->getRoles(), 'name', 'name');
if (Yii::$app->user->can('administrator') && !Yii::$app->authManager->checkAccess(Yii::$app->user->id, 'superadmin')) {
    unset($role['superadmin']);
}
echo $form->field($model, 'permission')->dropDownList($role);
?>

    <?php 
echo $form->field($model, 'menu_builder')->checkbox(['uncheck' => 0]);
?>

    <?php 
Exemple #4
0
            'create' => false,
//            'plugins' => ['remove_button'],
            'valueField' => 'id',
            'labelField' => 'fullName',
            'searchField' => ['fullName'],
        ],
    ])->hint('');
    */
?>

<?php 
//echo $form->field($model, 'professions')->dropDownList(ArrayHelper::map(\app\models\Profession::find()->active()->all(), 'id', 'name'), ['prompt' => '', 'multiple' => true])
?>

<?php 
echo $form->field($model, 'professions')->widget(\dosamigos\selectize\SelectizeDropDownList::className(), ['items' => ArrayHelper::map(\app\models\Profession::find()->active()->all(), 'id', 'name'), 'options' => ['multiple' => true, 'class' => 'form-control'], 'clientOptions' => ['persist' => false, 'maxItems' => null, 'create' => false, 'plugins' => ['remove_button'], 'valueField' => 'id', 'labelField' => 'name', 'searchField' => ['name']]])->hint('Use commas to separate tags');
?>

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

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

<?php 
echo $form->field($model, 'resume_status_id')->dropDownList(ArrayHelper::map(\app\models\ResumeStatus::find()->active()->all(), 'id', 'name'), ['prompt' => '']);
?>

<?php 
Exemple #5
0
  ]);*/
?>

    <?php 
echo $form->field($model, 'firm')->widget(\dosamigos\selectize\SelectizeDropDownList::className(), ['items' => \yii\helpers\ArrayHelper::map(\app\models\Experience::find()->select(['firm'])->active()->distinct()->orderBy('firm asc')->asArray()->all(), 'firm', 'firm'), 'options' => ['multiple' => false, 'class' => 'form-control', 'prompt' => ''], 'clientOptions' => ['selectOnTab' => true, 'openOnFocus' => false, 'persist' => false, 'maxItems' => 1, 'create' => true, 'valueField' => 'firm', 'labelField' => 'firm', 'searchField' => ['firm']]]);
?>


    <?php 
//echo $form->field($model, 'profession_id')->textInput()
?>
    <?php 
//echo $form->field($model, 'profession_id',['inputOptions' => ['class' => 'form-control']])->dropDownList(ArrayHelper::map(\app\models\Profession::find()->active()->all(), 'id', 'name'), ['prompt' => ''])
?>
    <?php 
echo $form->field($model, 'profession_id')->widget(\dosamigos\selectize\SelectizeDropDownList::className(), ['items' => ArrayHelper::map(\app\models\Profession::find()->active()->all(), 'id', 'name'), 'options' => ['multiple' => false, 'class' => 'form-control', 'prompt' => ''], 'clientOptions' => ['openOnFocus' => false, 'persist' => false, 'maxItems' => 1, 'create' => false, 'valueField' => 'id', 'labelField' => 'name', 'searchField' => ['name']]]);
?>

    <?php 
//echo= $form->field($model, 'city_id')->textInput()
?>

    <?php 
echo $form->field($model, 'date_start')->widget(\dosamigos\datepicker\DatePicker::className(), ['language' => 'ru', 'options' => ['class' => 'form-control', 'autocomplete' => 'off'], 'clientOptions' => ['forceParse' => true, 'todayBtn' => true, 'clearBtn' => true, 'autoclose' => true, 'todayHighlight' => true, 'format' => 'dd.mm.yyyy']]);
?>

    <?php 
echo $form->field($model, 'date_end')->widget(\dosamigos\datepicker\DatePicker::className(), ['language' => 'ru', 'options' => ['class' => 'form-control', 'autocomplete' => 'off'], 'clientOptions' => ['forceParse' => true, 'todayBtn' => true, 'clearBtn' => true, 'autoclose' => true, 'todayHighlight' => true, 'format' => 'dd.mm.yyyy']]);
?>

    <?php 
?>

    <?php 
echo $form->field($model, 'text')->widget(Redactor::className(), ['options' => ['minHeight' => 400, 'imageUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'article'], true), 'fileUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'article'], true), 'plugins' => ['fullscreen']]]);
?>

    <?php 
echo $form->field($model, 'time')->widget(DateTimePicker::className());
?>

    <?php 
echo '';
?>

    <?php 
echo $form->field($model, 'categoryIds')->widget(SelectizeDropDownList::className(), ['options' => ['multiple' => true], 'items' => ArrayHelper::map(Category::find()->all(), 'category_id', 'title')]);
?>

    <?php 
if ($this->context->module->settings['enableTags']) {
    ?>
        <?php 
    echo $form->field($model, 'tagNames')->widget(TagsInput::className());
    ?>
    <?php 
}
?>

    <?php 
if (IS_ROOT) {
    ?>