<div class="content access-page">
    <div class="col-md-offset-8 col-md-4 error_message mt-20">
        <?php if ($this->session->flashdata('register_error')) { ?>
            <audio autoplay>
                <source src="<?php echo base_url(); ?>assets/assets/error.wav">
            </audio>

            <div class="alert alert-danger alert-with-icon alert-dismissible" data-notify="container">
                <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <i class="material-icons" data-notify="icon">notifications</i>						
                <span data-notify="message"><?php echo $this->session->flashdata('register_error'); ?></span>
            </div>
        <?php } ?>

        <?php if ($this->session->flashdata('success_msg')) { ?>
            <div class="alert alert-success alert-with-icon alert-dismissible" data-notify="container">
                <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <i class="material-icons" data-notify="icon">notifications</i>						
                <span data-notify="message"><?php echo $this->session->flashdata('success_msg'); ?></span>
            </div>
        <?php } ?>
    </div>
    
    <div class="container">
        <div class="row">
            <div class="col-md-6 col-sm-6 col-md-offset-3 col-sm-offset-3 mb-50">
                <img class="img-responsive logo" src="<?php echo base_url(); ?>assets/assets/images/website/<?php echo $basicinfo[0]->logo; ?>" alt="Logo">

                <form class="access-form" method="post" action="<?php echo base_url(); ?>access/register/addnewuser">

                    <h5 class="text-center">Create New Account</h5>

                    <div class="form-group">
                        <label>Username (min. 6 characters)</label>
                        <input type="text" name="username" class="form-control" placeholder="Enter username" required minlength="6">
                    </div>

                    <div class="form-group">
                        <label>Email address</label>
                        <input type="email" name="email" class="form-control" placeholder="Enter email" required>
                    </div>

                    <div class="form-group">
                        <label>Password (min. 6 characters)</label>
                        <input type="password" name="password" class="form-control" placeholder="Enter password" required minlength="6">
                    </div>
                    
                    <button type="submit" class="btn btn-primary">Register</button>
                    <a href="<?php echo base_url();?>access/login" class="btn btn-primary off-focus">Back to Login</a>
                    
                </form>
            </div>
        </div>
    </div>
</div>