Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
85bb1c35
authored
Dec 02, 2022
by
宁成龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化输入体验
parent
6ae024dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
app/Admin/Forms/UserAddress/SaveUserAddressHandle.php
app/Admin/Renderable/CreateUser.php
app/Admin/Forms/UserAddress/SaveUserAddressHandle.php
View file @
85bb1c35
...
...
@@ -98,6 +98,8 @@ class SaveUserAddressHandle extends Form implements LazyRenderable
$this
->
row
(
function
(
Row
$row
)
{
$row
->
width
(
3
)
->
select
(
'country'
)
->
options
(
Country
::
getCountryMap
())
->
required
();
$row
->
width
(
3
)
->
text
(
'province'
)
->
default
(
''
);
});
$this
->
row
(
function
(
Row
$row
)
{
$row
->
width
(
3
)
->
text
(
'city'
)
->
required
();
$row
->
width
(
2
)
->
number
(
'post_code'
)
->
required
();
});
...
...
app/Admin/Renderable/CreateUser.php
View file @
85bb1c35
...
...
@@ -63,6 +63,8 @@ class CreateUser extends \Dcat\Admin\Support\LazyRenderable
(
Country
::
getCountryMap
())
->
required
();
$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
(
2
)
->
number
(
'post_code'
)
->
label
(
trans
(
"user-address.fields.post_code"
))
->
required
();
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment