<script>
    $(document).ready(function() {
        $('.summernote').summernote({
            height: 350,                 // set editor height

            minHeight: 350,             // set minimum height of editor
            maxHeight: 350,             // set maximum height of editor

            focus: true                 // set focus to editable area after initializing summernote
        });
    });
</script>
<div class="container">
    <div class="row">
        <div class="form-group col-md-12" style="margin-top:20px;">
            <ol class="breadcrumb">
                <li><a href="<?php echo base_url()?>administrator/home"><i class="glyphicon glyphicon-home"></i> Home</a></li>
                <li><a href="<?php echo base_url()?>administrator/client">Client</a></li>
                <li class="active">Client Form</li>
            </ol>
        </div>
        <div class="form-group col-md-12">
            <h3>Client Form</h3>
        </div>
        <div class="form-group col-md-12">
            <?php
            if(!empty($error)){
                echo "<div class='alert alert-danger'>".$error."</div>";
            }
            ?>
        </div>
        <form name="uploadform" method="POST" enctype="multipart/form-data" >
            <div class="form-group col-md-12">
                <div class="col-md-3">Description</div>
                <div class="col-md-9">
                    <input type="hidden" id="id" name="id" value="<?php echo $result->id; ?>"/>
                    <textarea id="description" name="description" class="summernote"><?php echo $result->description;?></textarea>
                </div>
            </div>
            <div class="form-group col-md-12" align="center">
                <input type="submit" id="submit" name="submit" class="btn btn-success" value="Submit">
                &nbsp;
                <input type="reset" id="reset" name="reset" class="btn btn-warning" value="Reset">
                &nbsp;
                <a href="<?php echo base_url().'administrator/client'?>" class="btn btn-default">Cancel</a>
            </div>
        </form>
    </div>
</div>
<script>