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
7666d4de
authored
Jun 01, 2018
by
Prasong Putichanchai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
7f202ff6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
31 deletions
+13
-31
www/src/Template/Element/card_from/from_add_card.ctp
+4
-5
www/src/Template/Profiles/index.ctp
+1
-1
www/src/Template/Users/forgot_password.ctp
+5
-22
www/src/Template/Users/signup.ctp
+1
-1
www/src/Template/Users/verify.ctp
+2
-2
No files found.
www/src/Template/Element/card_from/from_add_card.ctp
View file @
7666d4de
...
...
@@ -78,8 +78,7 @@
data = jQuery.parseJSON(data);
if (data['chkuser'] == true) {
$("#noorg_th").text('');
$("#noorg_th").text(<?php echo __('Register with') ?> + data[0]['org_name_th'] +
<?php echo __('already') ?>);
$("#noorg_th").text("<?php echo __('Register with') ?> + data[0]['org_name_th'] + <?php echo __('already') ?>");
$("#nameorg_th").text('');
$('#employee').attr("disabled", true);
organize_id.val('');
...
...
@@ -94,7 +93,7 @@
}
} else {
$("#noorg_th").text('');
$("#noorg_th").text(
<?php echo __('Data not found') ?>
);
$("#noorg_th").text(
"<?php echo __('Data not found') ?>"
);
$("#nameorg_th").text('');
$("#noepm_th").text('');
$("#nameemp_th").text('');
...
...
@@ -118,7 +117,7 @@
data = jQuery.parseJSON(data);
if (data['chkuser'] == true) {
$("#noepm_th").text('');
$("#noepm_th").text(
<?php echo __('Registered') ?>
);
$("#noepm_th").text(
"<?php echo __('Registered') ?>"
);
$("#nameemp_th").text('');
$('#date').attr("disabled", true);
date.val('');
...
...
@@ -130,7 +129,7 @@
}
} else {
$("#noepm_th").text('');
$("#noepm_th").text(
<?php echo __('"Did not find the information you need", Please enter the correct information and press the check.') ?>
);
$("#noepm_th").text(
"<?php echo __('"Did not find the information you need", Please enter the correct information and press the check.') ?>"
);
$("#nameemp_th").text('');
$('#date').attr("disabled", true);
date.val('');
...
...
www/src/Template/Profiles/index.ctp
View file @
7666d4de
...
...
@@ -81,7 +81,7 @@ use Cake\I18n\Time;
<div class="col-xs-12 col-sm-12 col-md-12">
<?php echo __('birthdate');?>
<em>* </em>
<?php echo $this->Form->input('UserPersonals.birthdate', ['class' => 'form-control-reg border-bottom-from', 'value' => $dateNow, 'id' => 'datepicker', 'type' => 'text', 'label' => false, 'placeholder' => 'DD-MM-YYYY']); ?>
<?php echo $this->Form->input('UserPersonals.birthdate', ['class' => 'form-control-reg border-bottom-from', 'value' => $dateNow, 'id' => 'datepicker', 'type' => 'text', 'label' => false, 'placeholder' => 'DD-MM-YYYY'
,'readonly'=>'readonly'
]); ?>
<span class="glyphicon glyphicon-calendar form-control-feedback datepicker"></span>
</div>
</div>
...
...
www/src/Template/Users/forgot_password.ctp
View file @
7666d4de
...
...
@@ -28,35 +28,18 @@
</div>
<!-- ------------------------------- popup ----------------------------------- -->
<script>
// function validateForm() {
// var email = document.forms["forgotPressword"]["email"].value;
// if (email == null || email == "") {
// alert(<?php echo __('Please enter your email.');?>);
// return false;
// }
// // Validate Email
// var email = $("#fremail").val();
// if ((/(.+)@(.+){2,}\.(.+){2,}/.test(email)) || email=="" || email==null) { } else {
// alert(<?php echo __('Email address format wrong Please enter the correct.');?>);
// return false;
// }
// }
function validateForm() {
var email = document.
getElementById("email")
.value;
var email = document.
forms["forgotPressword"]["email"]
.value;
if (email == null || email == "") {
alert(
"Please enter your email."
);
alert(
<?php echo __('Please enter your email.');?>
);
return false;
}
// Validate Email
var email = $("#
email").val();
if (/(.+)@(.+){2,}\.(.+){2,}/.test(email)
) { } else {
alert("Email address format wrong Please enter the correct."
);
var email = $("#fr
email").val();
if ((/(.+)@(.+){2,}\.(.+){2,}/.test(email)) || email=="" || email==null
) { } else {
alert(<?php echo __('Email address format wrong Please enter the correct.');?>
);
return false;
}
$("body").delegate(".is_active", "click", function () {
$('.is_active').not(this).prop('checked', false);
return true;
});
}
</script>
<style>
...
...
www/src/Template/Users/signup.ctp
View file @
7666d4de
...
...
@@ -82,7 +82,7 @@
<div class="form-group has-feedback bootstrap-iso">
<div class="col-md-12">
<label class="label-text-sub"><?php echo __('Birthdate');?></label>
<input type="text" name="birthdate" id="date" placeholder="กรุณาระบุวันเดือนปีเกิด" value="" placeholder="DD-MM-YYYY" data-date-format="mm/dd/yyyy" class="form-control-reg border-bottom-from">
<input type="text" name="birthdate" id="date" placeholder="กรุณาระบุวันเดือนปีเกิด" value="" placeholder="DD-MM-YYYY" data-date-format="mm/dd/yyyy" class="form-control-reg border-bottom-from"
readonly
>
<span class="glyphicon glyphicon-calendar form-control-feedback"></span>
</div>
</div>
...
...
www/src/Template/Users/verify.ctp
View file @
7666d4de
...
...
@@ -6,4 +6,4 @@
Login.onLogin('<?php echo $token; ?>', '<?php echo $RedirectApplicationURL; ?>', '<?php echo $topic; ?>');
}
}, 1000);
</script>;
\ No newline at end of file
</script>
\ No newline at end of file
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