Commit edfaec33 by 宁成龙

完善输入体验

parent 02eb1d83
Showing with 2 additions and 2 deletions
...@@ -56,7 +56,7 @@ class CreateUser extends \Dcat\Admin\Support\LazyRenderable ...@@ -56,7 +56,7 @@ class CreateUser extends \Dcat\Admin\Support\LazyRenderable
}); });
$table->row(function (Form\Row $table) { $table->row(function (Form\Row $table) {
$table->width(3)->email('email')->label(trans("user-address.fields.email"))->required(); $table->width(3)->email('email')->label(trans("user-address.fields.email"))->required();
$table->width(3)->text('phone')->label(trans("user-address.fields.phone"))->required(); $table->width(3)->number('phone')->label(trans("user-address.fields.phone"))->required();
}); });
$table->row(function (Form\Row $table) { $table->row(function (Form\Row $table) {
$table->width(3)->select('country')->label(trans("user-address.fields.country"))->options $table->width(3)->select('country')->label(trans("user-address.fields.country"))->options
...@@ -70,7 +70,7 @@ class CreateUser extends \Dcat\Admin\Support\LazyRenderable ...@@ -70,7 +70,7 @@ class CreateUser extends \Dcat\Admin\Support\LazyRenderable
$table->width(12)->textarea('detail_address')->label(trans("user-address.fields.detail_address"))->required(); $table->width(12)->textarea('detail_address')->label(trans("user-address.fields.detail_address"))->required();
}); });
$table->row(function (Form\Row $table) { $table->row(function (Form\Row $table) {
$table->width(3)->switch('is_default')->label(trans("user-address.fields.is_default"))->required(); $table->width(3)->switch('is_default')->label(trans("user-address.fields.is_default"));
}); });
}); });
}); });
......
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