Beispiel #1
0
 public function getJobFunctionTitle()
 {
     $items = array();
     if ($this->agent_job_function and is_array($this->agent_job_function)) {
         $items = ArrayHelper::map(JobFunction::find()->where(['in', '_id', $this->agent_job_function])->asArray()->all(), '_id', 'title');
     }
     return $items ? implode(', ', $items) : Yii::t('common', 'Not set');
 }
Beispiel #2
0
            <div class="col-xs-6">
                <?php 
echo Html::activeDropDownList($model, 'annual_salary_from', $annualSalary, ['prompt' => Yii::t('job', '--- From ---')]);
?>
            </div>
            <div class="col-xs-6">
                <?php 
echo Html::activeDropDownList($model, 'annual_salary_to', $annualSalary, ['prompt' => Yii::t('job', '--- To ---')]);
?>
            </div>
        </div>
    </div>
</div>

<?php 
$jobFunctions = \app\modules\job\models\JobFunction::getOptions();
echo $form->field($model, 'functions')->dropDownList($jobFunctions, ['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, 'function2', $jobFunctions, ['prompt' => Yii::t('job', '---')]);
?>
        <?php 
echo Html::activeDropDownList($model, 'function3', $jobFunctions, ['prompt' => Yii::t('job', '---')]);
?>
    </div>
</div>

<?php 
Beispiel #3
0
echo $form->field($jobModel, 'agent_website')->textInput(['placeholder' => Yii::t('account', 'Corporate Site')]);
?>
                    <?php 
echo $form->field($model, 'email')->textInput(['placeholder' => Yii::t('account', 'Email')]);
?>
                    <?php 
echo $form->field($model, 'password')->passwordInput(['placeholder' => Yii::t('account', 'Must be 6-20 characters in length.')]);
?>
                    <?php 
echo $form->field($model, 'phone')->textInput(['placeholder' => Yii::t('account', '(Ex: 65-6666-7777) with country code, please.')]);
?>
                    <?php 
echo $form->field($jobModel, 'agent_job_industry')->listBox(\app\modules\job\models\Job::getCategoryOptions(), ['multiple' => true])->hint(Yii::t('job', 'Please Use CTR to select multiple options. (Select up to 3)'));
?>
                    <?php 
echo $form->field($jobModel, 'agent_job_function')->listBox(\app\modules\job\models\JobFunction::getOptions(), ['multiple' => true])->hint(Yii::t('job', 'Please Use CTR to select multiple options. (Select up to 3)'));
?>
                    <?php 
echo $form->field($jobModel, 'agent_summary')->textarea();
?>
                    <?php 
$imageConfig = ['options' => ['accept' => 'uploads/*'], 'pluginOptions' => ['previewFileType' => 'image', 'showCaption' => FALSE, 'showRemove' => TRUE, 'showUpload' => FALSE, 'browseClass' => 'btn btn-primary btn-block', 'browseIcon' => '<i class="glyphicon glyphicon-camera"></i> ', 'browseLabel' => 'Select Photo', 'removeClass' => 'btn btn-danger', 'removeLabel' => "Delete", 'removeIcon' => '<i class="glyphicon glyphicon-trash"></i>', 'allowedFileExtensions' => ['jpg', 'gif', 'png', 'jpeg']]];
if (!empty($model->image)) {
    $imageConfig['pluginOptions']['initialPreview'] = [Html::img(\app\helpers\LetHelper::getFileUploaded($model->image), ['class' => 'file-preview-image'])];
}
echo $form->field($model, 'image')->widget(FileInput::classname(), $imageConfig);
?>

                    <div class="checkbox policy_check">
                        <?php 
echo $form->field($jobModel, 'accept')->checkbox(['label' => 'I have read, understand, and I accept the <a href="#" target="_blank">terms of use</a> and <a href="#" target="_blank">privacy policy</a>.']);
Beispiel #4
0
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();
Beispiel #5
0
 public function getFunctionNames()
 {
     if (is_array($this->functions)) {
         $items = ArrayHelper::map(JobFunction::find()->where(['in', '_id', $this->functions])->asArray()->all(), '_id', 'title');
     } else {
         $items = ArrayHelper::map(JobFunction::find()->where(['_id' => $this->functions])->asArray()->all(), '_id', 'title');
     }
     return implode('; ', $items);
 }
Beispiel #6
0
 /**
  * Finds the JobFunction model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $_id
  * @return JobFunction the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($id)
 {
     if (($model = JobFunction::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }
Beispiel #7
0
    $imageConfig['pluginOptions']['initialPreview'] = [Html::img(LetHelper::getFileUploaded($modelUser->image), ['class' => 'file-preview-image'])];
}
echo $form->field($modelUser, 'image')->widget(\kartik\widgets\FileInput::classname(), $imageConfig);
?>
                                        </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']);
?>