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
edfaec33
authored
Nov 22, 2022
by
宁成龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
完善输入体验
parent
02eb1d83
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app/Admin/Renderable/CreateUser.php
app/Admin/Renderable/CreateUser.php
View file @
edfaec33
...
...
@@ -56,7 +56,7 @@ class CreateUser extends \Dcat\Admin\Support\LazyRenderable
});
$table
->
row
(
function
(
Form\Row
$table
)
{
$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
->
width
(
3
)
->
select
(
'country'
)
->
label
(
trans
(
"user-address.fields.country"
))
->
options
...
...
@@ -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
->
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"
));
});
});
});
...
...
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