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
df6ef40a
authored
Nov 16, 2022
by
宁成龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
完善翻译
parent
9f4755c9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
app/Admin/Actions/User/UserAssignAction.php
app/Admin/Actions/User/UserAssignAction.php
View file @
df6ef40a
...
...
@@ -20,22 +20,16 @@ class UserAssignAction extends BatchAction
protected
$htmlClasses
=
[
'btn btn-primary btn-sm btn-mini'
];
// 注意action的构造方法参数一定要给默认值
public
function
__construct
(
$title
=
null
,
$action
=
1
)
public
function
__construct
()
{
$this
->
title
=
$title
;
$this
->
action
=
$action
;
}
// 确认弹窗信息
public
function
confirm
()
{
return
'您确定要已选中的文章吗?'
;
$this
->
title
=
""
;
$this
->
action
=
1
;
}
public
function
render
()
{
$form
=
AssignUserHandle
::
make
();
$buttonName
=
trans
(
'user.labels.
handle
'
);
$buttonName
=
trans
(
'user.labels.
assign
'
);
return
Modal
::
make
()
->
lg
()
->
title
(
$this
->
title
)
->
body
(
$form
->
payload
([]))
->
onLoad
(
$this
->
getModalScript
())
->
button
(
'<button class="btn btn-primary">
<i class="feather icon-check-circle"></i><span class="d-none d-sm-inline" style="margin-left: 5px">'
.
$buttonName
.
'</span>
</button>'
);
...
...
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