Ver código fonte

修改密码国际化

zhengkaixin 3 anos atrás
pai
commit
f893249481

+ 2 - 19
assets/js/changepwd.js

@@ -3,25 +3,8 @@ $(function(){
 	$(".signin-form").validate({
 			
 			 submitHandler:(form) => {
-			 			zeroModal.success({
-			 				unique:'1',
-			 				opacity:0.8,
-			 				content:'success',
-			 				contentDetail:'You have successfully change password',
-			 				width:'300px',
-			 				height:'260px',
-			 				ok:false,
-			 				onClosed:function(){
-			 					
-			 				},
-			 				onComplete:function(evn){
-			 					console.log('onComplete')
-			 					setTimeout(function(){
-			 						zeroModal.close('1');
-			 					},3000);
-			 				}
-			 				
-			 			})  
+				 jpalert($(".signin_success").val(),"../lanhu/index.html")
+			 			
 			 }
 	});
 	

+ 1 - 0
assets/plugin/zeroModal/js/zeroModal.js

@@ -393,6 +393,7 @@
 		
         _buildOverlay(opt);
         _buildModal(opt);
+		
 		$(".zeromodal-overlay").height($("html").height())
 		
     }

+ 11 - 9
html/account/changepwd.html

@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html style="height: 100%;">
 	<head>
 		<meta charset="utf-8">
 		<title></title>
@@ -93,32 +93,34 @@
 				});
 			})
 		</script>
+		<input type="hidden" class="signin_success i18n-input"  i18n="changepwd_Change success" />
+		
 		<main class="jpmain" style="margin-top:85px;margin-bottom: 0px;">
 		<div class="container-fluid" style="padding:0;">
 			
 			
 			<div class="form-box">
-				<h4 style="margin-bottom: 50px;font-weight: bold;">Change password</h4>
+				<h4 style="margin-bottom: 50px;font-weight: bold;"  class="i18n-text" i18n="changepwd_Change password" >Change password</h4>
 				<form class="signin-form">
 					<div class="form-group form-group-custom">
-					  <label for="email">Old password</label>
-					  <input type="password" class="form-control" id="oldpwd" name="oldpwd" placeholder="Enter your old password" required>
+					  <label for="email" class="i18n-text" i18n="changepwd_Old password" >Old password</label>
+					  <input type="password" class="form-control i18n-placeholder" i18n="changepwd_Enter your old password"id="oldpwd" name="oldpwd" placeholder="Enter your old password" required>
 					  <span class="input-tool-icon glyphicon glyphicon-eye-open"></span>
 					</div>
 					
 					<div class="form-group form-group-custom">
-					  <label for="pwd">Password</label>
-					  <input type="password" class="form-control" id="pwd" name="pwd" placeholder="Enter your new password" required>
+					  <label for="pwd" class="i18n-text" i18n="changepwd_Password" >Password</label>
+					  <input type="password" class="form-control i18n-placeholder" i18n="changepwd_Enter your new password" id="pwd" name="pwd" placeholder="Enter your new password" required>
 					  <span class="input-tool-icon glyphicon glyphicon-eye-open"></span>
 					</div>
 					
 					<div class="form-group form-group-custom">
-					  <label for="pwd">Confirm new password</label>
-					  <input type="password" class="form-control" id="pwdagain" name="pwdagain" placeholder="Enter your new password again" required equalTo="#pwd">
+					  <label for="pwd" class="i18n-text" i18n="changepwd_Confirm new password" >Confirm new password</label>
+					  <input type="password" class="form-control  i18n-placeholder" i18n="changepwd_Enter your new password again"id="pwdagain" name="pwdagain" placeholder="Enter your new password again" required equalTo="#pwd">
 					  <span class="input-tool-icon glyphicon glyphicon-eye-open"></span>
 					</div>
 					
-					<button class="btn btn-lg btn-danger btn-block create-btn" type="submit">Change</button>
+					<button class="btn btn-lg btn-danger btn-block create-btn i18n-text" i18n="changepwd_Change" type="submit">Change</button>
 				</form>
 			</div>
 		</div>

+ 80 - 73
html/moments/index.html

@@ -136,79 +136,86 @@
 		<main class="jpmain">
 			<div class="container-fluid" style="padding:0;">
 
