<script type="text/javascript" src="<?php echo base_url();?>assets/js/inv_gold.js"></script>
<aside class="right-side">
    <section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color">Temple Institution Edit</h1>
            <div class="breadcrumb_container"><?php echo breadcrumb_links();?></div>
        </div>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <form action="<?php echo $form_action;?>" method="post" name="inv_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">
                                        <label>Type<span class="required">*</span></label>
										<div class="input-group">
                                            <input type="text" class="form-control" name="type" placeholder="Type" value="<?php echo $temple->type;?>" />
                                        </div>
                                    </div>
                                    <div class="form-group float-clear">
                                        <label class="leftcol">Quantity</label>
                                        <input type="text" class="form-control float_value" name="quantity" placeholder="" value="<?php echo $temple->quantity;?>" />
                                    </div>
                                </div>
                                
                                <div class="col-md-6">   
                                    <div class="form-group float-clear">
                                        <label>Description</label>
                                        <textarea class="form-control" name="desc"><?php echo $temple->desc;?></textarea>
                                    </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 -->
        
        <!-- Start Modal -->
        <div class="modal fade" id="type_modal" role="dialog">
            <div class="modal-dialog">
                <!-- Modal content-->
                <div class="modal-content">
                    <form name="addType">
                    <div class="modal-header" style="background-color: #337AB7;">
                        <button type="button" class="close cancel_popup" data-dismiss="modal" style="color: #FFF;">x</button>
                        <h4 class="modal-title" style="color: #FFF;">Add New Type</h4>
                    </div>
                    <div class="modal-body">
                        <ul class="error_container"></ul>
                        <div class="form-group">
                            <label>Type<span class="required">*</span></label>
                            <input type="text" class="form-control" name="new_type" placeholder="Type" />
                        </div>
                    </div>
                    <div class="modal-footer">
                        <input type="submit" class="btn btn-danger" value="Save" title="Add New Type" />                    
                        <button type="button" class="btn btn-primary cancel_popup" data-dismiss="modal">Cancel</button>
                    </div>
                    </form>
                </div>
            </div>
        </div>
    <!-- End Modal -->
    </section><!-- /.content -->
</aside>