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
f3785c46
Commit
f3785c46
authored
Apr 24, 2019
by
shajiaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auth
parent
51683f82
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
add.php
backend/views/auth/add.php
+18
-0
edit.php
backend/views/auth/edit.php
+24
-0
No files found.
backend/views/auth/add.php
View file @
f3785c46
...
...
@@ -28,6 +28,24 @@ use common\helpers\ArrayHelper;
<textarea
class=
"form-control c-md-4"
name=
"param[description]"
rows=
"3"
></textarea>
<span
class=
"help-block"
></span>
</div>
<div
class=
"form-group"
>
<div>
<label>
所属钱包
</label>
<span
class=
"help-inline"
></span>
</div>
<div
class=
"layui-input-inline"
>
<select
class=
"layui-select"
name=
"param[platform_id]"
id=
"param[platform_id]"
>
<option
value=
""
>
选择一个钱包
</option>
<?php
foreach
(
$platforms
as
$key
=>
$value
)
:
?>
<option
value=
"
<?=
$value
[
'id'
]
?>
"
>
<?=
$value
[
'name'
]
?>
</option>
<?php
endforeach
;
?>
</select>
</div>
</div>
<div
class=
"form-actions"
>
<?=
Html
::
submitButton
(
'确定'
,
[
'class'
=>
'btn blue ajax-post'
,
'target-form'
=>
'form-aaa'
])
?>
<?=
Html
::
button
(
'返回'
,
[
'class'
=>
'btn '
,
'onclick'
=>
"javascript:history.go(-1);"
])
?>
...
...
backend/views/auth/edit.php
View file @
f3785c46
...
...
@@ -28,6 +28,30 @@ use yii\helpers\Html;
<span
class=
"help-block"
></span>
</div>
<div
class=
"form-group"
>
<div>
<label>
所属钱包
</label>
<span
class=
"help-inline"
></span>
</div>
<div
class=
"layui-input-inline"
>
<select
class=
"layui-select"
name=
"param[platform_id]"
id=
"param[platform_id]"
>
<option
value=
""
>
选择一个钱包
</option>
<?php
foreach
(
$platforms
as
$key
=>
$value
)
:
?>
<option
value=
"
<?=
$value
[
'id'
]
?>
"
<?php
if
(
$value
[
'id'
]
==
$role
->
data
){
echo
"selected=selected"
;
}
?>
>
<?=
$value
[
'name'
]
?>
</option>
<?php
endforeach
;
?>
</select>
</div>
</div>
<div
class=
"form-actions"
>
<?=
Html
::
submitButton
(
'确定'
,
[
'class'
=>
'btn blue ajax-post'
,
'target-form'
=>
'form-aaa'
])
?>
<?=
Html
::
button
(
'返回'
,
[
'class'
=>
'btn '
,
'onclick'
=>
"javascript:history.go(-1);"
])
?>
...
...
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