<!--# layout("/common/layout.html",{"jsBase":"/js/core/codeGen/"}){ -->
 <div class="layui-btn-group">
  
    
    <button class="layui-btn ext-toolbar" data-type="js">预览JS</button>
    <button class="layui-btn ext-toolbar" data-type="java">预览Java</button>
    <button class="layui-btn ext-toolbar" data-type="sql">预览SQL</button>
    <button class="layui-btn ext-toolbar"  data-type="html">预览HTML</button>
    <button class="layui-btn ext-toolbar" data-type="gen">立即生成</button>
    <button class="layui-btn ext-toolbar" data-type="cancel">取消</button>
  </div>
<form class="layui-form layui-form-pane" id="updateForm"
	>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend>主健字段</legend>
</fieldset>

<div class="layui-row">
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">主健</label>
			<div class="layui-input-inline">
				<input type="text" name="entity.idAttribute.name" disable value="${entity.idAttribute.name}"
					 class="layui-input" >
			</div>
		</div>
	</div>
</div>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend>显示字段</legend>
</fieldset>

<div class="layui-row">
	<div class="layui-form-item">
		<div class="layui-inline">
			<select name="nameAttr">
			<!--#  
			for(attr in entity.list){
			-->
        		<option value="${attr.name}" ${attrLP.index==1?"selected=''"}>${attr.name}</option>
        		<!--#}  -->				
			</select>
		</div>
	</div>
</div> 
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend>配置基本信息</legend>
</fieldset>
	<div class="layui-row">
	   <div class="layui-form-item">
			<div class="layui-inline">
			<label class="layui-form-label">表名</label>
			<div class="layui-input-inline">
				<input type="text" name="entity.tableName" readonly value="${entity.tableName}"
					 class="layui-input" >
			</div>
			</div>
		
		
			<div class="layui-inline">
			<label class="layui-form-label">类名</label>
			<div class="layui-input-inline">
				<input type="text" name="entity.name"  value="${entity.name}"
					 class="layui-input" >
			</div>
			</div>
			<div class="layui-inline">
			<label class="layui-form-label">系统包名</label>
			<div class="layui-input-inline">
				<input type="text" name="basePackage"  value="com.ibeetl.admin.console"
					 class="layui-input" >
			</div>
			</div>
		</div>
		
	</div>
	
	 <div class="layui-form-item">
			<div class="layui-inline">
			<label class="layui-form-label">显示名</label>
			<div class="layui-input-inline">
				<input type="text" name="entity.displayName"  value="${entity.name}"
					 class="layui-input" >
			</div>
			</div>
			
			<div class="layui-inline">
			<label class="layui-form-label">变量名</label>
			<div class="layui-input-inline">
				<input type="text" name="entity.code"  value="${entity.code}"
					 class="layui-input" >
			</div>
			</div>
		
	</div>
	<div class="layui-row">
	   <div class="layui-form-item">
			<div class="layui-inline">
			<label class="layui-form-label">urlBase</label>
			<div class="layui-input-inline">
				<input type="text" name="urlBase"  value="admin"
					 class="layui-input" >
			</div>
			</div>
		
			<div class="layui-inline">
			<label class="layui-form-label">system</label>
			<div class="layui-input-inline">
				<input type="text" name="entity.system"  value="console"
					 class="layui-input" >
			</div>
			</div>
		
		</div>
		
	</div>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend>字段信息</legend>
</fieldset>
<!--#  
var attrs = entity.list;
for(attr in attrs){
-->
    <div class="layui-row">
	   <div class="layui-form-item">
			<div class="layui-inline">
			<label class="layui-form-label">名称</label>
			<div class="layui-input-inline">
				<input type="text" name="entity.list[${attrLP.index-1}].name" readonly value="${attr.name}"
					 class="layui-input" >
			</div>
			</div>
		
			<div class="layui-inline">
			<label class="layui-form-label">显示名</label>
			<div class="layui-input-inline">
				<input type="text" name="entity.list[${attrLP.index-1}].displayName"  value="${attr.displayName}"
					 class="layui-input" >
			</div>
			</div>
			
			<div class="layui-inline">
			<div class="layui-input-inline">
				<input type="checkbox" name="entity.list[${attrLP.index-1}].showInQuery" lay-skin="primary" value="true" title="作为搜索" >
			</div>
			</div>
		
		
		
		</div>
		
	</div>
<!--# }  -->    
	


</form>
<!--#} -->
<script>
layui.use(['edit'], function(){
  var codeGenEdit = layui.edit
  codeGenEdit.init();
});

</script>
