<div class="content-wrapper">
    <section class="content-header">
        <h1>Nueva Área</h1>
    </section>

    <section class="content">
        <div class="row">
            <div class="col-md-8">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <strong>Formulario de registro</strong>
                    </div>
                    <div class="panel-body">

                        <?php echo validation_errors('<div class="alert alert-danger">', '</div>'); ?>

                        <form method="post" action="<?php echo base_url('index.php/mantenimiento/areas/store'); ?>">

                            <div class="form-group">
                                <label>Código</label>
                                <input type="text"
                                       name="codigo"
                                       class="form-control"
                                       maxlength="20"
                                       value="<?php echo set_value('codigo'); ?>"
                                       required>
                            </div>

                            <div class="form-group">
                                <label>Nombre</label>
                                <input type="text"
                                       name="nombre"
                                       class="form-control"
                                       maxlength="100"
                                       value="<?php echo set_value('nombre'); ?>"
                                       required>
                            </div>

                            <div class="form-group">
                                <label>Descripción</label>
                                <textarea name="descripcion"
                                          class="form-control"
                                          rows="3"
                                          maxlength="255"><?php echo set_value('descripcion'); ?></textarea>
                            </div>

                            <button type="submit" class="btn btn-primary">
                                <i class="fa fa-save"></i> Guardar
                            </button>

                            <a href="<?php echo base_url('index.php/mantenimiento/areas'); ?>" class="btn btn-default">
                                Cancelar
                            </a>

                        </form>

                    </div>
                </div>
            </div>
        </div>
    </section>
</div>