chaoyu/view/manager/model/index.html

48 lines
2.3 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" data-width="500" data-href="{:url('manager.model/add')}" title="新增模型">
<i class="layui-icon layui-icon-add-1"></i>新增模型
</a>
</div>
<table class="layui-table">
<colgroup>
<col>
<col>
<col>
<col>
<col width="50%">
</colgroup>
<thead>
<td>名称</td>
<td>后台管理</td>
<td>前端模版</td>
<td>操作</td>
</thead>
{foreach name="items" item="item"}
<tr class="table-lv1" data-id="{$item.id}" data-url="{:url('manager.model/sort')}">
<td><a class="layui-btn layui-btn-title" data-width="500" data-href="{:url('manager.model/edit',['id' => $item['id']])}" title="编辑">{$item.name}</a></td>
<td>{$item.manager}</td>
<td>{$item.template}&nbsp;</td>
<td>
<div style="width: 265px;">
<a class="sort layui-btn layui-btn-primary layui-btn-xs" data-id="{$item['id']}" data-sort="up" data-url="{:url('manager.model/sort')}" href="javascript:void(0);">
<i class=""></i>向上
</a>
<a class="sort layui-btn layui-btn-primary layui-btn-xs" data-id="{$item['id']}" data-sort="down" data-url="{:url('manager.model/sort')}" href="javascript:void(0);">
<i class=""></i>向下
</a>
<a class="layui-btn layui-btn-warm layui-btn-xs" data-width="500" data-href="{:url('manager.model/edit',['id'=>$item['id']])}" title="编辑">
<i class=""></i>编辑
</a>
<a class="del layui-btn layui-btn-danger layui-btn-xs" data-url="{:url('manager.model/del')}" data-id="{$item.id}">
<i class=""></i>删除
</a>
</div>
</td>
</tr>
{/foreach}
</table>
</div>
</div>