Blame view

frontend/views/performer/workplace.php 1.39 KB
fbdb1f1c   Yarik   test
1
  <?php
9e040221   Yarik   test
2
3
4
5
6
      /**
       * @var yii\web\View $this
       * @var User         $user
       */
      use common\models\User;
fbdb1f1c   Yarik   test
7
  
9e040221   Yarik   test
8
9
      $this->params[ 'user' ] = $user;
      $this->title = 'My Yii Application';
fbdb1f1c   Yarik   test
10
11
12
13
14
  ?>
  <div class="performer-vacancy-vacant-title-reclam-wr style">
      <div class="workplace-wr">
          <div class="workplace-title style"><p>Опыт работы</p></div>
          <div class="workplace-experience-wr style">
9e040221   Yarik   test
15
              <?php foreach($user->jobs as $job): ?>
f6ea8941   Administrator   09.02.16
16
17
                  <div class="workplace-experience-post">
                      <div class="workplace-experience-post-title"><?= $job->name ?></div>
9e040221   Yarik   test
18
19
20
21
22
23
24
25
26
27
28
                      <div class="workplace-experience-post-date">
                          <?php
                          if(!empty($job->date_start) && !empty($job->date_end)) {
                              echo $job->date_start . '-' . $job->date_end . ' (' . $job->expTime . ')';
                          } elseif(!empty($job->date_start)) {
                              echo 'с ' . $job->date_start . ' (' . $job->expTime . ')';
                          } elseif(!empty($job->date_end)) {
                              echo 'до ' . $job->date_end;
                          }
                          ?>
                      </div>
f6ea8941   Administrator   09.02.16
29
30
31
32
33
                      <div class="workplace-experience-post-vacancy"><?= $job->position ?></div>
                  </div>
              <?php endforeach; ?>
  
  
fbdb1f1c   Yarik   test
34
35
36
          </div>
      </div>
  </div>