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
856329a6
authored
May 24, 2018
by
Prasong Putichanchai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'integration' into prasong
parents
4dd283e1
03600516
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
www/src/Controller/UserCardsController.php
+0
-1
www/src/Template/Profiles/index.ctp
+14
-2
No files found.
www/src/Controller/UserCardsController.php
View file @
856329a6
...
...
@@ -316,7 +316,6 @@ class UserCardsController extends AppController
]
])
->
first
();
if
(
empty
(
$UserEntities
)){
// pr('sdsd');die;
$UserEntities
=
$this
->
UserEntities
->
newEntity
();
$UserEntities
[
'entity_code'
]
=
$TempUserCards
[
'organize_id'
];
$UserEntities
[
'user_id'
]
=
$this
->
Auth
->
user
(
'id'
);
...
...
www/src/Template/Profiles/index.ctp
View file @
856329a6
...
...
@@ -140,11 +140,12 @@
'id' => 'master_country_id',
'label' => false,
'type' => 'select',
'require'=>'require',
'options' => $Country,
'value' => $responseUserPersonal['master_country_id'],
'empty' => '---Select---',
'default' => !empty($responseUserPersonal['master_country_id'])? $responseUserPersonal['master_country_id']:'',
'class' => 'form-control border-bottom-from label-text-sub',
'class' => 'form-control border-bottom-from label-text-sub
require
',
'style' => 'width:100%'
));
?>
...
...
@@ -158,11 +159,12 @@
'id' => 'master_province_id',
'label' => false,
'type' => 'select',
'require'=>'require',
'options' => $Province,
'value' => $responseUserPersonal['master_province_id'],
'empty' => '---Select---',
'default' => !empty($responseUserPersonal['master_province_id'])? $responseUserPersonal['master_province_id']:'',
'class' => 'form-control border-bottom-from label-text-sub',
'class' => 'form-control border-bottom-from label-text-sub
require
',
'style' => 'width:100%'
));
?>
...
...
@@ -270,6 +272,16 @@
// return false;
// }
// });
var master_country_id = document.getElementById("master_country_id").value;
if (master_country_id == null || master_country_id == "") {
alert("กรุณาระบุประเทศ");
return false;
}
var master_province_id = document.getElementById("master_province_id").value;
if (master_province_id == null || master_province_id == "") {
alert("กรุณาระบุจังหวัด");
return false;
}
$("body").delegate(".is_active", "click", function () {
$('.is_active').not(this).prop('checked', false);
...
...
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