|
|
<?php
|
|
|
|
|
|
namespace App\Forms;
|
|
|
|
|
|
use Kris\LaravelFormBuilder\Form;
|
|
|
use Kris\LaravelFormBuilder\Field;
|
|
|
|
|
|
class OrderAgreementForm extends Form
|
|
|
{
|
|
|
public function buildForm()
|
|
|
{
|
|
|
$this->add("id", Field::HIDDEN);
|
|
|
|
|
|
$this->add("order_id", Field::NUMBER, [
|
|
|
"label" => "订单ID",
|
|
|
"rules" => "required",
|
|
|
"attr" => ["placeholder" => "请输入订单ID"]
|
|
|
]);
|
|
|
|
|
|
$this->add("paramedic_id", Field::NUMBER, [
|
|
|
"label" => "护工ID",
|
|
|
"attr" => ["placeholder" => "请输入护工ID(选填)"]
|
|
|
]);
|
|
|
|
|
|
$this->add("customer_id", Field::NUMBER, [
|
|
|
"label" => "客户ID",
|
|
|
"attr" => ["placeholder" => "请输入客户ID(选填)"]
|
|
|
]);
|
|
|
|
|
|
$this->add("paramedic_sign_id", Field::TEXT, [
|
|
|
"label" => "护工签名图片ID",
|
|
|
"attr" => ["placeholder" => "请输入护工签名图片ID(选填)"]
|
|
|
]);
|
|
|
|
|
|
$this->add("customer_sign_id", Field::TEXT, [
|
|
|
"label" => "客户签名图片ID",
|
|
|
"attr" => ["placeholder" => "请输入客户签名图片ID(选填)"]
|
|
|
]);
|
|
|
|
|
|
$this->add("company_sign_id", Field::TEXT, [
|
|
|
"label" => "公司签名图片ID",
|
|
|
"attr" => ["placeholder" => "请输入公司签名图片ID(选填)"]
|
|
|
]);
|
|
|
|
|
|
$this->add("file_id", Field::NUMBER, [
|
|
|
"label" => "文件ID",
|
|
|
"attr" => ["placeholder" => "请输入文件ID(选填)"]
|
|
|
]);
|
|
|
|
|
|
$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"]]
|
|
|
]
|
|
|
]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|