Commit 85bb1c35 by 宁成龙

优化输入体验

parent 6ae024dc
...@@ -98,6 +98,8 @@ class SaveUserAddressHandle extends Form implements LazyRenderable ...@@ -98,6 +98,8 @@ class SaveUserAddressHandle extends Form implements LazyRenderable
$this->row(function (Row $row) { $this->row(function (Row $row) {
$row->width(3)->select('country')->options(Country::getCountryMap())->required(); $row->width(3)->select('country')->options(Country::getCountryMap())->required();
$row->width(3)->text('province')->default(''); $row->width(3)->text('province')->default('');
});
$this->row(function (Row $row) {
$row->width(3)->text('city')->required(); $row->width(3)->text('city')->required();
$row->width(2)->number('post_code')->required(); $row->width(2)->number('post_code')->required();
}); });
......
...@@ -63,6 +63,8 @@ class CreateUser extends \Dcat\Admin\Support\LazyRenderable ...@@ -63,6 +63,8 @@ class CreateUser extends \Dcat\Admin\Support\LazyRenderable
(Country::getCountryMap()) (Country::getCountryMap())
->required(); ->required();
$table->width(3)->text('province')->label(trans("user-address.fields.province")); $table->width(3)->text('province')->label(trans("user-address.fields.province"));
});
$table->row(function (Form\Row $table) {
$table->width(3)->text('city')->label(trans("user-address.fields.city"))->required(); $table->width(3)->text('city')->label(trans("user-address.fields.city"))->required();
$table->width(2)->number('post_code')->label(trans("user-address.fields.post_code"))->required(); $table->width(2)->number('post_code')->label(trans("user-address.fields.post_code"))->required();
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment