Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
token
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wallet
token
Commits
7701f633
Commit
7701f633
authored
Oct 16, 2018
by
rlgy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角色状态默认为正常
parent
6b1c3b03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
_form.php
backend/views/admin/_form.php
+14
-14
No files found.
backend/views/admin/_form.php
View file @
7701f633
...
...
@@ -8,34 +8,34 @@ use common\core\ActiveForm;
?>
<?php
$form
=
ActiveForm
::
begin
([
'options'
=>
[
'class'
=>
"form-aaa "
'options'
=>
[
'class'
=>
"form-aaa "
]
]);
?>
<?=
$form
->
field
(
$model
,
'username'
)
->
iconTextInput
([
'class'
=>
'form-control c-md-2'
,
'iconPos'
=>
'left'
,
'iconClass'
=>
'icon-user'
,
'class'
=>
'form-control c-md-2'
,
'iconPos'
=>
'left'
,
'iconClass'
=>
'icon-user'
,
'placeholder'
=>
'登录账号'
,
// 'readonly' =>'readonly',
// 'readonly' =>'readonly',
])
->
label
(
false
)
?>
<?=
$form
->
field
(
$model
,
'password'
)
->
iconTextInput
([
'type'
=>
'password'
,
'class'
=>
'form-control c-md-2'
,
'iconPos'
=>
'left'
,
'iconClass'
=>
'icon-lock'
,
'type'
=>
'password'
,
'class'
=>
'form-control c-md-2'
,
'iconPos'
=>
'left'
,
'iconClass'
=>
'icon-lock'
,
'placeholder'
=>
'修改时,密码不变可不填'
])
->
label
(
false
)
?>
<input
type=
"hidden"
value=
"
<?=
$role
?>
"
name=
"role"
>
<?=
$form
->
field
(
$model
,
'status'
)
->
radioList
([
'1'
=>
'正常'
,
'0'
=>
'禁用'
])
->
label
(
'使用状态'
)
?>
<?php
$model
->
status
=
1
;
?>
<?=
$form
->
field
(
$model
,
'status'
)
->
radioList
([
'1'
=>
'正常'
,
'0'
=>
'禁用'
])
->
label
(
'使用状态'
)
?>
<div
class=
"form-actions"
>
<?=
Html
::
submitButton
(
'确定'
,
[
'class'
=>
'btn blue ajax-post'
,
'target-form'
=>
'form-aaa'
])
?>
<?=
Html
::
button
(
'返回'
,
[
'class'
=>
'btn '
,
'onclick'
=>
"javascript:history.go(-1);"
])
?>
<?=
Html
::
submitButton
(
'确定'
,
[
'class'
=>
'btn blue ajax-post'
,
'target-form'
=>
'form-aaa'
])
?>
<?=
Html
::
button
(
'返回'
,
[
'class'
=>
'btn '
,
'onclick'
=>
"javascript:history.go(-1);"
])
?>
</div>
<?php
ActiveForm
::
end
();
?>
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