ChrisBAshton/smartresolution

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

Summary

Maintainability
Test Coverage
<?php if (count($available_mediators) === 0) : ?>

    <p>
        You are waiting for the Mediation Centre to provide a list of available Mediators. You will be notified when this happens.
    </p>

<?php else: ?>

    <form method="post" action="<?php echo $dispute->getUrl(); ?>/mediation/choose-mediator">
        <div class="list">
            <?php foreach($available_mediators as $mediator) : ?>

                <div class="row list__item">

                    <div class="col-sm-12">
                        <input type="radio" name="mediator" value="<?php echo $mediator->getLoginId(); ?>" id="<?php echo $mediator->getLoginId(); ?>" />
                        <label for="<?php echo $mediator->getLoginId(); ?>">
                            <?php echo $mediator->getName(); ?>
                        </label>

                        -

                        <a href="<?php echo $mediator->getUrl(); ?>">See profile and CV</a>
                    </div>

                </div>

            <?php endforeach; ?>
        </div>

        <div class="col-sm-12 text-center">
            <button type="submit" class="btn btn-lg btn-primary">Propose Mediator</button>
        </div>
    </form>

<?php endif; ?>