<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Iniciar sesi&oacute;n</title>
    <link rel="stylesheet" href="<?=base_url()?>assets/bootstrap/css/bootstrap.min.css">
</head>
<body>
    <div class="container">
        <div class="row justify-content-center my-3">
            <div class="col-md-5 text-center">
                <h4>Ingresar al sistema </h4>
            </div>
        </div>
        <div class="row justify-content-center my-3">
            <div class="col-md-5 border border-secondary p-5">
                <form action="<?=base_url()?>admin/login" method="POST">
                    <div class="form-group">
                        <?php if($this->session->flashdata("error")) { ?>
                            <div class="alert alert-danger"><?=$this->session->flashdata('error');?></div>
                        <?php }?>
                    </div>
                    <div class="form-group">
                        <label>Usuario</label>
                        <input type="text" name="user" class="form-control" required>
                    </div>
                    <div class="form-group">
                        <label>Contrase&ntilde;a</label>
                        <input type="password" name="pass" class="form-control" required>
                    </div>
                    <div class="form-group">
                        <button type="submit" class="btn btn-primary col-12 my-2">
                            Ingresar
                        </button>
                    </div>
                </form>
            </div>            
        </div>
    </div>
</body>
</html>
<script src="<?=base_url()?>assets/js/jquery.min.js"></script>