2021-07-29 14:22:47 +08:00

46 lines
2.1 KiB
PHP

<form class="layui-form layui-card" id="AuthForm" action="{:sysuri()}" data-auto="true" method="post" autocomplete="off">
<div class="layui-card-body padding-left-40">
<label class="layui-form-item relative block">
<span class="color-green font-w7">权限名称</span>
<span class="color-desc margin-left-5">Permission Name</span>
<input maxlength="100" class="layui-input" name="title" value='{$vo.title|default=""}' required placeholder="请输入权限名称">
<!--<span class="help-block">访问权限名称需要保持不重复,在给用户授权时需要根据名称选择!</span>-->
</label>
{notempty name='bases'}
<div class="layui-form-item">
<span class="color-green font-w7 label-required-prev">身份权限</span>
<span class="color-desc margin-left-5">Identity Permissions</span>
<select class="layui-select" name="utype">
{foreach $bases as $k=>$v}
{if isset($vo.utype) && $k eq $vo.utype}
<option selected value="{$k}">{$v.name} ( {$v.code} )</option>
{else}
<option value="{$k}">{$v.name} ( {$v.code} )</option>
{/if}{/foreach}
</select>
</div>
{/notempty}
<label class="layui-form-item relative block">
<span class="color-green font-w7">权限描述</span>
<span class="color-desc margin-left-5">Permission Description</span>
<textarea placeholder="请输入权限描述" maxlength="200" class="layui-textarea" name="desc">{$vo.desc|default=""}</textarea>
</label>
</div>
<div class="hr-line-dashed"></div>
{notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
<div class="layui-form-item text-center">
<button class="layui-btn" type='submit'>保存数据</button>
<button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>
</div>
</form>
<script>
layui.form.render();
$('#AuthForm').parent().css('overflow', 'revert');
</script>