<?php defined('BASEPATH')or exit("NO DIRECT ACCESS iS ALLOWED");?>

<div class="content-wrapper">
<?php /*?>    <section class="content-header">
      <h1><small>Edit WorkPackage</small></h1>
      <ol class="breadcrumb">
        <li><?php echo anchor('dashboard','<i class="fa fa-dashboard"></i> Dashboard')?></li>
        <li><?php echo anchor('master/Activity','Activity')?></li>
        <li class="active">Edit WorkPackage</li>
      </ol>
    </section> <?php */?>
    
        <section class="content">
          <div class="row">
            <div class="col-xs-12">
              <div class="box">
                <div class="box-header">    
				  <?php $msg = $this->session->flashdata('message'); if((isset($msg)) && (!empty($msg))) { ?>
                   		<div class="alert alert-success pull-left" style="height:35px;width:600px;padding:4px;margin:2px;text-align:center;">
                    	<a href="#" class="close" data-dismiss="alert">&times;</a> <?php echo($msg); ?></div>
                  <?php } ?>              
                  <?php echo form_open("admin/master/Coupon_category/edit/{$list->id}",['name'=>'activity_form_edit','id'=>'activity_form_edit']);?>
          		  <?php echo form_hidden('my_array',['name'=>'doaction','id'=>'doaction']);?>
                  <?php echo $message;?>
                  <?php echo form_submit(['name'=>'save','value'=>'Save','class'=>'btn btn-default pull-right',
				  'style'=>'margin-left:5px;background-color: #ffffff;']); ?>
                  <?php echo anchor('admin/master/Coupon_category/create','<i class="fa fa-fw fa-plus-square"></i> Add Coupon_coupon_category',['class'=>'btn btn-default pull-right',
				  'style'=>'margin-left:5px;background-color: #ffffff;']); ?>
                  <?php echo anchor('admin/master/Coupon_category','<i class="fa fa-fw fa-arrows"></i> Coupon_coupon_category List',['class'=>'btn btn-default pull-right','style'=>'background-color: #ffffff;']); ?>
                  
                </div><!-- /.box-header -->
                <div class="box-body">
                <hr />
                	<div class="row">
                		<div class="col-md-12">
                			<div class="col-md-3">
                       		 	<div class="form-group">
									<?php echo form_label('Coupon_category','coupon_category',['for'=>'coupon_category']);?><?php echo form_error('coupon_category'); ?>
                    				<?php echo form_input(['name'=>'coupon_category','class'=>'form-control','id'=>'coupon_category','placeholder'=>'Enter coupon_category  here',
                    				    'value'=>set_value('coupon_category',strtoupper($list->coupon_category)),'disabled'=>'disabled']);?>
                                </div>
                                </div>
                                <div class="col-md-3">
                       		 	<div class="form-group">
									<?php echo form_label('Percent','percent',['for'=>'percent']);?><?php echo form_error('percent'); ?>
                    				<?php echo form_input(['name'=>'percent','class'=>'form-control','id'=>'percent','placeholder'=>'Enter percent  here',
                    				    'value'=>set_value('percent',strtoupper($list->percent)),'disabled'=>'disabled']);?>
                                </div>
                                </div>
                                <div class="col-md-3">
                                <div class="form-group">
									<?php echo form_label('Amount','description',['for'=>'amount']);?><?php echo form_error('amount'); ?>
                    				<?php echo form_input(['name'=>'amount','class'=>'form-control','id'=>'amount','placeholder'=>'Enter amount  here',
                    				    'value'=>set_value('amount',strtoupper($list->amount))]);?>
                                </div>
                                </div>
                                <div class="col-md-3">
                                <div class="form-group">
									<?php echo form_label('Status','status',['for'=>'status']);?><?php echo form_error('status'); ?>
                    				<?php $options=array(''=>'Select Status','1'=>'Active','0'=>'Inactive');  ?>
                  					<?php echo form_dropdown('status',$options,set_value('status',$list->status),['class'=>'form-control']);?>
                                </div>	
                                </div>	
                              	 
                        </div>
                    </div>
                </div>
                <hr />
<?php $js=['onClick'=>'return inventory_validate();'];?>
<?php echo form_submit(['name'=>'save','value'=>'Save','class'=>'btn btn-default pull-right','style'=>'margin-left:5px;background-color: #ffffff;']); ?>
<?php echo  form_close();?>
</div>
</div>
</div>
</section>
</div>
