ChrisBAshton/smartresolution

View on GitHub
webapp/core/view/login.html

Summary

Maintainability
Test Coverage
<h1>Login</h1>

<?php if (noSystemMessages()) : ?>
    <p class="bg-padded bg-info">
        Welcome to the login screen.
    </p>
<?php endif; ?>

<form name="login" method="post">
    <label for="email" class="sr-only">Email:</label> <input type="text" name="email" id="email" class="form-control" placeholder="Email" value="<?php $email = Base::instance()->get('user_email'); echo $email ? $email : ''; ?>" />

    <label for="password" class="sr-only">Password:</label> <input type="password" name="password" id="password" class="form-control" placeholder="Password" />

    <button class="btn btn-lg btn-primary btn-block" type="submit">Login</button>
</form>