切换导航条
此项目
正在载入...
登录
何书鹏
/
recruit
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
何书鹏
4 years ago
提交
956a8949fbd28194082d761d80286609147cb964
1 个父辈
5ed53f13
1 个管道 的构建
通过
耗费 0 秒
分类bug
变更
3
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
2 行增加
和
60 行删除
application/admin/view/category/edit.html
application/admin/view/category/index.html
public/assets/js/backend/category.js
application/admin/view/category/edit.html
查看文件 @
956a894
...
...
@@ -13,42 +13,12 @@
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"c-pid"
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Pid')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<select
id=
"c-pid"
data-rule=
"required"
class=
"form-control selectpicker"
name=
"row[pid]"
>
{foreach name="parentList" item="vo"}
<option
data-type=
"{$vo.type}"
class=
"{:$vo.type==$row.type||$vo.type=='all'?'':'hide'}"
value=
"{$key}"
{
in
name=
"key"
value=
"$row.pid"
}
selected
{/
in
}
>
{$vo.name}
</option>
{/foreach}
</select>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"c-name"
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Name')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-name"
data-rule=
"required"
class=
"form-control"
name=
"row[name]"
type=
"text"
value=
"{$row.name|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"c-nickname"
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Nickname')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-nickname"
data-rule=
"required"
class=
"form-control"
name=
"row[nickname]"
type=
"text"
value=
"{$row.nickname|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"c-flag"
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Flag')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<select
id=
"c-flag"
class=
"form-control selectpicker"
multiple=
""
name=
"row[flag][]"
>
{foreach name="flagList" item="vo"}
<option
value=
"{$key}"
{
in
name=
"key"
value=
"$row.flag"
}
selected
{/
in
}
>
{$vo}
</option>
{/foreach}
</select>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"c-image"
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Image')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<div
class=
"input-group"
>
...
...
@@ -63,29 +33,11 @@
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"c-keywords"
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Keywords')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-keywords"
class=
"form-control"
name=
"row[keywords]"
type=
"text"
value=
"{$row.keywords|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"c-description"
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Description')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<textarea
id=
"c-description"
class=
"form-control"
name=
"row[description]"
>
{$row.description|htmlentities}
</textarea>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"c-weigh"
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Weigh')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-weigh"
class=
"form-control"
name=
"row[weigh]"
type=
"number"
value=
"{$row.weigh}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Status')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
{:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
</div>
</div>
<div
class=
"form-group layer-footer"
>
<label
class=
"control-label col-xs-12 col-sm-2"
></label>
<div
class=
"col-xs-12 col-sm-8"
>
...
...
application/admin/view/category/index.html
查看文件 @
956a894
...
...
@@ -14,18 +14,11 @@
<div
class=
"tab-pane fade active in"
id=
"one"
>
<div
class=
"widget-body no-padding"
>
<div
id=
"toolbar"
class=
"toolbar"
>
{:build_toolbar('refresh,add,edit,del')}
<div
class=
"dropdown btn-group {:$auth->check('category/multi')?'':'hide'}"
>
<a
class=
"btn btn-primary btn-more dropdown-toggle btn-disabled disabled"
data-toggle=
"dropdown"
><i
class=
"fa fa-cog"
></i>
{:__('More')}
</a>
<ul
class=
"dropdown-menu text-left"
role=
"menu"
>
<li><a
class=
"btn btn-link btn-multi btn-disabled disabled"
href=
"javascript:;"
data-params=
"status=normal"
><i
class=
"fa fa-eye"
></i>
{:__('Set to normal')}
</a></li>
<li><a
class=
"btn btn-link btn-multi btn-disabled disabled"
href=
"javascript:;"
data-params=
"status=hidden"
><i
class=
"fa fa-eye-slash"
></i>
{:__('Set to hidden')}
</a></li>
</ul>
</div>
{:build_toolbar('refresh,edit')}
</div>
<table
id=
"table"
class=
"table table-striped table-bordered table-hover"
data-operate-edit=
"{:$auth->check('category/edit')}"
data-operate-del=
"
{:$auth->check('category/del')}"
data-operate-del=
"
false"
width=
"100%"
>
</table>
</div>
...
...
public/assets/js/backend/category.js
查看文件 @
956a894
...
...
@@ -32,11 +32,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
return
value
.
toString
().
replace
(
/
(
&|&
)
nbsp;/g
,
' '
);
}
},
{
field
:
'nickname'
,
title
:
__
(
'Nickname'
)},
{
field
:
'flag'
,
title
:
__
(
'Flag'
),
formatter
:
Table
.
api
.
formatter
.
flag
},
{
field
:
'image'
,
title
:
__
(
'Image'
),
operate
:
false
,
events
:
Table
.
api
.
events
.
image
,
formatter
:
Table
.
api
.
formatter
.
image
},
{
field
:
'weigh'
,
title
:
__
(
'Weigh'
)},
{
field
:
'status'
,
title
:
__
(
'Status'
),
operate
:
false
,
formatter
:
Table
.
api
.
formatter
.
status
},
{
field
:
'operate'
,
title
:
__
(
'Operate'
),
table
:
table
,
events
:
Table
.
api
.
events
.
operate
,
formatter
:
Table
.
api
.
formatter
.
operate
}
]
]
...
...
请
注册
或
登录
后发表评论