Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
smart_core_connect
/
core-connect
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b6150ce3
authored
May 31, 2018
by
Wittaya-PIM
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'integration' into wittaya
parents
f80fc0b2
46764a3e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
31 deletions
+54
-31
www/src/Locale/th_TH/default.po
+20
-0
www/src/Template/Element/card_from/from_0.ctp
+4
-1
www/src/Template/Profiles/index.ctp
+12
-12
www/src/Template/Users/change_forgotpassword.ctp
+11
-11
www/src/Template/Users/forgot_password.ctp
+4
-4
www/src/Template/Users/pin_codepassword.ctp
+3
-3
No files found.
www/src/Locale/th_TH/default.po
View file @
b6150ce3
...
...
@@ -51,6 +51,22 @@ msgstr "หญิง"
msgid "blood group"
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
msgid "mobile"
msgstr "หมายเลขโทรศัพท์(มือถือ)"
...
...
@@ -75,6 +91,10 @@ msgstr "จังหวัด"
msgid "SAVE"
msgstr "บันทึก"
#: View/Profiles/index:199
msgid "Show QR Code to get permission"
msgstr "แสดงคิวอาร์โค้ดเพื่อรับสิทธิ์"
#: View/Profiles/index:226
msgid "This email is already in the system."
msgstr "อีเมลนี้มีอยู่ในระบบอยู่แล้ว"
...
...
www/src/Template/Element/card_from/from_0.ctp
View file @
b6150ce3
<?php
use Cake\I18n\Time;
?>
<div class="row">
<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">
<div class="modal-dialog box-ads">
<a class="close-modal" data-dismiss="modal">X </a>
...
...
www/src/Template/Profiles/index.ctp
View file @
b6150ce3
...
...
@@ -196,7 +196,7 @@
</div>
<div>
<div class="qrcode-profile"><br>
<?php echo __('
แสดง QR Code เพื่อรับสิทธิ์
');?>
<?php echo __('
Show QR Code to get permission
');?>
</div>
<img src="/img/core/img/connect-card-back.png" class="img-responsive" id="img-upload" alt="Profile picture">
<div class="qrcode-name">
...
...
@@ -223,7 +223,7 @@
// console.log(data);
data = jQuery.parseJSON(data);
if(data['chk'] == 'false'){
alert(
"This email is already in the system."
);
alert(
<?php echo __('This email is already in the system.') ?>
);
return false;
}
});
...
...
@@ -232,7 +232,7 @@
var elem = document.getElementById('moblieNo').value;
// console.log(elem);
if(!elem.match(/^([A-Za-zก-๙])+$/i)){
alert(
"only numbers"
);
alert(
<?php echo __('only numbers') ?>
);
return false;
}
})
...
...
@@ -241,41 +241,41 @@
function validateForm() {
var firstname_th = document.getElementById("firstname_th").value;
if (firstname_th == null || firstname_th == "") {
alert(
"Please enter your firstname."
);
alert(
<?php echo __('Please enter your firstname.') ?>
);
return false;
}
var lastname_th = document.getElementById("lastname_th").value;
if (lastname_th == null || lastname_th == "") {
alert(
"Please enter your lastname."
);
alert(
<?php echo __('Please enter your lastname.') ?>
);
return false;
}
var birthdate = document.getElementById("datepicker").value;
if (birthdate == null || birthdate == "") {
alert(
"Please enter your birthdate."
);
alert(
<?php echo __('Please enter your birthdate.') ?>
);
return false;
}
var moblieNo = document.getElementById("moblieNo").value;
if (moblieNo == null || moblieNo == "") {
alert(
"Please enter your mobile."
);
alert(
<?php echo __('Please enter your mobile.') ?>
);
return false;
}
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;
}
var email = document.getElementById("email").value;
if (email == null || email == "") {
alert(
"Please enter your email address."
);
alert(
<?php echo __('Please enter your email address.') ?>
);
return false;
}
var email = $("#email").val();
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;
}
// var email = document.getElementById("email").value;
...
...
@@ -288,12 +288,12 @@
// });
var master_country_id = document.getElementById("master_country_id").value;
if (master_country_id == null || master_country_id == "") {
alert(
"Please specify country"
);
alert(
<?php echo __('Please specify country') ?>
);
return false;
}
var master_province_id = document.getElementById("master_province_id").value;
if (master_province_id == null || master_province_id == "") {
alert(
"Please specify province"
);
alert(
<?php echo __('Please specify province') ?>
);
return false;
}
...
...
www/src/Template/Users/change_forgotpassword.ctp
View file @
b6150ce3
...
...
@@ -11,7 +11,7 @@
<div>
<div class="form-group has-feedback">
<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;">
</div>
</div>
...
...
@@ -19,7 +19,7 @@
<div>
<div class="form-group has-feedback">
<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;">
</div>
</div>
...
...
@@ -29,8 +29,8 @@
<div>
<?php
echo $this->Form->submit('
ตรวจสอบ
', array('div' => false, 'class' => 'btn btn-quaternary mr-xs mb-sm button-text',
'name' => 'btn', 'id' => '', 'title' => 'Title'));
echo $this->Form->submit('
submit
', array('div' => false, 'class' => 'btn btn-quaternary mr-xs mb-sm button-text',
'name' => 'btn', 'id' => '', 'title' => 'Title'));
//ตกลง
?>
</div>
...
...
@@ -46,7 +46,7 @@
var elem = document.getElementById('password').value;
// console.log(elem);
if(!elem.match(/^([A-Za-z0-9])+$/i)){
alert("
กรุณาใส่ข้อมูลที่เป็นตัวอักษรภาษาอังกฤษและตัวเลขเท่านั้น");
alert("
Please enter only English letters and numbers.");//กรุณาใส่ข้อมูลที่เป็นตัวอักษรภาษาอังกฤษและตัวเลขเท่านั้น
return false;
}
})
...
...
@@ -55,7 +55,7 @@
var elem = document.getElementById('confirm_password').value;
// console.log(elem);
if(!elem.match(/^([A-Za-z0-9])+$/i)){
alert("
กรุณาใส่ข้อมูลที่เป็นตัวอักษรภาษาอังกฤษและตัวเลขเท่านั้น");
alert("
Please enter only English letters and numbers.");//กรุณาใส่ข้อมูลที่เป็นตัวอักษรภาษาอังกฤษและตัวเลขเท่านั้น
return false;
}
})
...
...
@@ -64,26 +64,26 @@
var password = document.forms["changePressword"]["password"].value;
if (password == null || password == "") {
alert("
กรุณากรอก รหัสผ่านใหม่");
alert("
Please enter a new password.");//กรุณากรอก รหัสผ่านใหม่
return false;
}
if(document.forms["changePressword"]["password"].value.length < 8)
{
alert('
กรุณาระบุรหัสผ่านใหม่อย่างน้อย 8 ตัวอักษร');
alert('
Please enter a new password at least 8 characters.');//กรุณาระบุรหัสผ่านใหม่อย่างน้อย 8 ตัวอักษร
return false;
}
var confirm_password = document.forms["changePressword"][["confirm_password"]].value;
if (confirm_password == null || confirm_password == "") {
alert("
กรุณากรอก ยืนยันรหัสผ่าน");
alert("
Please enter your password.");//กรุณากรอก ยืนยันรหัสผ่าน
return false;
}
if(document.forms["changePressword"]["confirm_password"].value.length < 8)
{
alert('
กรุณาระบุยืนยันรหัสผ่านอย่างน้อย 8 ตัวอักษร');
alert('
Please enter at least 8 characters.');//กรุณาระบุยืนยันรหัสผ่านอย่างน้อย 8 ตัวอักษร
return false;
}
if(document.forms["changePressword"]["password"].value != document.forms["changePressword"]["confirm_password"].value){
alert('
กรุณาระบุรหัสผ่านให้ตรงกัน');
alert('
Please provide the same password.');//กรุณาระบุรหัสผ่านให้ตรงกัน
//document.createAccount.confirm_password.focus();
return false;
}
...
...
www/src/Template/Users/forgot_password.ctp
View file @
b6150ce3
<div class="row">
<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 class="col-md-12">
...
...
@@ -11,7 +11,7 @@
<div>
<div class="form-group has-feedback">
<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">
</div>
</div>
...
...
@@ -31,13 +31,13 @@
function validateForm() {
var email = document.forms["forgotPressword"]["email"].value;
if (email == null || email == "") {
alert("Please enter your email.");
alert("Please enter your email.");
//กรุณากรอกอีเมลล์
return false;
}
// Validate Email
var email = $("#fremail").val();
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;
}
}
...
...
www/src/Template/Users/pin_codepassword.ctp
View file @
b6150ce3
<div>
<div class=" row center">
<div class="title_header"><?php echo __('
ยืนยันตัวตนด้วยรหัส PIN');
?></div>
<div class="title_header"><?php echo __('
Verify PIN');//ยืนยันตัวตนด้วยรหัส PIN
?></div>
</div>
<div style="padding-top: 20px;"></div>
...
...
@@ -15,7 +15,7 @@
<div class="form-group has-feedback">
<div class="col-md-12">
<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>
...
...
@@ -37,7 +37,7 @@
<div class="col-md-12">
<div class=" row center">
<?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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment