45 lines
2.2 KiB
HTML
Executable File
45 lines
2.2 KiB
HTML
Executable File
<div class="layui-card layui-col-md12">
|
|
<div class="layui-card-body">
|
|
<form data-action="{:url('manager.rule/add')}" class="layui-form ">
|
|
<input type="hidden" name="__token__" value="{$_token}" />
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">上级</label>
|
|
<div class="layui-form-mid">
|
|
{$parentId?$parent['title']:'顶级权限'}
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">名称</label>
|
|
<div class="layui-input-block">
|
|
<input class="layui-input" type="text" name="item[title]" />
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">标识</label>
|
|
<div class="layui-input-block">
|
|
<input class="layui-input" type="text" name="item[name]" />
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">是否显示</label>
|
|
<div class="layui-input-block ">
|
|
<input type="radio" name="item[status]" value="1" title="显示" />
|
|
<input type="radio" checked="checked" name="item[status]" 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="item[is_base]" value="1" title="是" />
|
|
<input type="radio" checked="checked" name="item[is_base]" value="0" title="否" />
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<div class="layui-input-block">
|
|
<input type="hidden" class="layui-input" name="item[parent_id]" value="{$parentId}" />
|
|
<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submitAll">保存</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div> |