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
4d6ad11c
authored
Jun 07, 2018
by
Zen-PC\Zen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zen : จัดโค้ดให้ดูง่ายขึ้น
parent
1fe14090
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
7 deletions
+29
-7
www/src/Template/Profiles/index.ctp
+29
-7
No files found.
www/src/Template/Profiles/index.ctp
View file @
4d6ad11c
...
@@ -45,7 +45,13 @@ use Cake\I18n\Time;
...
@@ -45,7 +45,13 @@ use Cake\I18n\Time;
<div style="clear: both"></div>
<div style="clear: both"></div>
<br><br>
<br><br>
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="col-xs-12 col-sm-12 col-md-12">
<?php echo $this->Form->create('UserProfiles', ['id' => 'frmSignIn', 'type' => 'file','name' => 'frmSignIn','role' => 'form', 'onsubmit' => 'return validateForm()']); ?>
<?php echo $this->Form->create('UserProfiles', [
'id' => 'frmSignIn',
'type' => 'file',
'name' => 'frmSignIn',
'role' => 'form',
'onsubmit' => 'return validateForm()'
]); ?>
<?php echo $this->Flash->render() ?>
<?php echo $this->Flash->render() ?>
<div class="form-group has-feedback">
<div class="form-group has-feedback">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="col-xs-12 col-sm-12 col-md-12">
...
@@ -56,8 +62,23 @@ use Cake\I18n\Time;
...
@@ -56,8 +62,23 @@ use Cake\I18n\Time;
</div>
</div>
<div class="form-group has-feedback">
<div class="form-group has-feedback">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="col-xs-12 col-sm-12 col-md-12">
<?php echo $this->Form->hidden('Users.user_id', ['class' => 'form-control-reg border-bottom-from label-text-sub', 'value' => $responseUserProfile['id'], 'id' => 'userId', 'type' => 'text', 'label' => __('username'), 'placeholder' => 'USERNAME']); ?>
<?php echo $this->Form->hidden('Users.user_id', [
<?php echo $this->Form->input('Users.username', ['class' => 'form-control-reg border-bottom-from label-text-sub', 'value' => $username, 'id' => 'username', 'type' => 'text', 'label' => __('username'), 'placeholder' => 'USERNAME', 'readonly']); ?>
'class' => 'form-control-reg border-bottom-from label-text-sub',
'value' => $responseUserProfile['id'],
'id' => 'userId',
'type' => 'text',
'label' => __('username'),
'placeholder' => 'USERNAME'
]); ?>
<?php echo $this->Form->input('Users.username', [
'class' => 'form-control-reg border-bottom-from label-text-sub',
'value' => $username,
'id' => 'username',
'type' => 'text',
'label' => __('username'),
'placeholder' => 'USERNAME',
'readonly'
]); ?>
<?php // echo $this->Form->input('user_id', ['class' => 'form-control-reg border-bottom-from label-text-sub', 'value' => $userProfile->username, 'id' => 'userId', 'type' => 'text', 'label' => __('ชื่อผู้ใช้งาน'), 'placeholder' => 'USERNAME']); ?>
<?php // echo $this->Form->input('user_id', ['class' => 'form-control-reg border-bottom-from label-text-sub', 'value' => $userProfile->username, 'id' => 'userId', 'type' => 'text', 'label' => __('ชื่อผู้ใช้งาน'), 'placeholder' => 'USERNAME']); ?>
</div>
</div>
</div>
</div>
...
@@ -69,7 +90,8 @@ use Cake\I18n\Time;
...
@@ -69,7 +90,8 @@ use Cake\I18n\Time;
'class' => 'form-control-reg border-bottom-from label-text-sub required letterthai',
'class' => 'form-control-reg border-bottom-from label-text-sub required letterthai',
'value' => $responseUserPersonal['firstname_th'],
'value' => $responseUserPersonal['firstname_th'],
'id' => 'firstname_th',
'id' => 'firstname_th',
'type' => 'text', 'label' => false,
'type' => 'text',
'label' => false,
'minlength' => '4',
'minlength' => '4',
'placeholder' => 'firstname'
'placeholder' => 'firstname'
]); ?>
]); ?>
...
@@ -84,7 +106,8 @@ use Cake\I18n\Time;
...
@@ -84,7 +106,8 @@ use Cake\I18n\Time;
'class' => 'form-control-reg border-bottom-from label-text-sub required letterthai',
'class' => 'form-control-reg border-bottom-from label-text-sub required letterthai',
'value' => $responseUserPersonal['lastname_th'],
'value' => $responseUserPersonal['lastname_th'],
'id' => 'lastname_th',
'id' => 'lastname_th',
'type' => 'text', 'label' => false,
'type' => 'text',
'label' => false,
'minlength' => '4',
'minlength' => '4',
'placeholder' => 'lastname'
'placeholder' => 'lastname'
]); ?>
]); ?>
...
@@ -179,8 +202,7 @@ use Cake\I18n\Time;
...
@@ -179,8 +202,7 @@ use Cake\I18n\Time;
'id' => 'email',
'id' => 'email',
'name' => 'email',
'name' => 'email',
'label' => false,
'label' => false,
'placeholder' =>
'placeholder' => 'mail@xxx.com'
'mail@xxx.com'
]); ?>
]); ?>
<?php // echo $this->Form->input('email', ['class' => 'form-control-reg border-bottom-from label-text-sub', 'value' => $userProfiles->email, 'id' => 'email', 'type' => 'email', 'label' => __('Email'), 'placeholder' => 'mail@xxx.com']); ?>
<?php // echo $this->Form->input('email', ['class' => 'form-control-reg border-bottom-from label-text-sub', 'value' => $userProfiles->email, 'id' => 'email', 'type' => 'email', 'label' => __('Email'), 'placeholder' => 'mail@xxx.com']); ?>
<!-- <input type="text" name="email" id="email" value="<?php echo $responseUserPersonal['email'] ?>" placeholder="mail@xxx.com"
<!-- <input type="text" name="email" id="email" value="<?php echo $responseUserPersonal['email'] ?>" placeholder="mail@xxx.com"
...
...
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