117 lines
5.8 KiB
HTML
117 lines
5.8 KiB
HTML
<nav class="navbar fixed-top navbar-expand-md navbar-dark bg-dark">
|
|
<div class="container">
|
|
<a href="{{ url_for('admin._home') }}" class="navbar-brand mb-0 h1">RefTest | Admin</a>
|
|
<button
|
|
class="navbar-toggler"
|
|
type="button"
|
|
data-bs-toggle="collapse"
|
|
data-bs-target="#navbar"
|
|
aria-controls="navbar"
|
|
aria-expanded="false"
|
|
aria-label="Toggle Navigation"
|
|
>
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse justify-content-end" id="navbar">
|
|
<ul class="navbar-nav">
|
|
{% if not current_user.is_authenticated %}
|
|
<li class="nav-item" id="nav-login">
|
|
<a href="{{ url_for('admin._login') }}" id="link-login" class="nav-link">Log In</a>
|
|
</li>
|
|
{% endif %}
|
|
{% if current_user.is_authenticated %}
|
|
<li class="nav-item" id="nav-results">
|
|
<a href="{{ url_for('admin._view_entries') }}" id="link-results" class="nav-link">View Results</a>
|
|
</li>
|
|
<li class="nav-item dropdown" id="nav-tests">
|
|
<a
|
|
class="nav-link dropdown-toggle"
|
|
id="dropdown-tests"
|
|
role="button"
|
|
href="{{ url_for('admin._tests') }}"
|
|
data-bs-toggle="dropdown"
|
|
aria-expanded="false"
|
|
>
|
|
Exams
|
|
</a>
|
|
<ul
|
|
class="dropdown-menu"
|
|
aria-labelledby="dropdown-settings"
|
|
>
|
|
<li>
|
|
<a href="{{ url_for('admin._tests', filter='active') }}" id="link-active" class="dropdown-item">Active</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ url_for('admin._tests', filter='scheduled') }}" id="link-scheduled" class="dropdown-item">Scheduled</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ url_for('admin._tests', filter='expired') }}" id="link-expired" class="dropdown-item">Expired</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ url_for('admin._tests', filter='all') }}" id="link-all" class="dropdown-item">All</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ url_for('admin._tests', filter='create') }}" id="link-create" class="dropdown-item">Create</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="nav-item dropdown" id="nav-settings">
|
|
<a
|
|
class="nav-link dropdown-toggle"
|
|
id="dropdown-account"
|
|
role="button"
|
|
href="{{ url_for('admin._settings') }}"
|
|
data-bs-toggle="dropdown"
|
|
aria-expanded="false"
|
|
>
|
|
Settings
|
|
</a>
|
|
<ul
|
|
class="dropdown-menu"
|
|
aria-labelledby="dropdown-settings"
|
|
>
|
|
<li>
|
|
<a href="{{ url_for('admin._settings') }}" id="link-settings" class="dropdown-item">View Settings</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ url_for('admin._users') }}" id="link-users" class="dropdown-item">Users</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ url_for('admin._questions') }}" id="link-questions" class="dropdown-item">Manage Questions</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ url_for('view._view') }}" id="link-editor" class="dropdown-item">View Questions</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ url_for('editor._editor') }}" id="link-editor" class="dropdown-item">Edit Questions</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="nav-item dropdown" id="nav-account">
|
|
<a
|
|
class="nav-link dropdown-toggle"
|
|
id="dropdown-account"
|
|
role="button"
|
|
href="{{ url_for('admin._update_user', id=current_user.id) }}"
|
|
data-bs-toggle="dropdown"
|
|
aria-expanded="false"
|
|
>
|
|
Account
|
|
</a>
|
|
<ul
|
|
class="dropdown-menu"
|
|
aria-labelledby="dropdown-account"
|
|
>
|
|
<li>
|
|
<a href="{{ url_for('admin._update_user', id=current_user.id) }}" id="link-account" class="dropdown-item">Account Settings</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ url_for('admin._logout') }}" id="link-logout" class="dropdown-item">Log Out</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav> |