Commit c818f456 by Zen-PC\Zen

Merge branch 'integration' into kraikrit

parents d175c70b 5e3f8cf2
...@@ -306,11 +306,11 @@ class UserCardsController extends AppController ...@@ -306,11 +306,11 @@ class UserCardsController extends AppController
return $this->redirect(['controller' => 'Profiles', 'action' => 'index']); return $this->redirect(['controller' => 'Profiles', 'action' => 'index']);
} }
}else{ }else{
$this->Flash->success(__('ลงทะเบียนไว้อยู่แล้ว')); $this->Flash->error(__('ลงทะเบียนไว้อยู่แล้ว'));
return $this->redirect(['controller' => 'UserCards', 'action' => 'viewCard']); return $this->redirect(['controller' => 'UserCards', 'action' => 'viewCard']);
} }
}else{ }else{
$this->Flash->success(__('ไม่พบข้อมูล')); $this->Flash->error(__('ไม่พบข้อมูล'));
return $this->redirect(['controller' => 'UserCards', 'action' => 'viewCard']); return $this->redirect(['controller' => 'UserCards', 'action' => 'viewCard']);
} }
} }
......
...@@ -141,6 +141,7 @@ use Cake\I18n\Time; ...@@ -141,6 +141,7 @@ use Cake\I18n\Time;
<img src="/img/core/img/bloc-plus@3x.png" class="img-responsive" style="width: 100%"> <img src="/img/core/img/bloc-plus@3x.png" class="img-responsive" style="width: 100%">
</div> </div>
<div class="col-xs-1 col-sm-1 col-md-1 box-arrow"></div> <div class="col-xs-1 col-sm-1 col-md-1 box-arrow"></div>
<?php echo $this->Flash->render(); ?>
<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">
<?php echo $this->Form->create('UserCards', ['id' => 'frmSignIn', 'type' => 'file', 'onsubmit' => 'return check();']); ?> <?php echo $this->Form->create('UserCards', ['id' => 'frmSignIn', 'type' => 'file', 'onsubmit' => 'return check();']); ?>
......
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