caipan_shop_admin/view/manager/menu/add.html

81 lines
4.0 KiB
HTML
Executable File

{layout name="manager/layout" /}
<style>
.layui-iconpicker-body.layui-iconpicker-body-page .hide {display: none;}
</style>
<div class="layuimini-container location-operate-page">
<div class="layuimini-main">
<div class="layui-form layuimini-form">
<div class="layui-form-item">
<label class="layui-form-label required">上级</label>
<div class="layui-input-block">
<div id="parent-menu" data-menu="{$menuList ?? ''}" class="xm-select-demo"></div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">类型</label>
<div class="layui-input-block">
<input type="radio" name="type" value="menu" title="菜单" checked>
<input type="radio" name="type" value="action" title="操作">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label required">标题</label>
<div class="layui-input-block">
<input type="text" name="title" lay-verify="required" lay-reqtext="菜单标题不能为空" placeholder="请输入菜单标题" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label required">路由标识</label>
<div class="layui-input-block">
<input type="text" name="name" lay-verify="required" lay-reqtext="路由标识不能为空" placeholder="格式:控制器:方法 如menu:index" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">图标</label>
<div class="layui-input-block">
<input type="text" name="icon" lay-filter="iconPicker" value="" class="hide iconPicker">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">地址</label>
<div class="layui-input-block">
<input type="text" name="href" placeholder="请输入URL地址" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">是否显示</label>
<div class="layui-input-block">
<input type="radio" name="is_show" value="1" title="是" checked>
<input type="radio" name="is_show" value="0" title="否">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">打开方式</label>
<div class="layui-input-block">
<input type="radio" name="target" value="_self" title="当前页" checked>
<input type="radio" name="target" value="_blank" title="新开页">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">状态</label>
<div class="layui-input-block">
<input type="radio" name="status" value="1" title="启用" checked>
<input type="radio" name="status" value="0" title="禁用" >
</div>
</div>
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">备注信息</label>
<div class="layui-input-block">
<textarea name="remark" class="layui-textarea" placeholder="请输入备注信息"></textarea>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn layui-btn-normal" data-url="/manager/menu/add" lay-submit lay-filter="saveBtn">确认保存</button>
</div>
</div>
</div>
</div>
</div>
<script src="__MANAGER__/js/menu.js?v={:mt_rand()}"></script>