@/*
|
select标签中各个参数的说明:
|
name : select的名称
|
id : select的id
|
underline : 是否带分割线
|
@*/
|
<div class="form-group">
|
<label class="col-sm-3 control-label">
|
@if(isNotEmpty(required)){
|
<span style="color: red;">*</span>
|
@}
|
${name}</label>
|
<div class="col-sm-9">
|
<select class="form-control" id="${id}" name="${id}">
|
${tagBody!}
|
</select>
|
@if(isNotEmpty(hidden)){
|
<input class="form-control" type="hidden" id="${hidden}" value="${hiddenValue!}">
|
@}
|
</div>
|
</div>
|
<script>$(function(){
|
if ( "${value!}") {
|
setTimeout(function(){ $( "#${id}").val( "${value!}").trigger( "change");}, 300);
|
}
|
})</script>
|
@if(isNotEmpty(underline) && underline == 'true'){
|
<div class="hr-line-dashed"></div>
|
@}
|