ineshbose/boyd_bot_messenger

View on GitHub
boyd_bot/templates/default_reg.html

Summary

Maintainability
Test Coverage
{% extends 'base.html' %}

{% block body_block %}
    <div class="signup-section">
        <h2 class="text-white mb-5"><i class="fas fa-sign-in-alt"></i> Login</h2>
    {% if success %}
        <div class="alert-success">
            {{ config.TEMPLATES.MESSAGES.SUCCESS_MSG }}
            <br><br>
            <small>{{ config.TEMPLATES.MESSAGES.HELP_TEXT }}</small>
        </div>
    {% else %}
        {% if message %}
        <div class="alert-danger">{{message}}</div>
        {% endif %}
        <form action="{{ url_for('.new_user_registration', reg_id=form.reg_id.data) }}" method="post" validate>
            {{ form.hidden_tag() }}
            {{ form.uni_id(placeholder=form.uni_id.label.text, class_="form-control") }}
            {{ form.uni_pw(placeholder=form.uni_pw.label.text, class_="form-control") }} <br>
            {{ form.submit(value=form.submit.label.text, class_="form-control") }} <br>
            {% if allow_remember %}
                {% if config.FEATURES.ONE_TIME_USE %}
                    <br>
                    {{ form.remember }} {{ form.remember.label }}
                    <a href="#" data-toggle="tooltip" title="If unchecked, your credentials will not be stored."><sup>?</sup></a>
                {% endif %}
                {% if config.FEATURES.SCHEDULER %}
                    <br><br>
                        {{ form.subscribe.label}}
                        <a href="#" data-toggle="tooltip" title="The bot messages you about your schedule prior to classes."><sup>?</sup></a>
                        {{ form.subscribe }}
                    <br>
                {% endif %}
                <script src="/static/js/form.js"></script>
                <script src="/static/js/tooltip.js"></script>
            {% endif %}
        </form>
    {% endif %}
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
{% endblock %}