Rev 19460 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<script>$(document).ready(function(){$("#UserRefundType").change(function(){if($("#UserRefundType").val() == "Adjustment"){$('.store').removeClass('hidden');}else if($("#UserRefundType").val() == "Refund"){$('.store').addClass('hidden');}})});</script><div class="container"><div class="row"><div class="col-lg-3"><?php echo $this->Element('adminactions');?></div><div class="col-lg-9"><?php echo $this->Form->create('UserRefund'); ?><fieldset><legend><?php echo __('Add Refund Data'); ?></legend><?phpecho $this->Form->input('user_id',array('value'=>$id,'type'=>'text','readonly'=> true));echo $this->Form->input('email_id',array('value'=>$email,'type'=>'text','readonly'=> true));echo $this->Form->input('mobile',array('value'=>$phone,'readonly'=>true));echo $this->Form->input('amount',array('type'=>'number','required'=>1, 'min'=>"0",'max'=>"5000"));$type=array('Refund'=>'Refund','Adjustment'=>'Adjustment');echo $this->Form->input('type', array('options'=>$type, 'selected'=>'Refund'));?><div class = "store hidden"><?php$storelist = array(''=> '' , 1=> 'Amazon',2=>'Flipkart' ,3 => 'Snapdeal', 4=>'Sahoic',5=>'Shopclues',6=>'Paytm',7=>'Homeshop18');echo $this->Form->input('store',array('options'=>$storelist,'selected'=> ''));?></div><?phpecho $this->Form->input('reference_no',array('required'=>1));echo $this->Form->input('reference_description',array('type' => 'textarea','required'=> 1));?></fieldset><?php echo $this->Form->end(__('Submit')); ?></div></div></div></div>