chaoyu/view/manager/rule/edit.html

53 lines
2.6 KiB
HTML
Executable File

<div class="layui-card layui-col-md12">
<div class="layui-card-body">
{empty name='item'}
<p class="empty-msg">无效请求,该信息不存在</p>
{else /}
<form data-action="{:url('manager.rule/edit')}" 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">
{if isset($parent) && !empty($parent)}
{$parent.title}
{else /}
顶级权限
{/if}
</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]" value="{$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]" value="{$item.name}" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">是否显示</label>
<div class="layui-input-block ">
<input type="radio" {if $item['status'] == 1}checked="checked"{/if} name="item[status]" value="1" title="显示" />
<input type="radio" {if $item['status'] == 0}checked="checked"{/if} 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" {if $item['is_base'] == 1}checked="checked"{/if} name="item[is_base]" value="1" title="是" />
<input type="radio" {if $item['is_base'] == 0}checked="checked"{/if} 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="id" value="{$item.id}" />
<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submitAll">保存</button>
</div>
</div>
</form>
{/empty}
</div>
</div>