fix ui
This commit is contained in:
shimingxy
2020-03-01 17:14:00 +08:00
parent 1d9f3a747d
commit e97ac28918
8 changed files with 12 additions and 48 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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> >

View File

@@ -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>

View File

@@ -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> >