chaoyu/view/manager/group/index.html

41 lines
1.8 KiB
HTML
Executable File

{layout name="manager/layout" /}
<div class="layui-card layui-col-md12">
<div class="layui-card-body">
<div class="top-operate">
<a class="layui-btn layui-btn-normal" id="add" data-href="{:url('manager.group/add')}" data-width="450" title="添加">
<i class="layui-icon layui-icon-add-1"></i>添加角色
</a>
</div>
<table class="layui-table" id="check_box">
<colgroup>
<col width="25%">
<col width="25%">
<col width="50%">
</colgroup>
<thead>
<td>名称</td>
<td>状态</td>
<td>操作</td>
</thead>
{foreach name="list" item="item"}
<tr class="select_box">
<td>{$item.title}</td>
<td>{$item.status?'正常':'禁用'}</td>
<td>
<div>
<a class="layui-btn layui-btn-primary layui-btn-xs" data-href="{:url('manager.group/rule',['group_id' => $item['id']])}" title="权限 - {$item.title}">
<i class=""></i>权限
</a>
<a class="layui-btn layui-btn-warm layui-btn-xs" data-width="450" data-href="{:url('manager.group/edit',['id' => $item['id']])}" title="编辑">
<i class=""></i>编辑
</a>
<a class="del layui-btn layui-btn-danger layui-btn-xs" data-url="{:url('manager.group/del')}" data-id="{$item['id']}" href="javascript:void(0);">
<i class=""></i>删除
</a>
</div>
</td>
</tr>
{/foreach}
</table>
</div>
</div>