add.vm 4.14 KB
#set($link=${webUtils.getLocalPath("sysConfig/list.do")})
#set($page_title="添加预制变量")
#set($crumbs="首页:/home,预制变量管理:"+$link+",添加预制变量")

<div class="page-content">
<div class="page-header">
    <span class="pull-right"><a href="${webUtils.getLocalPath("sysConfig/list.do")}" class="btn btn-white btn-default">返回</a></span>
    <h1>
        <small>
            <i class="icon-double-angle-right"></i>
          	添加预制变量
        </small>
    </h1>
</div>
<!-- /.page-header -->

<div class="row">
<div class="col-xs-12">
<!-- PAGE CONTENT BEGINS -->

<form class="form-horizontal" role="form" method="post" action="${webUtils.getLocalPath("sysConfig/save.do")}" id="addForm">

<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right"
           for="form-field-2"> 变量编码: </label>

    <div class="col-xs-12 col-sm-4">
        <span class="block input-icon input-icon-right">
        <input type="text"
               placeholder="变量编码" name="cfg.configCode"
               required
               data-bv-message="必须填写!"
               data-bv-stringlength-message="超出了最大范围!"
               data-bv-stringlength
               data-bv-stringlength-max="125"
               maxlength="125"
               class="width-100"
               value="$!{cfg.configCode}">
        <i class="ace-icon fa  fa-asterisk orange"></i>
        </span>
    </div>
</div>
<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right"
           for="form-field-5"> 变量名称: </label>

    <div class="col-xs-12 col-sm-4">
        <span class="block input-icon input-icon-right">
        <input type="text"
               placeholder="变量名称" name="cfg.configName"
               required
               data-bv-message="必须填写!"
               data-bv-stringlength-message="超出了最大范围!"
               data-bv-stringlength
               data-bv-stringlength-max="125"
               maxlength="125"
               class="width-100"
               value="$!{cfg.configName}">
        <i class="ace-icon fa  fa-asterisk orange"></i>
        </span>
    </div>
</div>


<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right"
           for="form-field-6"> 变量描述: </label>

    <div class="col-xs-12 col-sm-4">
        <span class="block input-icon input-icon-right">
        <textarea class="form-control limited"  name="cfg.remark"
				data-bv-stringlength-message="超出了最大范围!"
                data-bv-stringlength
                data-bv-stringlength-max="1500" 
                maxlength="1500"></textarea>
        </span>
    </div>
</div>

<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right"
           for="form-field-5"> 变量值: </label>

    <div class="col-xs-12 col-sm-4">
        <span class="block input-icon input-icon-right">
        <input type="text" 
               placeholder="变量值" name="cfg.value"
               required
               data-bv-message="必须填写!"
               data-bv-stringlength-message="超出了最大范围!"
               data-bv-stringlength
               data-bv-stringlength-max="1024"
               maxlength="1024"
               class="width-100"
               value="$!{cfg.value}" >
        <i class="ace-icon fa  fa-asterisk orange"></i>
        </span>
    </div>
</div>

<div class="clearfix form-actions">
    <div class="col-md-offset-3 col-md-9">
        <button class="btn btn-info" type="submit" >
            <i class="icon-ok bigger-110"></i>
        	提交
        </button>
        <a href="${webUtils.getLocalPath("sysConfig/list.do")}" class="btn" >
            <i class="icon-undo bigger-110"></i>
            返回
        </a>
    </div>
</div>
</form>
</div>
</div>
</div>

<link rel="stylesheet" href="$!{webUtils.getAssetsPath("/css/validator/bootstrapValidator.min.css")}" />
<script type="text/javascript" src="$!{webUtils.getAssetsPath("/js/validator/bootstrapValidator.min.js")}"></script>

<script>
#if(!${model.success})
	alert("$!{model.msg}");
#end
$(function (){
	$('#addForm').bootstrapValidator();
})
</script>