<script type="text/javascript" src="<?php echo base_url();?>assets/js/temple.js"></script>
<aside class="right-side">
    <section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color">Temple Details 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="temple_form" enctype="multipart/form-data" method="post">    
                    <input type="hidden" name="hidden_id" value="<?php echo $temple->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>No</label>
                                        <input type="text" class="form-control" name="temple_no" placeholder="Temple No" autofocus value="<?php echo $temple->no;?>" />
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Name<span class="required">*</span></label>
                                        <input type="text" class="form-control" name="name" placeholder="Name" value="<?php echo $temple->name;?>" />
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Chairman/President<span class="required">*</span></label>
                                        <input type="text" class="form-control" name="chairman" placeholder="Chairman/President" value="<?php echo $temple->chairman_name;?>" />
                                    </div>
                                    
                                    <!--<div class="form-group float-clear">
                                        <label>BLK<span class="required">*</span></label>
                                        <input type="text" class="form-control" name="blk" placeholder="BLK" value="<?php echo $temple->blk;?>" />
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Unit No<span class="required">*</span></label>
                                        <input type="text" class="form-control" name="unit_no" placeholder="Unit No" value="<?php echo $temple->unit_no;?>" />
                                    </div>-->
                                    
                                    <div class="form-group float-clear">
                                        <label>Contact No<span class="required">*</span></label>
                                        <div class="input-group">
                                            <input type="text" class="form-control" name="phone_no" placeholder="Contact No" value="<?php echo $temple->phone;?>" />
                                            <div class="input-group-addon"><i class="fa fa-phone"></i></div>
                                        </div>
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Email</label>
                                        <div class="input-group">
                                            <input type="text" class="form-control" name="email" placeholder="Email" value="<?php echo $temple->email;?>" />
                                            <div class="input-group-addon"><i class="fa fa-envelope"></i></div>
                                        </div>
                                    </div>
                                </div>
                                
                                <div class="col-md-6">
                                    <div class="form-group float-clear">
                                        <label>Name (T)</label>
                                        <div class="input-group">
                                            <input type="text" class="form-control multi tamil-name input-tamil" name="tamil_name" placeholder="jkpH;bgah;" onclick="set_tamil_keypad(this);" value="<?php echo $temple->tamil_name;?>" />
                                            <div class="input-group-addon"><i class="fa fa-keyboard-o"></i></div>
                                        </div>
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Chairman (T)</label>
                                        <div class="input-group">
                                            <input type="text" class="form-control multi tamil-name input-tamil" name="chairman_tamil" placeholder="jkpH;bgah;" onclick="set_tamil_keypad(this);" value="<?php echo $temple->chair_tamil_name;?>" />
                                            <div class="input-group-addon"><i class="fa fa-keyboard-o"></i></div>
                                        </div>
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Fax</label>
                                        <input type="text" class="form-control" name="fax" placeholder="Fax" value="<?php echo $temple->fax;?>" />
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Address</label>
                                        <textarea type="text" class="form-control" name="address"><?php echo $temple->address;?></textarea>
                                    </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 $temple->status == "1" ? 'checked' : ''; ?>/> &nbsp;&nbsp;Active</label> 
                                            <label for="status" style="width: 32%;"><input type="radio" name="status" value="0" <?php echo $temple->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>