<div class="container">
    <div class="install-panel">

        <h1 id="logo"><span>InvoicePlane</span></h1>

        <form method="post" class="form-horizontal" action="<?php echo site_url($this->uri->uri_string()); ?>">

            <?php _csrf_field(); ?>

            <legend><?php _trans('setup_upgrade_tables'); ?></legend>

            <?php if ($errors) { ?>
                <p>
                    <?php _trans('setup_upgrade_message'); ?>
                </p>

                <?php foreach ($errors as $error) { ?>
                    <p>
                        <i class="fa fa-close text-danger fa-margin"></i>
                        <?php echo $error; ?>
                    </p>
                <?php } ?>

            <?php } else { ?>
                <p>
                    <i class="fa fa-check text-success fa-margin"></i>
                    <?php _trans('setup_upgrade_success'); ?>
                </p>
            <?php } ?>

            <?php if ($errors) { ?>
                <input type="submit" class="btn btn-danger" name="btn_try_again"
                       value="<?php _trans('try_again'); ?>">
            <?php } else { ?>
                <input type="submit" class="btn btn-success" name="btn_continue"
                       value="<?php _trans('continue'); ?>">
            <?php } ?>

        </form>

    </div>
</div>
<script>window.scrollTo(0, document.body.scrollHeight);</script>
