From 0fd849642972394d357144340060799761130fe1 Mon Sep 17 00:00:00 2001 From: Yarik Date: Wed, 9 Mar 2016 17:39:45 +0200 Subject: [PATCH] test --- frontend/views/company/_vacancy_list_view.php | 38 ++++++++++++++++++++++++++++++-------- frontend/views/company/vacancy-view.php | 37 +++++++++++++++++++++---------------- 2 files changed, 51 insertions(+), 24 deletions(-) diff --git a/frontend/views/company/_vacancy_list_view.php b/frontend/views/company/_vacancy_list_view.php index 020147a..c646222 100644 --- a/frontend/views/company/_vacancy_list_view.php +++ b/frontend/views/company/_vacancy_list_view.php @@ -1,17 +1,39 @@
- name, Url::toRoute( ['company/vacancy-view', 'company_id' => $model->user_id,'link' => $model->link]), ['class' => 'performer-vacant-reclam-bl-title']) ?> -
city ?> formatter->asDatetime($model->date_add, 'Y-MM-dd') ?> salary ?> salaryCurrency->label ?>
+ name, Url::toRoute([ + 'company/vacancy-view', + 'company_id' => $model->user_id, + 'link' => $model->link, + ]), [ 'class' => 'performer-vacant-reclam-bl-title' ]) ?> +
+ city ?> + formatter->asDatetime($model->date_add, 'Y-MM-dd') ?> + salary )) { + ?> + salary ?> + salaryCurrency->label ?> + +
- description, 200, '...') ?> - ', ['vacancy-view', 'company_id' => $model->user_id,'vacancy_id' => $model->vacancy_id], ['class' => 'performer-vacant-reclam-bl-content-read']) ?> + + description, 50, '...', false) ?> + description, 200, '...') ?> + + ', [ + 'company/vacancy-view', + 'company_id' => $model->user_id, + 'link' => $model->link, + ], [ 'class' => 'performer-vacant-reclam-bl-content-read' ]) ?>
\ No newline at end of file diff --git a/frontend/views/company/vacancy-view.php b/frontend/views/company/vacancy-view.php index d931ad7..0108f2f 100755 --- a/frontend/views/company/vacancy-view.php +++ b/frontend/views/company/vacancy-view.php @@ -1,7 +1,7 @@ params[ 'company'] = $company; -$this->title = 'My Yii Application'; + $this->params[ 'company' ] = $company; + $this->title = 'My Yii Application'; ?>
$company->id]); + echo Html::a('к списку вакансий', [ + 'vacancy-list', + 'company_id' => $company->id, + ]); ?>
@@ -24,24 +27,26 @@ $this->title = 'My Yii Application';
    user_name)) { - echo "
  • Контактное лицо:

    {$vacancy->user_name}

  • "; - } + if(!empty( $vacancy->user_name )) { + echo "
  • Контактное лицо:

    {$vacancy->user_name}

  • "; + } + if(!empty( $vacancy->phone )) { + echo "
  • Телефон:

    {$vacancy->phone}

  • "; + } ?> -
  • Телефон:

    XXX XXX-XX-XX

  • city)) { + if(!empty( $vacancy->city )) { echo "
  • Город:

    {$vacancy->city}

  • "; } ?> employments)) { - echo "
  • Вид занятости:

    ".implode(', ', ArrayHelper::getColumn($vacancy->employments, 'name'))."

  • "; + if(!empty( $vacancy->employments )) { + echo "
  • Вид занятости:

    " . implode(', ', ArrayHelper::getColumn($vacancy->employments, 'name')) . "

  • "; } ?> requirements)) { - echo "
  • Требования:

    ".implode(', ', ArrayHelper::getColumn($vacancy->requirements, 'requirements'))."

  • "; + if(!empty( $vacancy->requirements )) { + echo "
  • Требования:

    " . implode(', ', ArrayHelper::getColumn($vacancy->requirements, 'requirements')) . "

  • "; } ?>
@@ -49,7 +54,7 @@ $this->title = 'My Yii Application';
Описание вакансии
description; + echo $vacancy->description; ?>
@@ -67,7 +72,7 @@ $this->title = 'My Yii Application';
Разнорабочий (в Бровары) -
Наш Дом. Киев.
+
Наш Дом. Киев.
-- libgit2 0.21.4