<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>角色维护</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <link rel="stylesheet" href="../../static/assets/lib/layui/css/layui.css" th:href="@{/assets/library/layui/css/layui.css}" media="all">
    <link rel="stylesheet" href="../../static/assets/lib/font/css/font-awesome.css" th:href="@{/assets/library/font/css/font-awesome.css}" media="all">
    <link rel="stylesheet" href="../../static/assets/lib/jsplus/zTree_v3/css/zTreeStyle/zTreeStyle.css" th:href="@{/assets/library/jsplus/zTree_v3/css/zTreeStyle/zTreeStyle.css}" media="all">
    <link rel="stylesheet" href="../../static/assets/css/admin.css" th:href="@{/assets/css/admin.css}">

</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">
    <input type="hidden" id="id" name="id" th:value="${session.role.id}"/>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">角色名称</label>
            <div class="layui-input-block">
                <input type="text" id="roleName" name="roleName" class="layui-input" th:value="${session.role.roleName}"
                       placeholder="请输入角色名称">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">角色类型</label>
            <div class="layui-input-inline">
                <input type="text" id="roleType" name="roleType" class="layui-input roleType" lay-verify="required" th:value="${session.role.roleType}"
                       placeholder="请输入角色类型">
            </div>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">描述</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入描述" id="remark" name="remark" th:text="${session.role.remark}" class="layui-textarea roleDesc"></textarea>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="save">保存</button>
            <button type="reset" class="layui-btn layui-btn-sm layui-btn-primary">清除</button>
        </div>
    </div>
</form>
<script src="../../static/assets/lib/jquery/jquery.js" th:src="@{/assets/library/jquery/jquery.js}"></script>
<script src="../../static/assets/lib/jsplus/zTree_v3/js/jquery.ztree.all.js" th:src="@{/assets/library/jsplus/zTree_v3/js/jquery.ztree.all.js}"></script>
<script type="text/javascript" src="../../static/assets/lib/layui/layui.js" th:src="@{/assets/library/layui/layui.js}"></script>
<script type="text/javascript" src="../../static/business/upms/role/list.js" th:src="@{/business/upms/role/list.js}"></script>
<script th:inline="javascript" type="text/javascript">
    var ctxPath = [[${#httpServletRequest.getContextPath()}]];
</script>
</body>
</html>