{% extends "base.html" %}
{% block head_javascript %}
    {{ super() }}
{% endblock head_javascript %}
{% block backlink %}
{% if c.ATTENDEE_ACCOUNTS_ENABLED or c.HAS_REGISTRATION_ACCESS or c.HAS_GROUP_ADMIN_ACCESS %}
<div class="pull-right" style="padding-top:5px;">
    {% if c.HAS_REGISTRATION_ACCESS and attendee %}
    <a class="btn btn-default" href="../registration/form?id={{ attendee.id }}">Admin Form</a>
    {% elif c.HAS_GROUP_ADMIN_ACCESS and group %}
    <a class="btn btn-default" href="../group_admin/form?id={{ group.id }}">Admin Form</a>
    {% endif %}
    {% if c.ATTENDEE_ACCOUNTS_ENABLED and not account and c.PAGE_PATH != '/preregistration/homepage' %}
    <a class="btn btn-info" href="../preregistration/homepage">Homepage</a>
    {% endif %}
    {% if c.ATTENDEE_ACCOUNTS_ENABLED %}
    <a class="btn btn-danger" href="../preregistration/logout">Logout</a>
    {% endif %}
</div>
{% endif %}
{% endblock %}
{% extends "base.html" %}
{% block head_javascript %}
    {{ super() }}
{% endblock head_javascript %}
{% block backlink %}
{% if c.ATTENDEE_ACCOUNTS_ENABLED or c.HAS_REGISTRATION_ACCESS or c.HAS_GROUP_ADMIN_ACCESS %}
<div class="pull-right" style="padding-top:5px;">
    {% if c.HAS_REGISTRATION_ACCESS and attendee %}
    <a class="btn btn-default" href="../registration/form?id={{ attendee.id }}">Admin Form</a>
    {% elif c.HAS_GROUP_ADMIN_ACCESS and group %}
    <a class="btn btn-default" href="../group_admin/form?id={{ group.id }}">Admin Form</a>
    {% endif %}
    {% if c.ATTENDEE_ACCOUNTS_ENABLED and logged_in_account and not account and c.PAGE_PATH != '/preregistration/homepage' %}
    <a class="btn btn-info" href="../preregistration/homepage">Homepage</a>
    {% endif %}
    {% if c.ATTENDEE_ACCOUNTS_ENABLED and logged_in_account %}
    <a class="btn btn-danger" href="../preregistration/logout">Logout</a>
    {% endif %}
</div>
{% endif %}
{% endblock %}
Hide homepage and logout buttons if not logged in Admins were getting shown these buttons when viewing attendee data. That's confusing, so now we check to at least make sure they're logged into an attendee account.
Hide homepage and logout buttons if not logged in
Admins were getting shown these buttons when viewing attendee data. That's confusing, so now we check to at least make sure they're logged into an attendee account.
