<script type="text/javascript" src="<?php echo base_url();?>assets/js/god_name.js"></script>
<aside class="right-side">
    <section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color">God  Name Edit</h1>
            <div class="breadcrumb_container"><?php echo breadcrumb_links();?></div>
        </div>
    </section>
    <section class="content">
        <div class="row" id="main-content">
            <div class="col-xs-12">
                <form action="<?php echo $form_action;?>" method="post" name="god_name_form" enctype="multipart/form-data" method="post">    
                    <input type="hidden" name="hidden_id" value="<?php echo $god_names->id;?>" />    
                    <div class="box box-danger">
                        <div class="box-body">
                            <ul class="error_container"></ul>
                            <div class="col-xs-12">
                                <div class="col-md-6">
                                    <div class="form-group float-clear">
                                        <label>Name<span class="required">*</span></label>
                                        <input type="text" class="form-control" name="god_name" placeholder="Name" autofocus value="<?php echo $god_names->name;?>" />
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Name (T)</label>
                                        <div class="input-group">
                                            <input class="form-control multi tamil-name input-tamil" type="text" name="tamil_god_name" placeholder="jkpH;bgah;" value="<?php echo $god_names->tamil_name;?>" onclick="set_tamil_keypad(this);" />
                                            <div class="input-group-addon"><i class="fa fa-keyboard-o"></i></div>
                                        </div>
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Price<span class="required">*</span></label>
                                        <div class="input-group">
                                            <div class="input-group-addon">$</div>
                                            <input type="text" class="form-control float_value" name="price" value="<?php echo $god_names->price;?>" />
                                        </div>
                                    </div>
                                    
                                    <div class="form-group">
                                        <label>Upload Image<span class="required">*</span></label>
                                       <input type="file" class="form-control img_file" value="<?php echo $god_names->icon;?>" data-value="<?php echo $god_names->icon;?>" name="icon" data-allowed_exetnsions="<?php echo implode('|', image_extensions());?>" />
                                        <!-- Eg: data-allowed_size 2 MB -->
                                        <div class="img_preview">
                                            <?php
                                            if ((!empty($god_names->icon)) && (file_exists(FCPATH . DIR_GOD_ICON . $god_names->icon))) {
                                                $image_url = base_url() . DIR_GOD_ICON . $god_names->icon;
                                                $alt = 'No image not found!';   
                                            }
                                            else {
                                                $image_url = base_url() . NO_IMG;
                                                $alt = 'No image not found!';
                                            }
                                            ?>
                                            <img class="toggle" src="<?php echo $image_url;?>" alt="<?php echo $alt;?>" style="padding-left: 15%;" /><br />
                                            
                                            <?php if ((!empty($god_names->icon)) && (file_exists(FCPATH . DIR_GOD_ICON . $god_names->icon))) { ?>
                                            <span><input type="checkbox" id="img_hide" name="img_delete" value="1"/>Delete</span>
                                             <?php } ?>
                                        </div>
                                        <span class="allowed_type">Icon should be <b><i><?php echo strtoupper(implode(', ', image_extensions())) . ', ICO';?></i></b> file format</span>
                                    </div>
                                    
                                    <div class="form-group">
                                        <label class="leftcol">Status</label>
                                        <div>
                                            <label for="status" style="width: 32%;"><input type="radio" name="status" value="1" <?php echo $god_names->status == "1" ? 'checked' : ''; ?>/> &nbsp;&nbsp;Active</label> 
                                            <label for="status" style="width: 32%;"><input type="radio" name="status" value="0" <?php echo $god_names->status == "0" ? 'checked' : ''; ?> /> &nbsp;&nbsp;Inactive</label> 
                                        </div>
                                    </div>
                                    
                                    
                                </div>
                            </div>
                        </div>
                        
                        <div class="box-footer form-actions float-clear">
                            <input class="btn reset" type="reset" value="Reset" />
                            <input type="submit" name="submit" value="Update" class="btn btn-success btn-primary" />
                        </div>
                    </div><!-- /.box -->
                </form>
            </div><!-- /.col-xs-12 -->
        </div><!-- /.row -->
    </section><!-- /.content -->
</aside>