<!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>${module.name}</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/config/saveCfg" 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" datatype="s" name="cfgName" value="${entity.cfgName }" 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">
                                <input class="form-control input-sm" type="text" required="" aria-required="true" name="cfgDescribe" value="${entity.cfgDescribe }">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="text-danger">*</span>配置项值：</label>
                            <div class="col-sm-8">
                                <textarea class="form-control input-sm" name="cfgValue" required="" aria-required="true" rows="8">${entity.cfgValue }</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">配置项值2：</label>
                            <div class="col-sm-8">
                                <textarea class="form-control input-sm" name="cfgValue2">${entity.cfgValue2 }</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">配置项值3：</label>
                            <div class="col-sm-8">
                                <textarea class="form-control input-sm" name="cfgValue3">${entity.cfgValue3 }</textarea>
                            </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 }">
                        <input type="hidden" name="editType" value="${editType }">
                    </form>
                </div>
            </div>
            </div>
        </div>
    </div>
<script>
    $(function(){

        $.form.render(function () {
            history.go(-1);
        });

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