beginForm(isset($model) ? "/admin/module_shop/edit/" . $model->id : "/admin/module_shop", enctype: 'multipart/form-data'); $form->field(class: \itguild\forms\inputs\File::class, name: "path_to_archive", params: [ 'class' => "form-control", 'placeholder' => 'Путь к файлу модуля', 'value' => $model->path_to_archive ?? '' ]) ->setLabel("Путь к файлу модуля") ->render(); $form->field(class: \itguild\forms\inputs\Select::class, name: "status", params: [ 'class' => "form-control", 'value' => $model->status ?? '' ]) ->setLabel("Статус") ->setOptions(ModuleShop::getStatus()) ->render(); ?>
field(\itguild\forms\inputs\Button::class, name: "btn-submit", params: [ 'class' => "btn btn-primary ", 'value' => 'Отправить', 'typeInput' => 'submit' ]) ->render(); ?>
field(\itguild\forms\inputs\Button::class, name: "btn-reset", params: [ 'class' => "btn btn-warning", 'value' => 'Сбросить', 'typeInput' => 'reset' ]) ->render(); ?>
endForm();