<!-- MENU NAVBAR HEADER-->
<?php echo Modules::run('menuadmin/menubyactive',8);?>
<!-- /MENU NAVBAR HEADER -->

<section id="middle">


    <!-- page title -->
    <header id="page-header">
        <h1>Content</h1>
        <ol class="breadcrumb">
            <li><a href="#">Content</a></li>
            <li class="active"><?php echo @$item!=NULL?"Edit":"Add"?></li>
        </ol>
    </header>
    <!-- /page title -->


    <div id="content" class="padding-20">

        <div class="row">
            <div class="panel panel-default">
                <div class="panel-heading panel-heading-transparent">
                    <strong><?php echo @$item!=NULL?"Edit":"Add"?> New Warranty Code (<?php echo @$no_active_codes?>/<?php echo @$all_codes?>)</strong>

                </div>

                <div class="panel-body">

                    <form class="validate" id="contentform" action="<?php echo base_url()?>warranty/addcodes" method="post" enctype="multipart/form-data" data-success="Sent! Thank you!" data-toastr-position="top-right">

                        <fieldset>
                            <!-- required [php action request] -->
                            <input type="hidden" name="id" value="<?php echo @$item->id?>" />

                            <div class="row">
                                <div class="col-md-12 col-sm-12">

                                    <div class="row">
                                        <div class="form-group">
                                            <div class="col-md-12 col-sm-12">
                                                <label>Number of codes*</label>
                                                <input name="warranty_count" type="text" value="1" min="1" max="1000" class="form-control stepper">
                                            </div>
                                        </div>
                                    </div>


                                    <div class="row">
                                        <div class="form-group">
                                            <div class=" col-md-12 col-sm-12" align="right">
                                                <label class="switch switch switch-round">
                                                    <span> Active to public on the web?</span>
                                                    <input name="is_active" type="checkbox" checked="" >
                                                    <span class="switch-label" data-on="Yes" data-off="No"></span>
                                                </label>
                                            </div>
                                        </div>
                                    </div>

                                </div>
                            </div>

                        </fieldset>

                        <div class="row">
                            <div class="col-md-12">
                                <button id="savebtn" type="submit" form="contentform" value="Submit" class="progress-button btn btn-3d btn-teal btn-xlg btn-block margin-top-30" >
                                    SAVE
                                </button>
                            </div>
                        </div>

                    </form>

                </div>

            </div>
        </div>

    </div>
</section>