<?php

/* 
 * Author       : Jai K
 * Purpose      : The add page for Form Download
 * Created On   : 2016-12-28 18:05    
 */
?>
<aside class="right-side">
    <section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color"><?php echo $title; ?> - Add</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"  enctype="multipart/form-data" method="post" >    
                    <input type="hidden" name="token" value="<?php echo $token; ?>" />    
                    <div class="box box-danger">
                        <div class="box-body">
                            <?php if( !empty( $success ) || !empty( $error ) ) : ?>
                                <div class="alert alert-<?php echo !empty( $success ) ? 'success' : 'danger'; ?> alert-dismissable">
                                    <i class="fa fa-thumbs-o-<?php echo !empty( $success ) ? 'up' : 'down'; ?>"></i>
                                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                                    <h4><?php echo !empty( $success ) ? $success : $error; ?></h4>
                                </div>
                            <?php endif; ?>
                            
                            <ul class="error_container"></ul>
                            <div class="col-xs-12">
                                <div class="col-md-6">
                                    <div class="form-group float-clear">
                                        <label>Form Name<span class="required">*</span></label>
                                        <input type="text" class="form-control readonly" name="name" placeholder="" value=""/>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="col-xs-12">    
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label>File<span class="required">*</span></label>
                                        <input type="file" class="form-control" name="file" />
                                    </div>
                                </div> 
                                
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label>&nbsp;</label>
                                        <div id="file-preview"></div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="col-xs-12" style="margin-top: 20px;">    
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label class="leftcol">Status</label>
                                        <div>
                                            <label for="status" style="width: 32%;"><input type="radio" name="status" value="1"  checked /> &nbsp;&nbsp;Active</label> 
                                            <label for="status" style="width: 32%;"><input type="radio" name="status" value="0" /> &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="Save" class="btn btn-success btn-primary" />
                        </div>
                    </div>    
                </form>                                 
                            
            </div>
        </div>
                    
                
    </section><!-- /.content -->
</aside>
<script type="text/javascript" src="<?php echo base_url() . 'assets/js/form_download.js'?>"></script>

