] [ <?php echo $model->getAttributeLabel('updated_at') . ': ' . $model->updated_at; ?> ] <?php } ?> </div> <?php echo $form->errorSummary($model); ?> <?php echo $form->dropDownListControlGroup($model, 'status', VacancyHelper::statuses(), ['class' => 'span4']); ?> <?php echo $form->textFieldControlGroup($model, 'name', ['size' => 200, 'class' => 'span8']); ?> <?php echo $form->dropDownListControlGroup($model, 'user_id', CompanyHelper::userList($company->id), ['class' => 'span8']); ?> <?php echo $form->dropDownListControlGroup($model, 'city_id', UserCitiesHelper::all()); ?>
<?php $this->endWidget(); ?> <p><?php echo TbHtml::submitButton('Редагувати анкету', array('submit' => array('/manage/profiles/update', 'id' => $model->id), 'color' => TbHtml::BUTTON_COLOR_PRIMARY)); ?> </p> <?php $this->widget('bootstrap.widgets.TbDetailView', array('type' => 'bordered condensed', 'data' => $model, 'attributes' => array(array('name' => 'status', 'value' => $model->statusTypes[$model->status]), 'first_name', 'last_name', array('name' => 'gender', 'value' => $model->genderTypes[$model->gender]), array('name' => 'birth_date', 'value' => Yii::app()->dateFormatter->formatDateTime($model->birth_date, "long", false) . " (" . $this->getTimeDiff($model->birth_date) . ")"), 'contact_phone', 'email:email', array('name' => 'residenciesIds', 'value' => implode(', ', array_values(CHtml::listData($model->citiesResidence, 'city_index', 'city_name')))), array('name' => 'education', 'value' => $model->educationTypes[$model->education]), 'eduction_info:ntext', 'work_experience:ntext', 'skills:ntext', 'summary:ntext', array('name' => 'categoryIds', 'value' => implode(', ', array_values(CHtml::listData($model->categories, 'id', 'name'))), 'type' => 'html'), 'desired_position', array('name' => 'positionsIds', 'value' => implode(', ', array_values(CHtml::listData($model->positions, 'id', 'name')))), 'salary', array('name' => 'jobLocationsIds', 'value' => implode(', ', array_values(CHtml::listData($model->citiesJobLocations, 'city_index', 'city_name')))), 'documents', array('name' => 'driverLicensesIds', 'value' => implode(', ', array_values(CHtml::listData($model->driverLicensesTypes, 'id', 'name')))), 'applicant_type', 'cv_file:url', array('name' => 'assistanceIds', 'value' => $model->assistances, 'type' => 'html'), array('name' => 'recruiter_id', 'value' => isset($model->recruiter->last_name) ? CHtml::link($model->recruiter->first_name . " " . $model->recruiter->last_name, array('/manage/reqruiter', 'id' => $model->recruiter->id)) : '', 'type' => 'html'), 'recruiter_comments:ntext', 'who_filled', array('name' => 'added_time', 'value' => Yii::app()->dateFormatter->formatDateTime($model->added_time, "long"), 'type' => 'html')))); ?> <?php echo TbHtml::lead('Можливі вакансії:'); ?> <?php $this->widget('bootstrap.widgets.TbGridView', ['dataProvider' => $vacanciesDataProvider, 'filter' => null, 'columns' => ['id', 'name', 'city.city_name', ['class' => CDataColumn::class, 'value' => function (Vacancy $object) { return $object->company->name; }, 'header' => Yii::t('main', 'vacancy.label.company')], ['class' => CDataColumn::class, 'value' => function (Vacancy $object) { return $object->user->first_name . " " . $object->user->phone; }, 'header' => Yii::t('main', 'vacancy.label.user')], ['name' => 'close_time', 'value' => function (Vacancy $vacancy) { return Yii::app()->dateFormatter->formatDateTime($vacancy->close_time, "long", false); }], ['class' => CDataColumn::class, 'value' => function (Vacancy $vacancy) { return VacancyHelper::statusName($vacancy); }, 'header' => Yii::t('main', 'vacancy.label.status')], ['class' => CDataColumn::class, 'value' => function (Vacancy $object) { return CHtml::link(TbHtml::icon(TbHtml::ICON_EYE_OPEN), ["vacancies/view", 'id' => $object->id]) . ' ' . CHtml::link(TbHtml::icon(TbHtml::ICON_EDIT), ["vacancies/update", 'id' => $object->id]); }, 'type' => 'raw']]]);
echo $model->getAttributeLabel('created_at') . ': ' . $model->created_at; ?> ] [ <?php echo $model->getAttributeLabel('updated_at') . ': ' . $model->updated_at; ?> ] <?php } ?> </div> <?php $this->widget('bootstrap.widgets.TbDetailView', ['data' => $model, 'attributes' => ['id', ['name' => 'status', 'value' => VacancyHelper::statusName($model), 'type' => 'html'], 'city.city_name', ['name' => 'user_id', 'value' => function (Vacancy $vacancy) { $users = CompanyHelper::userList($vacancy->company_id); return $users[$vacancy->user_id]; }], 'name', 'description', 'requirements', 'housing:boolean', 'company.name', ['name' => 'created_at', 'value' => function (Vacancy $vacancy) { $creator = '--'; if (!empty($vacancy->creator)) { $creator = $vacancy->creator->getFirstLastName(); } return $creator . ": " . Yii::app()->dateFormatter->formatDateTime($vacancy->created_at, "long"); }], ['name' => 'updated_at', 'value' => function (Vacancy $vacancy) { $updater = '--'; if (!empty($vacancy->updater)) { $updater = $vacancy->updater->getFirstLastName(); } return $updater . ": " . Yii::app()->dateFormatter->formatDateTime($vacancy->created_at, "long"); }], ['name' => 'close_time', 'value' => Yii::app()->dateFormatter->formatDateTime($model->close_time, "long")], ['name' => 'positions', 'value' => VacancyHelper::positionsAsString($model)], ['name' => 'educations', 'value' => VacancyHelper::educationsAsString($model)], ['name' => 'categories', 'value' => VacancyHelper::categoriesAsString($model)]]]);