TaoLer/view/taoler/admin/key_auth/edit.html

73 lines
2.6 KiB
HTML
Raw Normal View History

2020-01-09 18:03:33 +08:00
{extend name="public/base" /}
{block name="body"}
<div class="layui-form" lay-filter="layuiadmin-form-keyauth" id="layuiadmin-form-keyauth" style="padding: 20px 30px 0 0;">
<div class="layui-form-item">
<label class="layui-form-label">授权等级</label>
<div class="layui-input-inline">
<select name="auth_level" lay-verify="required">
<option {if condition="$keys.auth_level eq 0"} selected {/if} value="0">普通</option>
<option {if condition="$keys.auth_level eq 1"} selected {/if} value="1">初级</option>
<option {if condition="$keys.auth_level eq 2"} selected {/if} value="2">中级</option>
<option {if condition="$keys.auth_level eq 3"} selected {/if} value="3">高级</option>
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">用户</label>
<div class="layui-input-inline">
<input type="text" name="user" lay-verify="required" placeholder="请输入用户" autocomplete="off" class="layui-input" value="{$keys.user}">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">域名</label>
<div class="layui-input-inline">
<input type="text" name="domain" lay-verify="required" placeholder="请输入域名" autocomplete="off" class="layui-input" value="{$keys.domain}">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">到期时间</label>
<div class="layui-input-inline">
<input type="text" name="end_time" id="end-time" lay-verify="required" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input" value="{$keys.end_time|date='Y-m-d'}">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">状态</label>
<div class="layui-input-inline">
<input type="text" name="status" lay-verify="required" placeholder="请设置状态" autocomplete="off" class="layui-input" value="{$keys.status}">
</div>
</div>
<div class="layui-form-item layui-hide">
<input type="button" lay-submit lay-filter="LAY-keyauth-submit" id="LAY-keyauth-submit" value="确认">
</div>
</div>
{/block}
{block name="js"}
<script>
layui.config({
base: '/static/admin/' //静态资源所在路径
}).extend({
index: 'lib/index' //主入口模块
}).use(['index','form','table','laydate'], function(){
var $ = layui.$
,form = layui.form
,table = layui.table
,laydate = layui.laydate;
//结束时间
laydate.render({
elem: '#end-time'
,btns: ['clear', 'now']
,trigger: 'click'
});
})
</script>
{/block}