Blame view

frontend/views/company/_vacancy_list_view.php 1.25 KB
eb7e82fb   Administrator   29.02.16
1
  <?php
fa284ab0   Yarik   test
2
3
4
5
      /**
       * @var Vacancy $model
       */
      use common\models\Vacancy;
0fd84964   Yarik   test
6
7
8
      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">
0fd84964   Yarik   test
13
14
15
16
17
18
19
      <?= 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">
          <?= $model->city ?>
a020aad3   Yarik   test
20
          <?= \Yii::$app->formatter->asDate($model->date_add, 'dd.MM.Y') ?>
0fd84964   Yarik   test
21
22
23
24
25
26
27
28
29
          <?php
              if(!empty( $model->salary )) {
                  ?>
                  <?= $model->salary ?>
                  <?= $model->salaryCurrency->label ?>
                  <?php
              }
          ?>
      </div>
eb7e82fb   Administrator   29.02.16
30
      <div class="performer-vacant-reclam-bl-content">
0fd84964   Yarik   test
31
          <span>
c1040009   Yarik   test
32
              <?= TextHelper::truncateHtmlText($model->description, 200, '...') ?>
0fd84964   Yarik   test
33
34
35
36
37
38
          </span>
          <?= Html::a('<img src="/images/performar_vacancy/arrow-post.png" alt=""/>', [
              'company/vacancy-view',
              'company_id' => $model->user_id,
              'link'       => $model->link,
          ], [ 'class' => 'performer-vacant-reclam-bl-content-read' ]) ?>
eb7e82fb   Administrator   29.02.16
39
40
41
  
      </div>
  </div>