You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
895 B

<?php
namespace App\Forms;
use Kris\LaravelFormBuilder\Form;
use Kris\LaravelFormBuilder\Field;
class LastdayCheckoutRuleForm extends Form
{
public function buildForm()
{
$this->add("id", Field::HIDDEN);
$this->add("project_id", Field::HIDDEN, ["label" => "项目/医院", "rules" => "required"]);
$this->add("before_time", Field::TEXT, ["label" => "出院日结算时间点", "rules" => "required", "attr" => ["data-plugin" => "time-picker"]]);
$this->add("percent", Field::NUMBER, ["label" => "出院日结算比例", "rules" => "required"]);
$this->add('buttons', 'buttongroup', ["splitted" => true, "buttons" => [
["label" => "保存", "attr" => ["class" => "btn btn-primary mr-1", "type" => "submit"]],
["label" => "返回", "attr" => ["class" => "btn btn-light btn-back", "type" => "button"]]
]]);
}
}