diff --git a/frontend/views/accounts/_job_form.php b/frontend/views/accounts/_job_form.php index 598f367..0c6dd5b 100755 --- a/frontend/views/accounts/_job_form.php +++ b/frontend/views/accounts/_job_form.php @@ -1,37 +1,44 @@ \Yii::$app->user->getId (), 'current' => 0]); - $form = ActiveForm::begin (); - echo "
"; - echo $form->field ($model, '[' . $index . ']name') - ->label ('Название') - ->textInput (); - echo $form->field ($model, '[' . $index . ']link') - ->label ('Ссылка на компанию на сайте МФП') - ->textInput (); - echo $form->field ($model, '[' . $index . ']date_start') - ->label ('Дата начала работы') - ->widget (DatePicker::className (), ['language' => 'ru', 'dateFormat' => 'dd-MM-yyyy']); - echo $form->field ($model, '[' . $index . ']date_end') - ->label ('Дата окончания работы') - ->widget (DatePicker::className (), ['language' => 'ru', 'dateFormat' => 'dd-MM-yyyy']); - echo $form->field ($model, '[' . $index . ']position') - ->label ('Должность') - ->textInput (); - echo $form->field ($model, '[' . $index . ']total_count') - ->label ('Количество проектов, в которых принимали участие') - ->input ('number'); - echo $form->field ($model, '[' . $index . ']complete_count') - ->label ('из них реализовано') - ->input ('number'); - echo Html::button('Удалить', ['class' => 'remove_job_button']); - echo "
"; - $form->end (); +$model = new Job(['user_id' => \Yii::$app->user->getId (), 'current' => 0]); +$form = ActiveForm::begin (); ?> +
+ field ($model, '[' . $index . ']name') + ->label ('Название') + ->textInput (); + ?> + field ($model, '[' . $index . ']link') + ->label ('Ссылка на компанию на сайте МФП') + ->textInput (); + ?> + field ($model, '[' . $index . ']date_start') + ->label ('Дата начала работы') + ->widget (DatePicker::className (), ['language' => 'ru', 'dateFormat' => 'dd-MM-yyyy']); + ?> + field ($model, '[' . $index . ']date_end') + ->label ('Дата окончания работы') + ->widget (DatePicker::className (), ['language' => 'ru', 'dateFormat' => 'dd-MM-yyyy']); + ?> + field ($model, '[' . $index . ']position') + ->label ('Должность') + ->textInput (); + ?> + field ($model, '[' . $index . ']total_count') + ->label ('Количество проектов, в которых принимали участие') + ->input ('number'); + ?> + field ($model, '[' . $index . ']complete_count') + ->label ('из них реализовано') + ->input ('number'); + ?> + 'remove_job_button']);?> +
+end (); ?> diff --git a/frontend/views/accounts/employment.php b/frontend/views/accounts/employment.php index 864c9d5..b5f8fd2 100755 --- a/frontend/views/accounts/employment.php +++ b/frontend/views/accounts/employment.php @@ -6,7 +6,6 @@ use common\models\Job; use yii\helpers\Html; use yii\jui\DatePicker; use yii\widgets\ActiveForm; -//HUUIISAODASIDSIA $this->title = 'Трудовой стаж'; $this->params['breadcrumbs'][] = $this->title; ?> @@ -47,9 +46,9 @@ $current = array_shift ($job);
- field ($current, '[0]date_start') + field ($current, '[0]date_start', ['options' => ['class' => 'test2class']]) ->label ('Дата начала работы') - ->widget (DatePicker::className (), ['language' => 'ru', 'dateFormat' => 'dd-MM-yyyy']); + ->widget (DatePicker::className (), ['options' => ['class' => 'testclass'], 'language' => 'ru', 'dateFormat' => 'dd-MM-yyyy', 'clientOptions' => ['changeYear' => true, 'yearRange' => 'c-20:c', 'changeMonth' => true]]); ?>
diff --git a/frontend/web/css/style.css b/frontend/web/css/style.css index 03e58e3..328b7a2 100755 --- a/frontend/web/css/style.css +++ b/frontend/web/css/style.css @@ -1087,6 +1087,8 @@ input[type=file]::-webkit-file-upload-button { .pagination li.dots-next:hover { border: 1px solid #fff; } +.pagination li.disabled {display: none} +.pagination li.prev a, .pagination li.next a {line-height: 28px!important;} /**************landingCompany**************/ .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- } .line-btn-fix button{line-height: normal !important;} a.blog-new-link{font-size: 18px !important; color: inherit !important; text-decoration: none!important;} -a.blog-new-link:hover{text-decoration: underline !important;} \ No newline at end of file +a.blog-new-link:hover{text-decoration: underline !important;} +.remove_job_button{ + content: '' !important; + width: 13px; + height: 13px; + cursor: pointer; + background: url("/images/delete-ico.png") no-repeat; + display: block; + border: none; + outline: none; +} \ No newline at end of file -- libgit2 0.21.4