ChrisBAshton/smartresolution

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

Summary

Maintainability
Test Coverage
<div class="col-lg-12">
    <h1>Register a new <?php echo $account instanceof LawFirm ? 'Agent' : 'Mediator';  ?> account</h1>

    <?php if (noSystemMessages()) : ?>
        <p class="bg-padded bg-info">
            Here you can create a new individual account.
        </p>
    <?php endif; ?>
</div>

<form name="register" method="post">

    <div class="col-lg-6">
        <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" />
    </div>

    <div class="col-lg-6">
        <label for="surname" class="sr-only">Surname:</label>
        <input type="text" name="surname" id="surname" class="form-control" placeholder="Surname" />

        <label for="surname" class="sr-only">Forename:</label>
        <input type="text" name="forename" id="forename" class="form-control" placeholder="First name" />
    </div>

    <div class="col-lg-12">
        <button class="btn btn-lg btn-primary btn-block" type="submit">Register</button>
    </div>
</form>