-
-				<div class="tool-box">
-					<div class="newest-list">
-						<div class="newest-item" style="color:#000000;font-weight: bold;cursor: default;">Newest</div>
-						<div class="newest-item">All</div>
-						<div class="newest-item">x &nbsp;Masterplanning</div>
-						<div class="newest-item">Architecture</div>
-						<div class="newest-item">Interiors</div>
-						<div class="newest-item">Lighting</div>
-						<div class="newest-item">Landscape</div>
-						<div class="newest-item">AV&nbsp;&amp;&nbsp;Acoustics</div>
-						<div class="newest-item">MEP</div>
-						<div class="newest-item">Landscape</div>
-						<div class="newest-item">Landscape</div>
-						<div style="flex:1;"></div>
-						<div class="newest-item"><img src="../../assets/img/landing_right_arrow.png"></div>
-					</div>
-
-					<div class="search-list" style="margin-top:30px;">
-						<div class="search-item">
-							<label>Location</label>
-							<select class="selectpicker">
-								<option>By project</option>
-								<option>By company</option>
-							</select>
-
-						</div>
-
-						<div class="search-item">
-							<label>&nbsp;</label>
-							<select class="selectpicker" multiple>
-								<option>Canada</option>
-								<option>China</option>
-								<option>France</option>
-								<option>Germany</option>
-							</select>
-
-						</div>
-
-
-
-						<div class="search-item">
-							<label>Disciplines</label>
-							<select class="selectpicker my-select" multiple>
-								<option>Architecture</option>
-								<option>Landscape</option>
-								<option>AV</option>
-								<option>Mustard</option>
-								<option>Landscape</option>
-							</select>
-						</div>
-
-
-						<div class="search-item">
-							<label style="display: block;">&nbsp;</label>
-							<button type="button" class="btn btn-default"
-								style="height: 42px;background-color: #000000;color: #fff;padding:0px 20px;">Submit</button>
-						</div>
-						
-						<div style="flex:1;"></div>
-						
-						<div class="search-item">
-							<label style="display: block;">&nbsp;</label>
-							<div class="input-group">
-							  <input type="text" class="form-control" placeholder="search..." aria-describedby="basic-addon2" style="height:42px;">
-							  <span class="input-group-addon" id="basic-addon2"><i class="glyphicon glyphicon-search"></i></span>
-							</div>
-						</div>
-
-					</div>
-
-
-				</div>
+<div class="tool-box">
+				<div class="newest-list">
+					<div class="newest-item i18n-text" i18n="landingpage_Newest"
+					 style="color:#000000;font-weight: bold;cursor: default;">Newest</div>
+					<div class="newest-item">All</div>
+					<div class="newest-item">x &nbsp;Masterplanning</div>
+					<div class="newest-item">Architecture</div>
+					<div class="newest-item">Interiors</div>
+					<div class="newest-item">Lighting</div>
+					<div class="newest-item">Landscape</div>
+					<div class="newest-item">AV&nbsp;&amp;&nbsp;Acoustics</div>
+					<div class="newest-item">MEP</div>
+					<div class="newest-item">Landscape</div>
+					<div class="newest-item">Landscape</div>
+					<div style="flex:1;"></div>
+					<div class="newest-item"><img src="../../assets/img/landing_right_arrow.png"></div>
+				</div>
+				
+				<div class="search-list" style="margin-top:30px;">
+					<div class="search-item">
+						<label class="i18n-text"  i18n="landingpage_Newest">Location</label>
+						<select class="selectpicker">
+						  <option class="i18n-text"  i18n="landingpage_By project" >By project</option>
+						  <option class="i18n-text"  i18n="landingpage_By company">By company</option>
+						</select>
+						
+					</div>
+					
+					<div class="search-item">
+						<label>&nbsp;</label>
+						<select class="selectpicker" multiple>
+						  <option>Canada</option>
+						  <option>China</option>
+						  <option>France</option>
+						  <option>Germany</option>
+						</select>
+						
+					</div>
+					
+					
+					
+					<div class="search-item">
+						<label class="i18n-text"  i18n="landingpage_Disciplines"  >Disciplines</label>
+						<select class="selectpicker my-select" multiple>
+						  <option>Architecture</option>
+						  <option>Landscape</option>
+						  <option>AV</option>
+						  <option>Mustard</option>
+						  <option>Landscape</option>
+						</select>
+					</div>
+					
+					
+					<div class="search-item">
+						 <label style="display: block;">&nbsp;</label>
+						 <button type="button" class="btn btn-default i18n-text" i18n="head_Submit" style="height: 42px;padding:0px 20px;background-color: #000000;color:#ffffff;">Submit</button>
+					</div>
+					
+					<div style="flex:1;"></div>
+					
+					<div class="search-item">
+						<label style="display: block;">&nbsp;</label>
+						<div class="input-group">
+						  <input type="text" class="form-control i18n-placeholder" i18n="landingpage_search" placeholder="search..." aria-describedby="basic-addon2" style="height:42px;">
+						  <span class="input-group-addon" style="
+									padding: 0px;
+								" id="basic-addon2">
+							  <button type="button" style="    width: 50px;
+									height: 40px; border: 0;">
+								    <i class="glyphicon glyphicon-search"></i>
+							  </button>
+							
+							  </span>
+						</div>
+					</div>
+					
+				</div>
+				
+				
+			</div>
 
 				<div class="row-fluid  jpcontainer">
 					<div class="span12">

+ 9 - 0
i18n/strings.properties

@@ -7,6 +7,15 @@ head_Submit=Submit
 head_okTitle=OK
 head_cancelTitle=cancel
 
+changepwd_Change password=Change password
+changepwd_Old password=Old password
+changepwd_Enter your old password=Enter your old password
+changepwd_Password=Password
+changepwd_Enter your new password=Enter your new password
+changepwd_Confirm new password=Confirm new password
+changepwd_Enter your new password again=Enter your new password again
+changepwd_Change=Change
+changepwd_Change success=Change success
 
  
 head_10M=only pictures up to 10m are supported

+ 12 - 0
i18n/strings_zh.properties

@@ -22,6 +22,17 @@ headcommon7=密码
 headcommon8=注销
 
 
+
+changepwd_Change password=修改密码
+changepwd_Old password=旧密码
+changepwd_Enter your old password=请输入你的旧密码
+changepwd_Password=新密码
+changepwd_Enter your new password=请输入你的新密码
+changepwd_Confirm new password=确认新密码
+changepwd_Enter your new password again=再次请输入你的新密码
+changepwd_Change=修改
+changepwd_Change success=修改成功
+
 moments_Show=展示你创造力的世界
 moments_Here=在这里发布你的日常设计
 
@@ -34,6 +45,7 @@ landingpage_Number of employees=员工人数
 landingpage_Download portoflio=下载 portoflio
 
 
+
 landingpage_Newest=最新
 landingpage_Location=位置
 landingpage_search=搜索。。。