\Yii::$app->user->getId(), 'current' => 0, ]); $form = ActiveForm::begin(); ?>
field($model, '[' . $index . ']name') ->label('Название') ->textInput([ 'class' => 'custom-input-2' ]); ?>
field($model, '[' . $index . ']link') ->label('Ссылка на компанию на сайте МФП') ->hint('Пример: ' . $_SERVER[ 'HTTP_HOST' ] . '/company/common/1') ->textInput([ 'class' => 'custom-input-2' ]); ?>
field($model, '[' . $index . ']date_start') ->label('Дата начала работы') ->widget(DatePicker::className(), [ 'options' => [ 'class' => 'custom-input-2' ], 'language' => 'ru', 'dateFormat' => 'dd-MM-yyyy', 'clientOptions' => [ 'changeYear' => true, 'yearRange' => 'c-20:c', 'changeMonth' => true, ], ]); ?>
field($model, '[' . $index . ']date_end') ->label('Дата окончания работы') ->widget(DatePicker::className(), [ 'options' => [ 'class' => 'custom-input-2' ], 'language' => 'ru', 'dateFormat' => 'dd-MM-yyyy', 'clientOptions' => [ 'changeYear' => true, 'yearRange' => 'c-20:c', 'changeMonth' => true, ], ]); ?>
field($model, '[' . $index . ']position') ->label('Должность') ->textInput([ 'class' => 'custom-input-2' ]); ?>
field($model, '[' . $index . ']total_count') ->label('Количество проектов, в которых принимали участие') ->textInput([ 'class' => 'custom-input-2 custom-input-2-date', 'type' => 'number', ]); ?>
field($model, '[' . $index . ']complete_count', [ 'enableClientValidation' => false ]) ->label('из них реализовано') ->textInput([ 'class' => 'custom-input-2 custom-input-2-date no-client-validation', 'type' => 'number', ]); ?>
'remove_job_button' ]); ?>
end(); ?>