Commit ccab742d2959a825a377eba92cdc417a8cd60f24

Authored by Виталий
1 parent 0f6274a7

tokar commit

frontend/views/accounts/_job_form.php
1 1 <?php
2   - /**
3   - * @var integer $index
4   - */
5   - use common\models\Job;
6   - use yii\helpers\Html;
7   - use yii\jui\DatePicker;
8   - use yii\widgets\ActiveForm;
  2 +/**
  3 + * @var integer $index
  4 + */
  5 +use common\models\Job;
  6 +use yii\helpers\Html;
  7 +use yii\jui\DatePicker;
  8 +use yii\widgets\ActiveForm;
9 9  
10   - $model = new Job(['user_id' => \Yii::$app->user->getId (), 'current' => 0]);
11   - $form = ActiveForm::begin ();
12   - echo "<div class='ajax-loaded'><div class='prev_job_inputs'>";
13   - echo $form->field ($model, '[' . $index . ']name')
14   - ->label ('Название')
15   - ->textInput ();
16   - echo $form->field ($model, '[' . $index . ']link')
17   - ->label ('Ссылка на компанию на сайте МФП')
18   - ->textInput ();
19   - echo $form->field ($model, '[' . $index . ']date_start')
20   - ->label ('Дата начала работы')
21   - ->widget (DatePicker::className (), ['language' => 'ru', 'dateFormat' => 'dd-MM-yyyy']);
22   - echo $form->field ($model, '[' . $index . ']date_end')
23   - ->label ('Дата окончания работы')
24   - ->widget (DatePicker::className (), ['language' => 'ru', 'dateFormat' => 'dd-MM-yyyy']);
25   - echo $form->field ($model, '[' . $index . ']position')
26   - ->label ('Должность')
27   - ->textInput ();
28   - echo $form->field ($model, '[' . $index . ']total_count')
29   - ->label ('Количество проектов, в которых принимали участие')
30   - ->input ('number');
31   - echo $form->field ($model, '[' . $index . ']complete_count')
32   - ->label ('из них реализовано')
33   - ->input ('number');
34   - echo Html::button('Удалить', ['class' => 'remove_job_button']);
35   - echo "</div></div>";
36   - $form->end ();
  10 +$model = new Job(['user_id' => \Yii::$app->user->getId (), 'current' => 0]);
  11 +$form = ActiveForm::begin ();
37 12 ?>
  13 +<div class='ajax-loaded'><div class='prev_job_inputs'>
  14 + <?= $form->field ($model, '[' . $index . ']name')
  15 + ->label ('Название')
  16 + ->textInput ();
  17 + ?>
  18 + <?= $form->field ($model, '[' . $index . ']link')
  19 + ->label ('Ссылка на компанию на сайте МФП')
  20 + ->textInput ();
  21 + ?>
  22 + <?= $form->field ($model, '[' . $index . ']date_start')
  23 + ->label ('Дата начала работы')
  24 + ->widget (DatePicker::className (), ['language' => 'ru', 'dateFormat' => 'dd-MM-yyyy']);
  25 + ?>
  26 + <?= $form->field ($model, '[' . $index . ']date_end')
  27 + ->label ('Дата окончания работы')
  28 + ->widget (DatePicker::className (), ['language' => 'ru', 'dateFormat' => 'dd-MM-yyyy']);
  29 + ?>
  30 + <?= $form->field ($model, '[' . $index . ']position')
  31 + ->label ('Должность')
  32 + ->textInput ();
  33 + ?>
  34 + <?= $form->field ($model, '[' . $index . ']total_count')
  35 + ->label ('Количество проектов, в которых принимали участие')
  36 + ->input ('number');
  37 + ?>
  38 + <?= $form->field ($model, '[' . $index . ']complete_count')
  39 + ->label ('из них реализовано')
  40 + ->input ('number');
  41 + ?>
  42 + <?= Html::button('', ['class' => 'remove_job_button']);?>
  43 + </div></div>
  44 +<?php $form->end (); ?>
... ...
frontend/views/accounts/employment.php
... ... @@ -6,7 +6,6 @@ use common\models\Job;
6 6 use yii\helpers\Html;
7 7 use yii\jui\DatePicker;
8 8 use yii\widgets\ActiveForm;
9   -//HUUIISAODASIDSIA
10 9 $this->title = 'Трудовой стаж';
11 10 $this->params['breadcrumbs'][] = $this->title;
12 11 ?>
... ... @@ -47,9 +46,9 @@ $current = array_shift ($job);
47 46  
48 47 <div class="input-blocks-wrapper">
49 48 <div class="input-blocks">
50   - <?= $form->field ($current, '[0]date_start')
  49 + <?= $form->field ($current, '[0]date_start', ['options' => ['class' => 'test2class']])
51 50 ->label ('Дата начала работы')
52   - ->widget (DatePicker::className (), ['language' => 'ru', 'dateFormat' => 'dd-MM-yyyy']);
  51 + ->widget (DatePicker::className (), ['options' => ['class' => 'testclass'], 'language' => 'ru', 'dateFormat' => 'dd-MM-yyyy', 'clientOptions' => ['changeYear' => true, 'yearRange' => 'c-20:c', 'changeMonth' => true]]);
53 52 ?>
54 53 </div>
55 54 </div>
... ...
frontend/web/css/style.css
... ... @@ -1087,6 +1087,8 @@ input[type=file]::-webkit-file-upload-button {
1087 1087 .pagination li.dots-next:hover {
1088 1088 border: 1px solid #fff;
1089 1089 }
  1090 +.pagination li.disabled {display: none}
  1091 +.pagination li.prev a, .pagination li.next a {line-height: 28px!important;}
1090 1092 /**************landingCompany**************/
1091 1093  
1092 1094 .section-box-5 {
... ... @@ -5492,4 +5494,14 @@ ul.menu-admin li.logout-li, ul.menu-admin li.logout-li a, ul.menu-admin li:last-
5492 5494 }
5493 5495 .line-btn-fix button{line-height: normal !important;}
5494 5496 a.blog-new-link{font-size: 18px !important; color: inherit !important; text-decoration: none!important;}
5495   -a.blog-new-link:hover{text-decoration: underline !important;}
5496 5497 \ No newline at end of file
  5498 +a.blog-new-link:hover{text-decoration: underline !important;}
  5499 +.remove_job_button{
  5500 + content: '' !important;
  5501 + width: 13px;
  5502 + height: 13px;
  5503 + cursor: pointer;
  5504 + background: url("/images/delete-ico.png") no-repeat;
  5505 + display: block;
  5506 + border: none;
  5507 + outline: none;
  5508 +}
5497 5509 \ No newline at end of file
... ...