<div class="content-wrapper">
    <section class="content-header">
        <h1>Nuevo Banco</h1>
    </section>

    <section class="content">
        <div class="row">
            <div class="col-md-8">

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

                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <strong>Registrar banco</strong>
                    </div>
                    <div class="panel-body">
                        <form method="post" action="<?php echo base_url('index.php/configuracion/banco/store'); ?>">

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

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

                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="estado" value="1" <?php echo set_checkbox('estado', '1', TRUE); ?>>
                                    Activo
                                </label>
                            </div>

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

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

                        </form>
                    </div>
                </div>

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