<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">Gold/Silver Add</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_gold_form" enctype="multipart/form-data" method="post">    
                    <input type="hidden" name="hidden_id" value="" />    
                    <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="name" placeholder="Name" autofocus />
                                    </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="contact_no" placeholder="Contact No" />
                                            <div class="input-group-addon"><i class="fa fa-phone"></i></div>
                                        </div>
                                    </div>
                                    
                                    <div class="form-group float-clear inv_item">
                                        <label>Address</label>
                                        <textarea class="form-control" name="address"></textarea>
                                    </div>-->
                                    
                                    <div class="form-group">
                                        <label>Type<span class="required">*</span></label>
										<div class="input-group" style="width:272px; float: left; margin-right: 5px;">
                                            <select name="type_id" class="form-control select2">
                                                <option value="">Select Type</option>
                                                <?php foreach($gold_types as $key=>$gold_type) {?>
                                                    <option value="<?php echo $gold_type->id;?>"><?php echo $gold_type->type;?></option>
                                                <?php } ?>
                                            </select>
                                        </div>
                                        <span>
                                           <!--<input type="button" name="add_type" value="+" class="btn btn-info btn-sm" style="background-color:#e33739; border-color: #e33739; height:34px; width: 32px;" />-->
                                           <i class="fa fa-2x fa-plus-circle addButton add-row add_type addRow_color" style="margin-top: 3px;"></i>
									    </span>
                                    </div><br/>
                                    
                                    <div class="form-group float-clear">
                                        <label class="leftcol">Item<span class="required">*</span></label>
                                        <label for="status"><input type="radio" name="item" value="1" checked /> &nbsp;&nbsp;Gold</label> 
                                        <label for="status"><input type="radio" name="item" value="2" /> &nbsp;&nbsp;Silver</label>
                                    </div>
                                        
                                </div>
                                
                                <div class="col-md-6">   
                                    <div class="form-group float-clear">
                                        <label>Description</label>
                                        <textarea class="form-control" name="desc"></textarea>
                                    </div>
                                    
                                     <div class="form-group float-clear">
                                        <label>Weight in grams<span class="required">*</span></label>
                                        <input type="text" class="form-control" name="weight_in_grams" placeholder="Weight in grams" />
                                    </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="Save" 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>