<!DOCTYPE html>
<html lang="zh">
<head>
    <@meta/>
	<title>角色-编辑</title>
    <#include "admin/common/include_hplus.ftl">
    <#include "admin/common/include_form.ftl">
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox">
<#--                <div class="ibox-title">-->
<#--                    <h3>角色编辑</h3><a href="javascript:history.back(-1);" class="btn btn-link">| 返回列表</a>-->
<#--                </div>-->
                <div class="ibox-content">
                    <form class="form-horizontal m-t" action="<@contextPath/>/sys/role/saveEntity" method="post">
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="text-danger">*</span>名称：</label>
                            <div class="col-sm-8">
                                <input class="form-control input-sm" type="text" required="" aria-required="true" name="name" value="${entity.name }">
                            </div>
                        </div>
                        <!--<div class="form-group">-->
                            <!--<label class="col-sm-2 control-label"><span class="text-danger">*</span>代码：</label>-->
                            <!--<div class="col-sm-8">-->
                                <!--<input class="form-control input-sm" type="text" required="" aria-required="true" name="code" value="${entity.code }" placeholder="保存后无法修改" <#if entity.oid??>readonly</#if>>-->
                            <!--</div>-->
                        <!--</div>-->
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="text-danger">*</span>状态：</label>
                            <div class="col-sm-8">
                                <div class="radio i-checks">
                                    <label><input type="radio" name="state" value="1" checked="">启用</label>
                                    <label><input type="radio" name="state" value="2" <#if entity.state == '2'>checked</#if>>禁用</label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-8">
                                <input class="form-control input-sm" type="text" name="remark" value="${entity.remark }">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button class="btn btn-primary" type="submit">提交</button>
                            </div>
                        </div>
						<input type="hidden" name="oid" value="${entity.oid }">
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(function(){

        $.form.render(function () {
            parent.MsgBox.windowReturnData();
        });

    });
</script>
</body>
</html>
