Commit b6150ce3 by Wittaya-PIM

Merge branch 'integration' into wittaya

parents f80fc0b2 46764a3e
...@@ -51,6 +51,22 @@ msgstr "หญิง" ...@@ -51,6 +51,22 @@ msgstr "หญิง"
msgid "blood group" msgid "blood group"
msgstr "กรุ๊ปเลือด" msgstr "กรุ๊ปเลือด"
#: View/Profiles/index:106
msgid "A"
msgstr "เอ"
#: View/Profiles/index:109
msgid "B"
msgstr "บี"
#: View/Profiles/index:112
msgid "AB"
msgstr "เอบี"
#: View/Profiles/index:115
msgid "O"
msgstr "โอ"
#: View/Profiles/index:122 #: View/Profiles/index:122
msgid "mobile" msgid "mobile"
msgstr "หมายเลขโทรศัพท์(มือถือ)" msgstr "หมายเลขโทรศัพท์(มือถือ)"
...@@ -75,6 +91,10 @@ msgstr "จังหวัด" ...@@ -75,6 +91,10 @@ msgstr "จังหวัด"
msgid "SAVE" msgid "SAVE"
msgstr "บันทึก" msgstr "บันทึก"
#: View/Profiles/index:199
msgid "Show QR Code to get permission"
msgstr "แสดงคิวอาร์โค้ดเพื่อรับสิทธิ์"
#: View/Profiles/index:226 #: View/Profiles/index:226
msgid "This email is already in the system." msgid "This email is already in the system."
msgstr "อีเมลนี้มีอยู่ในระบบอยู่แล้ว" msgstr "อีเมลนี้มีอยู่ในระบบอยู่แล้ว"
......
<?php
use Cake\I18n\Time;
?>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12"> <div class="col-xs-12 col-sm-12 col-md-12">
<div class="modal fade" id="defaultModal_<?php echo $i;?>" tabindex="-1" role="dialog" aria-labelledby="defaultModalLabel" <div class="modal " id="card_<?php echo $i;?>" tabindex="-1" role="dialog" aria-labelledby=""
aria-hidden="true"> aria-hidden="true">
<div class="modal-dialog box-ads"> <div class="modal-dialog box-ads">
<a class="close-modal" data-dismiss="modal">X </a> <a class="close-modal" data-dismiss="modal">X </a>
......
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
</div> </div>
<div> <div>
<div class="qrcode-profile"><br> <div class="qrcode-profile"><br>
<?php echo __('แสดง QR Code เพื่อรับสิทธิ์');?> <?php echo __('Show QR Code to get permission');?>
</div> </div>
<img src="/img/core/img/connect-card-back.png" class="img-responsive" id="img-upload" alt="Profile picture"> <img src="/img/core/img/connect-card-back.png" class="img-responsive" id="img-upload" alt="Profile picture">
<div class="qrcode-name"> <div class="qrcode-name">
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
// console.log(data); // console.log(data);
data = jQuery.parseJSON(data); data = jQuery.parseJSON(data);
if(data['chk'] == 'false'){ if(data['chk'] == 'false'){
alert("This email is already in the system."); alert(<?php echo __('This email is already in the system.') ?>);
return false; return false;
} }
}); });
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
var elem = document.getElementById('moblieNo').value; var elem = document.getElementById('moblieNo').value;
// console.log(elem); // console.log(elem);
if(!elem.match(/^([A-Za-zก-๙])+$/i)){ if(!elem.match(/^([A-Za-zก-๙])+$/i)){
alert("only numbers"); alert(<?php echo __('only numbers') ?>);
return false; return false;
} }
}) })
...@@ -241,41 +241,41 @@ ...@@ -241,41 +241,41 @@
function validateForm() { function validateForm() {
var firstname_th = document.getElementById("firstname_th").value; var firstname_th = document.getElementById("firstname_th").value;
if (firstname_th == null || firstname_th == "") { if (firstname_th == null || firstname_th == "") {
alert("Please enter your firstname."); alert(<?php echo __('Please enter your firstname.') ?>);
return false; return false;
} }
var lastname_th = document.getElementById("lastname_th").value; var lastname_th = document.getElementById("lastname_th").value;
if (lastname_th == null || lastname_th == "") { if (lastname_th == null || lastname_th == "") {
alert("Please enter your lastname."); alert(<?php echo __('Please enter your lastname.') ?>);
return false; return false;
} }
var birthdate = document.getElementById("datepicker").value; var birthdate = document.getElementById("datepicker").value;
if (birthdate == null || birthdate == "") { if (birthdate == null || birthdate == "") {
alert("Please enter your birthdate."); alert(<?php echo __('Please enter your birthdate.') ?>);
return false; return false;
} }
var moblieNo = document.getElementById("moblieNo").value; var moblieNo = document.getElementById("moblieNo").value;
if (moblieNo == null || moblieNo == "") { if (moblieNo == null || moblieNo == "") {
alert("Please enter your mobile."); alert(<?php echo __('Please enter your mobile.') ?>);
return false; return false;
} }
if(document.getElementById("moblieNo").value.length != 10) if(document.getElementById("moblieNo").value.length != 10)
{ {
alert('Please enter a 10 digit mobile number.'); alert(<?php echo __('Please enter a 10 digit mobile number.') ?>);
return false; return false;
} }
var email = document.getElementById("email").value; var email = document.getElementById("email").value;
if (email == null || email == "") { if (email == null || email == "") {
alert("Please enter your email address."); alert(<?php echo __('Please enter your email address.') ?>);
return false; return false;
} }
var email = $("#email").val(); var email = $("#email").val();
if (/(.+)@(.+){2,}\.(.+){2,}/.test(email)) { } else { if (/(.+)@(.+){2,}\.(.+){2,}/.test(email)) { } else {
alert("Email address format wrong, Please enter the correct number."); alert(<?php echo __('Email address format wrong, Please enter the correct number.') ?>);
return false; return false;
} }
// var email = document.getElementById("email").value; // var email = document.getElementById("email").value;
...@@ -288,12 +288,12 @@ ...@@ -288,12 +288,12 @@
// }); // });
var master_country_id = document.getElementById("master_country_id").value; var master_country_id = document.getElementById("master_country_id").value;
if (master_country_id == null || master_country_id == "") { if (master_country_id == null || master_country_id == "") {
alert("Please specify country"); alert(<?php echo __('Please specify country') ?>);
return false; return false;
} }
var master_province_id = document.getElementById("master_province_id").value; var master_province_id = document.getElementById("master_province_id").value;
if (master_province_id == null || master_province_id == "") { if (master_province_id == null || master_province_id == "") {
alert("Please specify province"); alert(<?php echo __('Please specify province') ?>);
return false; return false;
} }
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div> <div>
<div class="form-group has-feedback"> <div class="form-group has-feedback">
<div class="col-md-12"> <div class="col-md-12">
<label class="label-text-sub"><?php echo __('รหัสผ่านใหม่');?></label> <label class="label-text-sub"><?php echo __('new password');//รหัสผ่านใหม่?></label>
<input data-toggle="password" data-placement="before" onkeyup="check();" type="password" name="password" id="password" value="" placeholder="********" class="form-control input-lg color-button-border border-bottom-from" style="padding:0px 0px !important;"> <input data-toggle="password" data-placement="before" onkeyup="check();" type="password" name="password" id="password" value="" placeholder="********" class="form-control input-lg color-button-border border-bottom-from" style="padding:0px 0px !important;">
</div> </div>
</div> </div>
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<div> <div>
<div class="form-group has-feedback"> <div class="form-group has-feedback">
<div class="col-md-12"> <div class="col-md-12">
<label class="label-text-sub"><?php echo __('ยืนยันรหัสผ่าน');?></label> <label class="label-text-sub"><?php echo __('confirm password');//ยืนยันรหัสผ่าน?></label>
<input data-toggle="password" data-placement="before" onkeyup="check();" type="password" name="confirm_password" id="confirm_password" value="" placeholder="********" class="form-control input-lg color-button-border border-bottom-from" style="padding:0px 0px !important;"> <input data-toggle="password" data-placement="before" onkeyup="check();" type="password" name="confirm_password" id="confirm_password" value="" placeholder="********" class="form-control input-lg color-button-border border-bottom-from" style="padding:0px 0px !important;">
</div> </div>
</div> </div>
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
<div> <div>
<?php <?php
echo $this->Form->submit('ตรวจสอบ', array('div' => false, 'class' => 'btn btn-quaternary mr-xs mb-sm button-text', echo $this->Form->submit('submit', array('div' => false, 'class' => 'btn btn-quaternary mr-xs mb-sm button-text',
'name' => 'btn', 'id' => '', 'title' => 'Title')); 'name' => 'btn', 'id' => '', 'title' => 'Title'));//ตกลง
?> ?>
</div> </div>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
var elem = document.getElementById('password').value; var elem = document.getElementById('password').value;
// console.log(elem); // console.log(elem);
if(!elem.match(/^([A-Za-z0-9])+$/i)){ if(!elem.match(/^([A-Za-z0-9])+$/i)){
alert("กรุณาใส่ข้อมูลที่เป็นตัวอักษรภาษาอังกฤษและตัวเลขเท่านั้น"); alert("Please enter only English letters and numbers.");//กรุณาใส่ข้อมูลที่เป็นตัวอักษรภาษาอังกฤษและตัวเลขเท่านั้น
return false; return false;
} }
}) })
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
var elem = document.getElementById('confirm_password').value; var elem = document.getElementById('confirm_password').value;
// console.log(elem); // console.log(elem);
if(!elem.match(/^([A-Za-z0-9])+$/i)){ if(!elem.match(/^([A-Za-z0-9])+$/i)){
alert("กรุณาใส่ข้อมูลที่เป็นตัวอักษรภาษาอังกฤษและตัวเลขเท่านั้น"); alert("Please enter only English letters and numbers.");//กรุณาใส่ข้อมูลที่เป็นตัวอักษรภาษาอังกฤษและตัวเลขเท่านั้น
return false; return false;
} }
}) })
...@@ -64,26 +64,26 @@ ...@@ -64,26 +64,26 @@
var password = document.forms["changePressword"]["password"].value; var password = document.forms["changePressword"]["password"].value;
if (password == null || password == "") { if (password == null || password == "") {
alert("กรุณากรอก รหัสผ่านใหม่"); alert("Please enter a new password.");//กรุณากรอก รหัสผ่านใหม่
return false; return false;
} }
if(document.forms["changePressword"]["password"].value.length < 8) if(document.forms["changePressword"]["password"].value.length < 8)
{ {
alert('กรุณาระบุรหัสผ่านใหม่อย่างน้อย 8 ตัวอักษร'); alert('Please enter a new password at least 8 characters.');//กรุณาระบุรหัสผ่านใหม่อย่างน้อย 8 ตัวอักษร
return false; return false;
} }
var confirm_password = document.forms["changePressword"][["confirm_password"]].value; var confirm_password = document.forms["changePressword"][["confirm_password"]].value;
if (confirm_password == null || confirm_password == "") { if (confirm_password == null || confirm_password == "") {
alert("กรุณากรอก ยืนยันรหัสผ่าน"); alert("Please enter your password.");//กรุณากรอก ยืนยันรหัสผ่าน
return false; return false;
} }
if(document.forms["changePressword"]["confirm_password"].value.length < 8) if(document.forms["changePressword"]["confirm_password"].value.length < 8)
{ {
alert('กรุณาระบุยืนยันรหัสผ่านอย่างน้อย 8 ตัวอักษร'); alert('Please enter at least 8 characters.');//กรุณาระบุยืนยันรหัสผ่านอย่างน้อย 8 ตัวอักษร
return false; return false;
} }
if(document.forms["changePressword"]["password"].value != document.forms["changePressword"]["confirm_password"].value){ if(document.forms["changePressword"]["password"].value != document.forms["changePressword"]["confirm_password"].value){
alert('กรุณาระบุรหัสผ่านให้ตรงกัน'); alert('Please provide the same password.');//กรุณาระบุรหัสผ่านให้ตรงกัน
//document.createAccount.confirm_password.focus(); //document.createAccount.confirm_password.focus();
return false; return false;
} }
......
<div class="row"> <div class="row">
<div class="center"> <div class="center">
<div class="title_header"><a href="javascript:history.go(-1)"><?php echo $this->Html->image('/img/core/img/back-icon@3x.png', ['style' => 'float: left;padding-left: 15px;padding-top: 5px;']); ?></a><?php echo __('Forgot password');?></div> <div class="title_header"><a href="javascript:history.go(-1)"><?php echo $this->Html->image('/img/core/img/back-icon@3x.png', ['style' => 'float: left;padding-left: 15px;padding-top: 5px;']); ?></a><?php echo __('Forgot password');//ลืมรหัสผ่าน?></div>
</div> </div>
<div class="col-md-12"> <div class="col-md-12">
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div> <div>
<div class="form-group has-feedback"> <div class="form-group has-feedback">
<div class="col-md-12"> <div class="col-md-12">
<label class="label-text-sub"><?php echo __('Email');?><em>* </em></label> <label class="label-text-sub"><?php echo __('Email');//อีเมล?><em>* </em></label>
<input type="text" value="" name="email" placeholder="mail@xxx.com" class="form-control-reg border-bottom-from" id="fremail"> <input type="text" value="" name="email" placeholder="mail@xxx.com" class="form-control-reg border-bottom-from" id="fremail">
</div> </div>
</div> </div>
...@@ -31,13 +31,13 @@ ...@@ -31,13 +31,13 @@
function validateForm() { function validateForm() {
var email = document.forms["forgotPressword"]["email"].value; var email = document.forms["forgotPressword"]["email"].value;
if (email == null || email == "") { if (email == null || email == "") {
alert("Please enter your email."); alert("Please enter your email.");//กรุณากรอกอีเมลล์
return false; return false;
} }
// Validate Email // Validate Email
var email = $("#fremail").val(); var email = $("#fremail").val();
if ((/(.+)@(.+){2,}\.(.+){2,}/.test(email)) || email=="" || email==null) { } else { if ((/(.+)@(.+){2,}\.(.+){2,}/.test(email)) || email=="" || email==null) { } else {
alert("Email address format wrong Please enter the correct."); alert("Email address format wrong Please enter the correct.");//รูปแบบที่อยู่อีเมลล์ผิด กรุณากรอกให้ถูกต้อง
return false; return false;
} }
} }
......
<div> <div>
<div class=" row center"> <div class=" row center">
<div class="title_header"><?php echo __('ยืนยันตัวตนด้วยรหัส PIN');?></div> <div class="title_header"><?php echo __('Verify PIN');//ยืนยันตัวตนด้วยรหัส PIN?></div>
</div> </div>
<div style="padding-top: 20px;"></div> <div style="padding-top: 20px;"></div>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div class="form-group has-feedback"> <div class="form-group has-feedback">
<div class="col-md-12"> <div class="col-md-12">
<div class=" row center"> <div class=" row center">
<?php echo __('รหัส PIN 4 หลัก ในอีเมลล์ที่ระบุเพื่อเข้าใช้งาน');?> <?php echo __('4 digit PIN in the email address specified for access');//รหัส PIN 4 หลัก ในอีเมลล์ที่ระบุเพื่อเข้าใช้งาน?>
</div> </div>
</div> </div>
</div> </div>
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<div class="col-md-12"> <div class="col-md-12">
<div class=" row center"> <div class=" row center">
<?php <?php
echo $this->Html->link('ส่ง pin ใหม่อีกครั้ง', ['controller' => 'Users', 'action' => 'forgotsendpin/'.$token]); echo $this->Html->link('Re-send pin code', ['controller' => 'Users', 'action' => 'forgotsendpin/'.$token]);//ส่ง pin ใหม่อีกครั้ง
?> ?>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment