title = 'Проекты'; $this->params[ 'breadcrumbs' ][] = $this->title; ?>
title ?>
['enctype' => 'multipart/form-data']]); ?>
field($project, 'name') ->textInput([ 'class' => 'custom-input-2' ]) ?>
field($project, 'project_pid') ->dropDownList($projects, [ 'prompt' => 'Родительский проект' ]) ?>
Необходимо выбрать хотя бы одну «специализацию».
Адрес проекта:
field($project, 'city') ->widget(Select2::classname(), [ 'options' => [ 'placeholder' => 'Выбор города ...' ], 'pluginOptions' => [ 'allowClear' => true, 'minimumInputLength' => 3, 'ajax' => [ 'url' => \yii\helpers\Url::to([ 'site/city' ]), 'dataType' => 'json', 'data' => new JsExpression('function(params) { return {q:params.term}; }'), ], 'escapeMarkup' => new JsExpression('function (markup) { return markup; }'), 'templateResult' => new JsExpression('function(city) { return city.text; }'), 'templateSelection' => new JsExpression('function (city) { return city.text; }'), ], ]); ?>
field($project, 'street', [ 'template' => "{label}{input}{hint}{error}" ]) ->textInput([ 'class' => 'custom-input-2' ]) ?>
field($project, 'house', [ 'template' => "{label}{input}{hint}{error}" ]) ->textInput([ 'class' => 'custom-input-2' ]) ?>
field($project, 'budget', [ 'template' => "{label}
{input}\n{hint}\n{error}", ]) ->textInput([ 'class' => 'custom-input-2 custom-input-2-date', 'type' => 'number', ]) ?>
field($project, 'budget_currency') ->label(false) ->dropDownList(Currency::getCurrencyDropdown(), [ 'class' => 'custom-input-2' ]); ?>
field($project, 'contractual', [ 'template' => "{input}{label}\n{hint}\n{error}" ]) ->checkbox([ 'class' => 'custom-check' ], false) ->label('Договорной') ?>
field($project, 'payment_variant') ->radioList([ 1 => 'Без предоплаты', 2 => 'Предоплата возможна', ], [ 'item' => function($index, $label, $name, $checked, $value) { $return = '
'; $return .= ''; $return .= ''; $return .= '
'; return $return; }, ]) ?>
field($project, 'paymentInput') ->checkboxList($payment, [ 'item' => function($index, $label, $name, $checked, $value) { $return = '
'; $return .= ''; $return .= ''; $return .= '
'; return $return; }, ]) ?>
field($project, 'deadline', [ 'template' => "{label}
{input}дней\n{hint}\n{error}" ]) ->textInput([ 'class' => 'custom-input-2 custom-input-2-date', 'type' => 'number', ]) ?>
field($project, 'description') ->widget(CKEditor::className()) ?>
Присоединить файл
Загрузить
До 3 Мб файл
field($project, 'files[]') ->fileInput([ 'multiple' => 'multiple' ]) ?>
field($project, 'date_end') ->dropDownList([ 1 => 'Неделя', 2 => '2 недели', 3 => 'Месяц', ]) ?>
isNewRecord ? 'Добавить' : 'Обновить', [ 'class' => 'input-blocks-wrapper button' ]) ?>
isNewRecord) { echo Html::a('Удалить', [ 'accounts/projects-delete', 'id' => $project->project_id, ], [ 'title' => 'Удалить', 'aria-label' => 'Удалить', 'data-confirm' => 'Вы уверены, что хотите удалить этот элемент?', 'data-method' => 'post', 'data-pjax' => 0, ]); } ?>
request->referrer) ? \Yii::$app->request->referrer : [ 'accounts/projects' ]) ?>
end(); ?>