pluck('name', 'id')->toArray(); ?> beginForm("/admin/save-form"); ?> field(TextInput::class, name: "title", params: [ 'class' => "form-control", 'placeholder' => 'Название формы' ]) ->setLabel("Название формы") ->render(); $form->field(TextInput::class, name: "perPage", params: [ 'class' => "form-control", 'placeholder' => 'Perpage' ]) ->setLabel("Количество выводимых записей на страницу") ->render(); $form->field(TextArea::class, name: "paramsForm", params: [ 'class' => "form-control", 'placeholder' => 'Параметры' ]) ->setLabel("Параметры") ->render(); $form->field(\itguild\forms\inputs\Select::class, name: "inputType", params: [ 'class' => "form-control-sm", 'id' => "selectID", 'placeholder' => 'Параметры', 'options' => $types ]) ->setLabel("Добавить поле") ->render(); ?> field(\itguild\forms\inputs\Button::class, name: "btn-submit", params: [ 'class' => "btn btn-primary ", 'value' => 'Отправить', 'typeInput' => 'submit' ]) ->render(); $form->endForm(); ?>