
<div class="page-content" >
    <div class="col-xs-3 col-sm-3"></div>
<div class="row">
    <div class="col-sm-5">
        <div class="widget-box">
            <div class="widget-header">
                <h4 class="widget-title">Edit Expense category</h4>
            </div>

            <div class="widget-body">
                <?php
                                $message = $this->session->userdata('message');
                                if (!empty($message)) {
                                    ?>
                                    <div class="alert alert-block alert-success">
                                        <h6 class="lighter arial green"><b>
                                                <?php echo $message;
                                                $this->session->unset_userdata('message');
                                                ?>
                                            </b></h6>
                                    </div>  
                                    <?php
                                }
                                $errormessage = $this->session->userdata('errormessage');
                                if (!empty($errormessage)) {
                                    ?>
                                    <div class="alert alert-block alert-danger">
                                        <h6 class="lighter arial red"><b>
                                                <?php echo $errormessage;
                                                $this->session->unset_userdata('errormessage');
                                                ?>
                                            </b></h6>
                                    </div> 
                                    <?php
                                }
                                ?>
                <div class="widget-main no-padding">
                    <form action="<?php echo admin_url()?>/expensecategorysetup/update_Category/<?php echo $categoryById['category_id'];?> " method="post">
                        <!-- <legend>Form</legend> -->
                        <fieldset>
                            <label class="col-xs-4 col-sm-4">Expense category</label>

                            <input type="text" name="data[category_name]" value="<?php echo $categoryById['category_name'];?>" placeholder="Expense category" class="col-xs-8 col-sm-8" />
                           
                        </fieldset>

                        <div class="form-actions center">
                            <button type="submit" name="btnUpdate" class="btn btn-sm btn-success">
                                <i class="ace-icon fa fa-check bigger-110"></i>
                                Update
                                
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div></div></div>