Explorar el Código

fix ui

fix ui
shimingxy hace 5 años
padre
commit
e97ac28918

+ 1 - 1
maxkey-web-manage/src/main/resources/templates/views/apps/basic/appUpdate.ftl

@@ -42,7 +42,7 @@ $(function(){
 			enctype="multipart/form-data">		 
   	        <!-- content -->    
   	      	<!--table-->
-  	      	<table   class="datatable" >
+  	      	<table   class="table table-bordered" >
 				<tbody>
 				<tr>
 					<td ><#include  "../appUpdateCommon.ftl"/></td>

+ 1 - 1
maxkey-web-manage/src/main/resources/templates/views/apps/cas/appUpdate.ftl

@@ -42,7 +42,7 @@ $(function(){
 			enctype="multipart/form-data">		 
   	        <!-- content -->    
   	      	<!--table-->
-  	      	<table   class="datatable" >
+  	      	<table   class="table table-bordered" >
 				<tbody>
 				<tr>
 					<td ><#include  "../appUpdateCommon.ftl"/></td>

+ 1 - 1
maxkey-web-manage/src/main/resources/templates/views/apps/desktop/appAdd.ftl

@@ -190,7 +190,7 @@ $(function(){
 					<th><@locale code="apps.credential" />:</th>
 					<td colspan="3">
 						<select id="systemUserAttr" name="systemUserAttr" class="form-control" >
-							<option value="uid"><@locale code="userinfo.uid" /></option>
+							<option value="uid"><@locale code="userinfo.id" /></option>
 							<option value="employeeNumber"><@locale code="userinfo.employeeNumber" /></option>
 							<option value="username"  selected><@locale code="userinfo.username" /></option>
 							<option value="email"><@locale code="userinfo.email" /></option>

+ 3 - 3
maxkey-web-manage/src/main/resources/templates/views/apps/desktop/appUpdate.ftl

@@ -78,14 +78,14 @@ $(function(){
 			enctype="multipart/form-data">		 
   	        <!-- content -->    
   	      	<!--table-->
-			<table width="960" class="datatable" >
+			<table   class="table table-bordered" >
 				<tbody>
 				<tr>
 					<td ><#include  "../appUpdateCommon.ftl"/></td>
 				</tr>
 				<tr>
 					<td>
-			   <table width="960"   class="datatable" >
+			  <table   class="table table-bordered" >
 				<tbody>
 				<tr>
 					<td colspan=4><@locale code="apps.desktop.info" /></td>
@@ -202,7 +202,7 @@ $(function(){
 					<th><@locale code="apps.credential.system" />:</th>
 					<td colspan="3">
 						<select id="systemUserAttr" name="systemUserAttr" class="form-control">
-							<option value="uid"   <#if 'uid'==model.systemUserAttr>selected</#if> ><@locale code="userinfo.uid" /></option>
+							<option value="uid"   <#if 'uid'==model.systemUserAttr>selected</#if> ><@locale code="userinfo.id" /></option>
 							<option value="employeeNumber" <#if 'employeeNumber'==model.systemUserAttr>selected</#if> ><@locale code="userinfo.employeeNumber" /></option>
 							<option value="username" <#if 'username'==model.systemUserAttr>selected</#if> ><@locale code="userinfo.username" /></option>
 							<option value="email" <#if 'email'==model.systemUserAttr>selected</#if> ><@locale code="userinfo.email" /></option>

+ 3 - 3
maxkey-web-manage/src/main/resources/templates/views/apps/extendapi/appAdd.ftl

@@ -89,7 +89,7 @@ $(function(){
 					<td colspan="3">
 						<select  class="form-control" id="systemUserAttr" name="systemUserAttr">
 							<option value="uid">
-								<@locale code="userinfo.uid"/></option>
+								<@locale code="userinfo.id"/></option>
 							<option value="employeeNumber">
 								<@locale code="userinfo.employeeNumber"/></option>
 							<option value="username"  selected>
@@ -103,12 +103,12 @@ $(function(){
 					</td>
 				</tr>
 				<tr id="sharedconfigure"  style="display:none">
-					<th><@locale code="apps.formbased.sharedUsername"/>:</th>
+					<th><@locale code="apps.credential.sharedUsername"/>:</th>
 					<td>
 						<input  class="form-control" type="text" id="sharedUsername" name="sharedUsername" value="" />
 						<b class="orange">*</b><label for="sharedUsername"></label>
 					</td>
-					<th><@locale code="apps.formbased.sharedPassword"/>:</th>
+					<th><@locale code="apps.credential.sharedPassword"/>:</th>
 					<td>
 						<input  class="form-control" type="text" id="sharedPassword" name="sharedPassword" value="" />
 						<b class="orange">*</b><label for="sharedPassword"></label>

+ 1 - 1
maxkey-web-manage/src/main/resources/templates/views/apps/extendapi/appUpdate.ftl

@@ -93,7 +93,7 @@ $(function(){
 					<td colspan="3">
 						<select id="systemUserAttr" name="systemUserAttr"  class="form-control" >
 							<option value="uid"   <#if  'uid'==model.systemUserAttr >selected</#if> >
-								<@locale code="userinfo.uid"/></option>
+								<@locale code="userinfo.id"/></option>
 							<option value="employeeNumber" <#if  'employeeNumber'==model.systemUserAttr >selected</#if> >
 								<@locale code="userinfo.employeeNumber"/></option>
 							<option value="username" <#if  'username'==model.systemUserAttr >selected</#if> >

+ 1 - 37
maxkey-web-manage/src/main/resources/templates/views/apps/formbased/appAdd.ftl

@@ -13,40 +13,6 @@
 <script type="text/javascript">
 <!--
 $(function(){		
-	$("#isExtendAttr").on('click',function(){
-		if(this.checked){
-				$("#showExtendAttr").show();
-			} else {
-				$("#showExtendAttr").hide();
-				$('#extendAttrBody').empty();
-			}
-			
-	});
-	
-	var attrIndex = 0;
-		
-	function addExtendAttr(attribute,attributeValue){
-		var html = '<tr  id="extendTr_' + attrIndex + '"><th><@locale code="apps.formbased.parameter"/>:';   
-		 html += '<input  class="button delExtendTr"  type="button" name="delExtendTr" attrTrId="extendTr_'+attrIndex+'" value="<@locale code="button.text.delete" />"/>';
-		html += '</th><td>';   
-		html += '<input type="text" id="attribute_' + attrIndex + '" name="attribute" class="form-control" title="" value="'+attribute+'"/>';   
-        html += '</span></td><th><@locale code="apps.formbased.parameter.value"/>:</th>	<td><span class="intspan">';
-        html += '<input type="text" id="attributeValue_' + attrIndex + '" name="attributeValue"class="form-control"  title="" value="'+attributeValue+'"/>';
-        html += '</span>';
-       
-        html += '</td></tr>'; 
-		$('#extendAttrBody').append(html);
-		attrIndex++;
-	}
-	
-	$("#addExtendAttr").on('click',function(){
-		addExtendAttr("","");
-	});	
-				
-	$("#extendAttrBody").delegate(".delExtendTr",'click',function(){
-		$("#"+$(this).attr("attrTrId")).remove();
-	});
-	
 	$(".credential").on("click",function(){
 		if($(this).val()=="3"){
 			$("#sharedconfigure").hide();
@@ -141,7 +107,7 @@ $(function(){
 					<td colspan="3">
 						<select id="systemUserAttr" name="systemUserAttr"  class="form-control" >
 							<option value="uid">
-								<@locale code="userinfo.uid"/></option>
+								<@locale code="userinfo.id"/></option>
 							<option value="employeeNumber">
 								<@locale code="userinfo.employeeNumber"/></option>
 							<option value="username"  selected>
@@ -177,8 +143,6 @@ $(function(){
 					</td>
 				</tr>
 				</tbody>
-				<tbody id="extendAttrBody">
-				</tbody>
 				<tbody >
 					<tr>
 						<td colspan =4>

+ 1 - 1
maxkey-web-manage/src/main/resources/templates/views/apps/formbased/appUpdate.ftl

@@ -110,7 +110,7 @@ $(function(){
 					<td colspan="3">
 						<select id="systemUserAttr" name="systemUserAttr" class="form-control">
 							<option value="uid"   <#if 'uid'==model.systemUserAttr>selected</#if> >
-								<@locale code="userinfo.uid"/></option>
+								<@locale code="userinfo.id"/></option>
 							<option value="employeeNumber" <#if 'employeeNumber'==model.systemUserAttr>selected</#if> >
 								<@locale code="userinfo.employeeNumber"/></option>
 							<option value="username" <#if 'username'==model.systemUserAttr>selected</#if> >