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
9f4755c9
authored
Nov 16, 2022
by
宁成龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
完善翻译
parent
3299b342
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
22 deletions
app/Admin/Renderable/CreateUser.php
resources/lang/en/user-address.php
resources/lang/zh_CN/user-address.php
app/Admin/Renderable/CreateUser.php
View file @
9f4755c9
...
@@ -45,29 +45,32 @@ class CreateUser extends \Dcat\Admin\Support\LazyRenderable
...
@@ -45,29 +45,32 @@ class CreateUser extends \Dcat\Admin\Support\LazyRenderable
$form
->
row
(
function
(
Form\Row
$form
)
{
$form
->
row
(
function
(
Form\Row
$form
)
{
$form
->
array
(
'user_address_list'
,
function
(
$table
)
{
$form
->
array
(
'user_address_list'
,
function
(
$table
)
{
$table
->
row
(
function
(
Form\Row
$table
)
{
$table
->
row
(
function
(
Form\Row
$table
)
{
$table
->
width
(
3
)
->
text
(
'first_name'
)
->
required
();
$table
->
width
(
3
)
->
text
(
'first_name'
)
->
label
(
trans
(
"user-address.fields.first_name"
))
->
required
();
$table
->
width
(
3
)
->
text
(
'last_name'
)
->
required
();
$table
->
width
(
3
)
->
text
(
'last_name'
)
->
label
(
trans
(
"user-address.fields.last_name"
))
->
required
();
});
});
$table
->
row
(
function
(
Form\Row
$table
)
{
$table
->
row
(
function
(
Form\Row
$table
)
{
$table
->
width
(
3
)
->
select
(
'address_type'
)
->
options
(
admin_trans
(
'user-address.options.address_type'
))
$table
->
width
(
3
)
->
select
(
'address_type'
)
->
label
(
trans
(
"user-address.fields.address_type"
))
->
options
(
admin_trans
(
'user-address.options.address_type'
))
->
required
();
->
required
();
$table
->
width
(
3
)
->
text
(
'company_name'
);
$table
->
width
(
3
)
->
text
(
'company_name'
)
->
label
(
trans
(
"user-address.fields.company_name"
))
;
});
});
$table
->
row
(
function
(
Form\Row
$table
)
{
$table
->
row
(
function
(
Form\Row
$table
)
{
$table
->
width
(
3
)
->
email
(
'email'
)
->
required
();
$table
->
width
(
3
)
->
email
(
'email'
)
->
label
(
trans
(
"user-address.fields.email"
))
->
required
();
$table
->
width
(
3
)
->
text
(
'phone'
)
->
required
();
$table
->
width
(
3
)
->
text
(
'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'
)
->
options
(
Country
::
getCountryMap
())
->
required
();
$table
->
width
(
3
)
->
select
(
'country'
)
->
label
(
trans
(
"user-address.fields.country"
))
->
options
$table
->
width
(
3
)
->
text
(
'province'
);
(
Country
::
getCountryMap
())
$table
->
width
(
3
)
->
text
(
'city'
)
->
required
();
->
required
();
$table
->
width
(
2
)
->
text
(
'post_code'
)
->
required
();
$table
->
width
(
3
)
->
text
(
'province'
)
->
label
(
trans
(
"user-address.fields.province"
));
$table
->
width
(
3
)
->
text
(
'city'
)
->
label
(
trans
(
"user-address.fields.city"
))
->
required
();
$table
->
width
(
2
)
->
text
(
'post_code'
)
->
label
(
trans
(
"user-address.fields.post_code"
))
->
required
();
});
});
$table
->
row
(
function
(
Form\Row
$table
)
{
$table
->
row
(
function
(
Form\Row
$table
)
{
$table
->
width
(
12
)
->
textarea
(
'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'
)
->
required
();
$table
->
width
(
3
)
->
switch
(
'is_default'
)
->
label
(
trans
(
"user-address.fields.is_default"
))
->
required
();
});
});
});
});
});
});
...
...
resources/lang/en/user-address.php
View file @
9f4755c9
...
@@ -11,18 +11,21 @@ return [
...
@@ -11,18 +11,21 @@ return [
'fields'
=>
[
'fields'
=>
[
"address_id"
=>
"用户用户地址ID"
,
"address_id"
=>
"用户用户地址ID"
,
"user_id"
=>
"会员ID"
,
"user_id"
=>
"会员ID"
,
"address_type"
=>
"地址类型
;0:个人,1:公司
"
,
"address_type"
=>
"地址类型"
,
"consignee"
=>
"收货人
/收货公司
"
,
"consignee"
=>
"收货人"
,
"email"
=>
"邮箱"
,
"email"
=>
"邮箱"
,
"post_code"
=>
"邮政编码"
,
"post_code"
=>
"邮政编码"
,
"phone"
=>
"手机
/电话
"
,
"phone"
=>
"手机"
,
"country"
=>
"国家"
,
"country"
=>
"国家"
,
"province"
=>
"省份"
,
"province"
=>
"省份"
,
"city"
=>
"城市"
,
"city"
=>
"城市"
,
"detail_address"
=>
"详细地址"
,
"detail_address"
=>
"详细地址"
,
"is_default"
=>
"是否默认
(1=是|0=否)
"
,
"is_default"
=>
"是否默认"
,
"create_time"
=>
"创建时间"
,
"create_time"
=>
"创建时间"
,
"update_time"
=>
"修改时间"
,
"update_time"
=>
"修改时间"
,
"last_name"
=>
"姓"
,
"first_name"
=>
"名"
,
"company_name"
=>
"公司名称"
,
],
],
'options'
=>
[
'options'
=>
[
"address_type"
=>
[
"address_type"
=>
[
...
...
resources/lang/zh_CN/user-address.php
View file @
9f4755c9
...
@@ -8,25 +8,28 @@ return [
...
@@ -8,25 +8,28 @@ return [
'fields'
=>
[
'fields'
=>
[
"address_id"
=>
"用户用户地址ID"
,
"address_id"
=>
"用户用户地址ID"
,
"user_id"
=>
"会员ID"
,
"user_id"
=>
"会员ID"
,
"address_type"
=>
"地址类型
;0:个人,1:公司
"
,
"address_type"
=>
"地址类型"
,
"consignee"
=>
"收货人
/收货公司
"
,
"consignee"
=>
"收货人"
,
"email"
=>
"邮箱"
,
"email"
=>
"邮箱"
,
"post_code"
=>
"邮政编码"
,
"post_code"
=>
"邮政编码"
,
"phone"
=>
"手机
/电话
"
,
"phone"
=>
"手机"
,
"country"
=>
"国家"
,
"country"
=>
"国家"
,
"province"
=>
"省份"
,
"province"
=>
"省份"
,
"city"
=>
"城市"
,
"city"
=>
"城市"
,
"detail_address"
=>
"详细地址"
,
"detail_address"
=>
"详细地址"
,
"is_default"
=>
"是否默认
(1=是|0=否)
"
,
"is_default"
=>
"是否默认"
,
"create_time"
=>
"创建时间"
,
"create_time"
=>
"创建时间"
,
"update_time"
=>
"修改时间"
,
"update_time"
=>
"修改时间"
,
"last_name"
=>
"姓"
,
"first_name"
=>
"名"
,
"company_name"
=>
"公司名称"
,
],
],
'options'
=>
[
'options'
=>
[
"address_type"
=>
[
"address_type"
=>
[
"0"
=>
"个人"
,
"0"
=>
"个人"
,
"1"
=>
"公司"
,
"1"
=>
"公司"
,
],
],
"is_default"
=>
[
"is_default"
=>
[
"1"
=>
"是"
,
"1"
=>
"是"
,
"0"
=>
"否"
,
"0"
=>
"否"
,
],
],
...
...
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