Blame view

frontend/views/search/_vacancy_list_view.php 1.25 KB
eb7e82fb   Administrator   29.02.16
1
  <?php
0eb4e7fc   Yarik   test
2
3
4
5
6
7
8
      /**
       * @var Vacancy $model
       */
      use common\models\Vacancy;
      use frontend\helpers\TextHelper;
      use yii\bootstrap\Html;
      use yii\helpers\Url;
eb7e82fb   Administrator   29.02.16
9
10
11
12
  
  ?>
  
  <div class="performer-vacant-reclam-bl">
0eb4e7fc   Yarik   test
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
      <?= Html::a($model->name, Url::toRoute([
          'company/vacancy-view',
          'company_id' => $model->user_id,
          'link'       => $model->link,
      ]), [ 'class' => 'performer-vacant-reclam-bl-title' ]) ?>
      <div class="performer-vacant-reclam-bl-title-two">
          <?php
              if(!empty( $model->city )) {
                  echo $model->city.' ';
              }
              echo $model->date_add. ' ';
              if(!empty( $model->salary ) && !empty( $model->salaryCurrency )) {
                  echo $model->salary;
                  echo $model->salaryCurrency->label;
              }
          ?>
      </div>
eb7e82fb   Administrator   29.02.16
30
31
      <div class="performer-vacant-reclam-bl-content">
          <span><?= TextHelper::truncateHtmlText($model->description, 200, '...') ?></span>
0eb4e7fc   Yarik   test
32
          <?= Html::a('<img src="/images/performar_vacancy/arrow-post.png" alt=""/>', [
42648c98   Yarik   test
33
              'company/vacancy-view',
0eb4e7fc   Yarik   test
34
              'company_id' => $model->user_id,
42648c98   Yarik   test
35
              'link'       => $model->link,
0eb4e7fc   Yarik   test
36
          ], [ 'class' => 'performer-vacant-reclam-bl-content-read' ]) ?>
eb7e82fb   Administrator   29.02.16
37
38
      </div>
  </div>