Blame view

frontend/views/company/_vacancy_list_view.php 1.21 KB
eb7e82fb   Administrator   29.02.16
1
  <?php
0fd84964   Yarik   test
2
3
4
5
      use frontend\helpers\TextHelper;
      use yii\bootstrap\Html;
      use yii\helpers\Url;
      use yii\helpers\StringHelper;
eb7e82fb   Administrator   29.02.16
6
7
8
9
  
  ?>
  
  <div class="performer-vacant-reclam-bl">
0fd84964   Yarik   test
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
      <?= 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 ?>
          <?= \Yii::$app->formatter->asDatetime($model->date_add, 'Y-MM-dd') ?>
          <?php
              if(!empty( $model->salary )) {
                  ?>
                  <?= $model->salary ?>
                  <?= $model->salaryCurrency->label ?>
                  <?php
              }
          ?>
      </div>
eb7e82fb   Administrator   29.02.16
27
      <div class="performer-vacant-reclam-bl-content">
0fd84964   Yarik   test
28
          <span>
c1040009   Yarik   test
29
              <?= TextHelper::truncateHtmlText($model->description, 200, '...') ?>
0fd84964   Yarik   test
30
31
32
33
34
35
          </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
36
37
38
  
      </div>
  </div>