Commit 405c14581d9ede5c4d706e181626c9428ed859e1

Authored by Yarik
1 parent ddebd16b

test

frontend/controllers/BookmarksController.php 0 → 100644
  1 +<?php
  2 + namespace frontend\controllers;
  3 +
  4 + use yii\filters\AccessControl;
  5 + use yii\web\Controller;
  6 +
  7 + /**
  8 + * Site controller
  9 + */
  10 + class BookmarksController extends Controller
  11 + {
  12 +
  13 + public function behaviors()
  14 + {
  15 + return [
  16 + 'access' => [
  17 + 'class' => AccessControl::className(),
  18 + 'rules' => [
  19 + [
  20 + //'actions' => ['cabinet','change-password', 'bookmarks', 'projects'],
  21 + 'allow' => true,
  22 + 'roles' => [ '@' ],
  23 + ],
  24 + ],
  25 + ],
  26 + ];
  27 + }
  28 +
  29 + public function actionIndex()
  30 + {
  31 + return $this->render('bookmarks');
  32 + }
  33 +
  34 + }
... ...
frontend/views/accounts/team.php
... ... @@ -48,38 +48,16 @@
48 48 return \Yii::$app->formatter->asDate(time(), 'yyyy') - $model->experience_from;
49 49 },
50 50 'label' => 'Опыт, лет',
51   - 'filter' => "<div class=\"input-group input-group-xs input-daterange\">" . (new ActiveField([
52   - 'template' => '{input}',
53   - 'inputOptions' => [
54   - 'style' => 'width:auto',
55   - 'class' => 'form-control',
56   - 'min' => '0',
57   - 'max' => '100',
58   - ],
59   - 'options' => [
60   - 'tag' => 'span',
61   - 'class' => '',
62   - ],
63   - 'model' => $searchModel,
64   - 'attribute' => 'experience_from_from',
65   - ]))->input('number') . "
  51 + 'filter' => "<div class=\"input-group input-group-xs input-daterange\">
  52 +<span class='field-teamsearch-experience_from_from'>
  53 +<input type='number' id='teamsearch-experience_from_from' class='form-control' name='TeamSearch[experience_from_from]' value='" . \Yii::$app->request->get('TeamSearch')['experience_from_from'] . "' style='width:auto' min='0' max='" . \Yii::$app->request->get('TeamSearch')['experience_from_to'] . "'>
  54 +</span>
66 55 <span class=\"input-group-addon kv-field-separator\">
67 56 <i class=\"glyphicon glyphicon-resize-horizontal\"></i>
68   -</span>" . (new ActiveField([
69   - 'template' => '{input}',
70   - 'inputOptions' => [
71   - 'style' => 'width:auto',
72   - 'class' => 'form-control',
73   - 'min' => '0',
74   - 'max' => '100',
75   - ],
76   - 'options' => [
77   - 'tag' => 'span',
78   - 'class' => '',
79   - ],
80   - 'model' => $searchModel,
81   - 'attribute' => 'experience_from_to',
82   - ]))->input('number') . "
  57 +</span>
  58 +<span class='field-teamsearch-experience_from_to'>
  59 +<input type='number' id='teamsearch-experience_from_to' class='form-control' name='TeamSearch[experience_from_to]' value='" . \Yii::$app->request->get('TeamSearch')['experience_from_to'] . "' style='width:auto' min='" . \Yii::$app->request->get('TeamSearch')['experience_from_from'] . "' max='100'>
  60 +</span>
83 61 </div>",
84 62 ],
85 63 'position',
... ...
frontend/views/accounts/bookmarks.php renamed to frontend/views/bookmarks/bookmarks.php 100755 → 100644
... ... @@ -14,6 +14,7 @@ $this-&gt;params[&#39;breadcrumbs&#39;][] = $this-&gt;title;
14 14 <a href="#" class="search-performer-button-performers">Исполнители</a>
15 15 <a href="#" class="search-performer-button-customers">Заказчики</a>
16 16 <a href="#" class="search-performer-button-project">Проекты</a>
  17 + <a href="#" class="search-performer-button-project">Вакансии</a>
17 18 </div>
18 19 <div class="right-search-work">
19 20 <div class="search-worker-title style"><span>Исполнители</span></div>
... ...