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.

61 lines
1.8 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?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"]]
]
]);
}
}