<div class="col-sm-9"> <?php echo Html::activeDropDownList($model, 'function2', $jobFunctions, ['prompt' => Yii::t('job', '---')]); ?> <?php echo Html::activeDropDownList($model, 'function3', $jobFunctions, ['prompt' => Yii::t('job', '---')]); ?> </div> </div> <?php echo $form->field($model, 'work_type')->dropDownList(\app\modules\job\models\JobWorkType::getOptions(), ['prompt' => Yii::t('job', '---')]); ?> <?php $industry = \app\modules\job\models\JobIndustry::getOptions(); echo $form->field($model, 'industry')->dropDownList($industry, ['prompt' => Yii::t('job', '--- Select at least one ---')]); ?> <div class="form-group"> <label class="control-label col-sm-3"></label> <div class="col-sm-9"> <?php echo Html::activeDropDownList($model, 'industry2', $industry, ['prompt' => Yii::t('job', '---')]); ?> </div> </div> <?php echo $form->field($model, 'company_name')->textArea(['rows' => '3', 'class' => 'form-control css-auto-height', 'placeholder' => Yii::t('job', 'Ex: A fortune 500 company, Leading IT & Software Development Company')]); echo $form->field($model, 'company_description')->textArea(['rows' => '3', 'class' => 'form-control css-auto-height', 'placeholder' => Yii::t('job', 'Ex: A leading IT & software development company in the Asia Pacific region with over 30 branches in Asia is now expanding and looking for dedicated individuals to join their prestigious company.')]); echo $form->field($model, 'description')->textArea(['rows' => '3', 'class' => 'form-control css-auto-height', 'placeholder' => Yii::t('job', 'Provide a description of the job responsibilities and candidate requirements for the role.')]);
<div class="col-lg-12"> <div class="ibox float-e-margins"> <div class="ibox-title"> <h5><?php echo Yii::t('common', 'Information'); ?> </h5> </div> <div class="ibox-content"> <?php $form = ActiveForm::begin(['id' => 'formDefault', 'layout' => 'horizontal', 'options' => ['enctype' => 'multipart/form-data'], 'fieldConfig' => ['horizontalCssClasses' => ['label' => 'col-sm-2', 'wrapper' => 'col-sm-10', 'error' => 'help-block m-b-none', 'hint' => '']]]); $tabs = [['label' => Yii::t('common', 'General information'), 'content' => $form->field($modelUser, 'display_name')->textInput() . $form->field($modelUser, 'email')->textInput() . $form->field($modelUser, 'password')->passwordInput() . $form->field($modelUser, 'phone')->textInput() . $form->field($modelUser, 'status')->widget(SwitchInput::classname(), ['containerOptions' => []]), 'active' => true]]; if ($modelUserJob->role == 'seeker') { $tabs[] = ['label' => Yii::t('common', 'Extra information'), 'content' => $form->field($modelUserJob, 'sex')->radioList($modelUserJob::getSexOptions()) . $form->field($modelUserJob, 'birthday')->widget(DateControl::classname(), ['type' => DateControl::FORMAT_DATE, 'ajaxConversion' => false, 'options' => ['pluginOptions' => ['startDate' => '01/01/1980', 'endDate' => '0d', 'autoclose' => true]]]) . $form->field($modelUserJob, 'seeker_nationality')->dropDownList(\app\modules\job\models\JobLocation::getOptions(), ['prompt' => '---']) . $form->field($modelUserJob, 'seeker_salary')->dropDownList(\app\modules\job\models\JobSalary::getOptions(), ['prompt' => 'In US Dollars'])]; } else { $tabs[] = ['label' => Yii::t('common', 'Extra information'), 'content' => $form->field($modelUserJob, 'recruiter_type')->dropDownList(\app\modules\job\models\UserJob::getAgentTypeOptions()) . $form->field($modelUserJob, 'recruiter_company_name') . $form->field($modelUserJob, 'recruiter_position') . $form->field($modelUserJob, 'recruiter_office_location')->dropDownList(\app\modules\job\models\JobLocation::getOptions(), ['prompt' => '---']) . $form->field($modelUserJob, 'recruiter_city_name') . $form->field($modelUserJob, 'recruiter_website') . $form->field($modelUserJob, 'recruiter_jobs_industry')->listBox(\app\modules\job\models\JobIndustry::getOptions()) . $form->field($modelUserJob, 'recruiter_summary')]; } $tabs[] = ['label' => Yii::t('common', 'VIP information'), 'content' => $form->field($modelUserJob, 'vip') . $form->field($modelUserJob, 'vip_from')->widget(DateControl::classname(), ['type' => DateControl::FORMAT_DATE, 'ajaxConversion' => false, 'options' => ['pluginOptions' => ['autoclose' => true]]]) . $form->field($modelUserJob, 'vip_to')->widget(DateControl::classname(), ['type' => DateControl::FORMAT_DATE, 'ajaxConversion' => false, 'options' => ['pluginOptions' => ['autoclose' => true]]])]; echo Html::hiddenInput('save_type', 'save'); echo yii\bootstrap\Tabs::widget(['items' => $tabs]); ActiveForm::end(); ?> <?php /* $form = ActiveForm::begin([ 'id' => 'formDefault', 'layout' => 'horizontal',
use app\components\ActiveForm; use yii\helpers\Html; use app\helpers\ArrayHelper; ?> <?php $form = ActiveForm::begin(['method' => 'GET', 'action' => ['search-seeker'], 'options' => ['id' => 'frm-search-seeker', 'name' => 'frm-search-seeker']]); ?> <?php $searchModel = new app\modules\job\models\UserJobSeekerResume(); $searchModel->scenario = 'search'; $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams(), 20); echo $form->field($searchModel, 'keyword')->textInput(['class' => 'form-control', 'placeholder' => 'keyword search'])->label(false); ?> <?php echo $form->field($searchModel, 'search_mode')->radioList($searchModel::getSearchModeOptions())->label(false); ?> <?php echo $form->field($searchModel, 'location')->dropDownList(\app\modules\job\models\JobLocation::getOptions(), ['class' => 'form-control', 'prompt' => '---'])->label(false); echo $form->field($searchModel, 'functions')->dropDownList(\app\modules\job\models\JobFunction::getOptions(), ['class' => 'form-control', 'prompt' => '---'])->label(false); echo $form->field($searchModel, 'industries')->dropDownList(\app\modules\job\models\JobIndustry::getOptions(), ['class' => 'form-control', 'prompt' => '---'])->label(false); ?> <br> <input class="button button-primary" type="submit" name="agent-home-search" /> <?php ActiveForm::end();
?> </fieldset> <fieldset> <legend><?php echo Yii::t('job', 'Basic Career Overview'); ?> </legend> <?php echo $form->field($model, 'experience')->dropDownList($model->getExperienceOptions(), ['prompt' => Yii::t('job', 'Total Years of Work Experience')]); ?> <?php echo $form->field($model, 'functions')->widget(Select2::classname(), ['data' => \app\modules\job\models\JobFunction::getOptions(), 'options' => ['placeholder' => Yii::t('job', 'Select Functions')], 'pluginOptions' => ['allowClear' => true]]); ?> <?php echo $form->field($model, 'industries')->widget(Select2::classname(), ['data' => \app\modules\job\models\JobIndustry::getOptions(), 'options' => ['placeholder' => Yii::t('job', 'Select Industries'), 'multiple' => 'multiple'], 'pluginOptions' => ['allowClear' => true]]); ?> </fieldset> <fieldset> <legend><?php echo Yii::t('job', 'Employment History'); ?> </legend> <?php echo $form->field($model, 'salary')->dropDownList(\app\modules\job\models\JobSalary::getOptions(), ['prompt' => 'In US Dollars']); ?> <div class="employment-history-wrapper"> <?php