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
884dfb86
authored
Nov 24, 2022
by
孙龙
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://git.ichunt.net/semour/semour_admin
parents
169ff10b
d0fcf0fe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
app/Admin/Forms/User/EditUserHandle.php
app/Admin/Forms/UserAddress/SaveUserAddressHandle.php
app/Admin/Renderable/CreateUser.php
app/Admin/Service/UserAddressService.php
app/Admin/Forms/User/EditUserHandle.php
View file @
884dfb86
...
@@ -61,7 +61,7 @@ class EditUserHandle extends Form implements LazyRenderable
...
@@ -61,7 +61,7 @@ class EditUserHandle extends Form implements LazyRenderable
$form
->
width
(
5
)
->
text
(
'last_name'
);
$form
->
width
(
5
)
->
text
(
'last_name'
);
});
});
$this
->
row
(
function
(
Row
$form
)
{
$this
->
row
(
function
(
Row
$form
)
{
$form
->
width
(
5
)
->
number
(
'phone'
)
->
required
();
$form
->
width
(
5
)
->
mobile
(
'phone'
)
->
required
();
$form
->
width
(
5
)
->
email
(
'email'
);
$form
->
width
(
5
)
->
email
(
'email'
);
});
});
$this
->
row
(
function
(
Row
$form
)
{
$this
->
row
(
function
(
Row
$form
)
{
...
...
app/Admin/Forms/UserAddress/SaveUserAddressHandle.php
View file @
884dfb86
...
@@ -93,7 +93,7 @@ class SaveUserAddressHandle extends Form implements LazyRenderable
...
@@ -93,7 +93,7 @@ class SaveUserAddressHandle extends Form implements LazyRenderable
});
});
$this
->
row
(
function
(
Row
$row
)
{
$this
->
row
(
function
(
Row
$row
)
{
$row
->
width
(
3
)
->
email
(
'email'
)
->
required
();
$row
->
width
(
3
)
->
email
(
'email'
)
->
required
();
$row
->
width
(
3
)
->
number
(
'phone'
)
->
required
();
$row
->
width
(
3
)
->
mobile
(
'phone'
)
->
required
();
});
});
$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
();
...
...
app/Admin/Renderable/CreateUser.php
View file @
884dfb86
...
@@ -34,7 +34,7 @@ class CreateUser extends \Dcat\Admin\Support\LazyRenderable
...
@@ -34,7 +34,7 @@ class CreateUser extends \Dcat\Admin\Support\LazyRenderable
$form
->
width
(
4
)
->
text
(
'last_name'
)
->
required
();
$form
->
width
(
4
)
->
text
(
'last_name'
)
->
required
();
});
});
$form
->
row
(
function
(
Form\Row
$form
)
{
$form
->
row
(
function
(
Form\Row
$form
)
{
$form
->
width
(
4
)
->
number
(
'phone'
)
->
required
();
$form
->
width
(
4
)
->
mobile
(
'phone'
)
->
required
();
$form
->
width
(
4
)
->
email
(
'email'
)
->
required
();
$form
->
width
(
4
)
->
email
(
'email'
)
->
required
();
});
});
$form
->
row
(
function
(
Form\Row
$form
)
{
$form
->
row
(
function
(
Form\Row
$form
)
{
...
@@ -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
)
->
number
(
'phone'
)
->
label
(
trans
(
"user-address.fields.phone"
))
->
required
();
$table
->
width
(
3
)
->
mobile
(
'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
...
...
app/Admin/Service/UserAddressService.php
View file @
884dfb86
...
@@ -16,7 +16,7 @@ class UserAddressService
...
@@ -16,7 +16,7 @@ class UserAddressService
$grid
->
column
(
'address_id'
);
$grid
->
column
(
'address_id'
);
$grid
->
column
(
'consignee'
);
$grid
->
column
(
'consignee'
);
$grid
->
email
(
'email'
);
$grid
->
email
(
'email'
);
$grid
->
number
(
'phone'
);
$grid
->
mobile
(
'phone'
);
$grid
->
column
(
'detail_address'
);
$grid
->
column
(
'detail_address'
);
$grid
->
column
(
'city'
);
$grid
->
column
(
'city'
);
$grid
->
column
(
'address_type'
)
->
using
(
admin_trans
(
'user-address.options.address_type'
));
$grid
->
column
(
'address_type'
)
->
using
(
admin_trans
(
'user-address.options.address_type'
));
...
...
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