-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7dbb942
commit 1aff99e
Showing
22 changed files
with
443 additions
and
443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
{% extends "layouts/base.html" %} | ||
|
||
{% block body %} | ||
<main> | ||
<div class="container"> | ||
<section class="hero"> | ||
<div class="hero-body"> | ||
<div class="container"> | ||
<h1 class="title has-text-centered">{{SYSTEM_TITLE}} Status</h1> | ||
<div class="columns is-centered"> | ||
<div class="column"> | ||
<article class="panel is-warning"> | ||
<p class="panel-heading"> | ||
In Progress <span class="tag">{{in_progress.count}}</span> | ||
</p> | ||
{% for ticket in in_progress %} | ||
<a class="panel-block"> | ||
<div> | ||
<p><strong>#{{ticket.id}} {{ticket.title}}</strong> - {{ticket.team.tla}}</p> | ||
<p>Assigned to: {{ticket.assignee}} via {{ticket.queue}}</p> | ||
<p><em>Last Updated: {{ticket.last_updated}}</em></p> | ||
</div> | ||
</a> | ||
{% endfor %} | ||
</article> | ||
</div> | ||
<div class="column"> | ||
<article class="panel is-danger"> | ||
<p class="panel-heading"> | ||
Unassigned <span class="tag">{{unassigned.count}}</span> | ||
</p> | ||
{% for ticket in unassigned %} | ||
<a class="panel-block"> | ||
<div> | ||
<p><strong>#{{ticket.id}} {{ticket.title}}</strong> - {{ticket.team.tla}}</p> | ||
<p>Waiting in {{ticket.queue}}</p> | ||
<p><em>Last Updated: {{ticket.last_updated}}</em></p> | ||
</div> | ||
</a> | ||
{% endfor %} | ||
</article> | ||
<main> | ||
<div class="container"> | ||
<section class="hero"> | ||
<div class="hero-body"> | ||
<div class="container"> | ||
<h1 class="title has-text-centered">{{SYSTEM_TITLE}} Status</h1> | ||
<div class="columns is-centered"> | ||
<div class="column"> | ||
<article class="panel is-warning"> | ||
<p class="panel-heading"> | ||
In Progress <span class="tag">{{in_progress.count}}</span> | ||
</p> | ||
{% for ticket in in_progress %} | ||
<a class="panel-block"> | ||
<div> | ||
<p><strong>#{{ticket.id}} {{ticket.title}}</strong> - {{ticket.team.tla}}</p> | ||
<p>Assigned to: {{ticket.assignee}} via {{ticket.queue}}</p> | ||
<p><em>Last Updated: {{ticket.last_updated}}</em></p> | ||
</div> | ||
</a> | ||
{% endfor %} | ||
</article> | ||
</div> | ||
<div class="column"> | ||
<article class="panel is-danger"> | ||
<p class="panel-heading"> | ||
Unassigned <span class="tag">{{unassigned.count}}</span> | ||
</p> | ||
{% for ticket in unassigned %} | ||
<a class="panel-block"> | ||
<div> | ||
<p><strong>#{{ticket.id}} {{ticket.title}}</strong> - {{ticket.team.tla}}</p> | ||
<p>Waiting in {{ticket.queue}}</p> | ||
<p><em>Last Updated: {{ticket.last_updated}}</em></p> | ||
</div> | ||
</a> | ||
{% endfor %} | ||
</article> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
</main> | ||
<script> | ||
setTimeout(function(){ | ||
window.location.reload(); | ||
}, 5000); | ||
</script> | ||
</section> | ||
</div> | ||
</main> | ||
<script> | ||
setTimeout(function(){ | ||
window.location.reload(); | ||
}, 5000); | ||
</script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
{% load crispy_forms_tags %} | ||
<div id="modal-assign-ticket" class="modal"> | ||
<div class="modal-background"></div> | ||
|
||
<div class="modal-content"> | ||
<header class="modal-card-head"> | ||
<p class="modal-card-title">Assign Ticket</p> | ||
<button class="delete" aria-label="close"></button> | ||
<button class="delete" aria-label="close"></button> | ||
</header> | ||
<form class="block" method="post" action="{% url 'tickets:ticket_assign_to_user' object.id %}"> | ||
<section class="modal-card-body"> | ||
<p>Choose a user to assign the ticket to, or blank if unassigned.</p> | ||
{% csrf_token %} | ||
{{ assign_form|crispy }} | ||
</section> | ||
<footer class="modal-card-foot"> | ||
<input type="submit" class="button is-success" value="Assign Ticket" /> | ||
</footer> | ||
</form> | ||
<section class="modal-card-body"> | ||
<p>Choose a user to assign the ticket to, or blank if unassigned.</p> | ||
{% csrf_token %} | ||
{{ assign_form|crispy }} | ||
</section> | ||
<footer class="modal-card-foot"> | ||
<input type="submit" class="button is-success" value="Assign Ticket" /> | ||
</footer> | ||
</form> | ||
</div> | ||
|
||
<button class="modal-close is-large" aria-label="close"></button> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
{% load crispy_forms_tags %} | ||
<div id="modal-filter" class="modal"> | ||
<div class="modal-background"></div> | ||
|
||
<div class="modal-content"> | ||
<header class="modal-card-head"> | ||
<p class="modal-card-title">Filter</p> | ||
<button class="delete" aria-label="close"></button> | ||
<button class="delete" aria-label="close"></button> | ||
</header> | ||
<form class="block" method="get"> | ||
<section class="modal-card-body"> | ||
{{ filter.form|crispy }} | ||
</section> | ||
<footer class="modal-card-foot"> | ||
<input type="submit" class="button is-success" value="Filter Results" /> | ||
<button class="button">Cancel</button> | ||
</footer> | ||
</form> | ||
<section class="modal-card-body"> | ||
{{ filter.form|crispy }} | ||
</section> | ||
<footer class="modal-card-foot"> | ||
<input type="submit" class="button is-success" value="Filter Results" /> | ||
<button class="button">Cancel</button> | ||
</footer> | ||
</form> | ||
</div> | ||
|
||
<button class="modal-close is-large" aria-label="close"></button> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,68 @@ | ||
<nav class="navbar is-info" role="navigation" aria-label="main navigation"> | ||
<div class="navbar-brand"> | ||
<a class="navbar-item" href="{% url 'home' %}"> | ||
{{ SYSTEM_TITLE }} | ||
</a> | ||
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navMenu"> | ||
<span aria-hidden="true"></span> | ||
<span aria-hidden="true"></span> | ||
<span aria-hidden="true"></span> | ||
</a> | ||
</div> | ||
<div class="navbar-brand"> | ||
<a class="navbar-item" href="{% url 'home' %}"> | ||
{{ SYSTEM_TITLE }} | ||
</a> | ||
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navMenu"> | ||
<span aria-hidden="true"></span> | ||
<span aria-hidden="true"></span> | ||
<span aria-hidden="true"></span> | ||
</a> | ||
</div> | ||
|
||
<div class="navbar-menu" id="navMenu"> | ||
{% if user.is_authenticated and user.onboarded_at %} | ||
<div class="navbar-start"> | ||
<a class="navbar-item" href="{% url 'tickets:ticket_assigned_list' %}"> | ||
My Tickets | ||
</a> | ||
<a class="navbar-item" href="{% url 'tickets:queue_default' %}"> | ||
Queues | ||
</a> | ||
<a class="navbar-item" href="{% url 'teams:team_list' %}"> | ||
Teams | ||
</a> | ||
<a class="navbar-item" href="{% url 'tickets:ticket_all' %}"> | ||
All Tickets | ||
</a> | ||
</div> | ||
{% endif %} | ||
|
||
<div class="navbar-menu" id="navMenu"> | ||
<div class="navbar-end"> | ||
{% if user.is_authenticated and user.onboarded_at %} | ||
<div class="navbar-start"> | ||
<a class="navbar-item" href="{% url 'tickets:ticket_assigned_list' %}"> | ||
My Tickets | ||
</a> | ||
<a class="navbar-item" href="{% url 'tickets:queue_default' %}"> | ||
Queues | ||
</a> | ||
<a class="navbar-item" href="{% url 'teams:team_list' %}"> | ||
Teams | ||
</a> | ||
<a class="navbar-item" href="{% url 'tickets:ticket_all' %}"> | ||
All Tickets | ||
</a> | ||
</div> | ||
{% include "inc/parts/search_bar.html" %} | ||
<a class="navbar-item" href="{% url 'tickets:ticket_create' %}"> | ||
New Ticket | ||
</a> | ||
<a class="navbar-item" target="_blank" href="https://studentrobotics.org/runbook/competition/team-support/"> | ||
Docs | ||
</a> | ||
{% endif %} | ||
|
||
<div class="navbar-end"> | ||
{% if user.is_authenticated and user.onboarded_at %} | ||
{% include "inc/parts/search_bar.html" %} | ||
<a class="navbar-item" href="{% url 'tickets:ticket_create' %}"> | ||
New Ticket | ||
</a> | ||
<a class="navbar-item" target="_blank" href="https://studentrobotics.org/runbook/competition/team-support/"> | ||
Docs | ||
</a> | ||
{% endif %} | ||
{% if user.is_authenticated %} | ||
<div class="navbar-item has-dropdown is-hoverable"> | ||
<a class="navbar-link"> | ||
{{ user.get_full_name|default:"Welcome!" }} | ||
</a> | ||
|
||
{% if user.is_authenticated %} | ||
<div class="navbar-item has-dropdown is-hoverable"> | ||
<a class="navbar-link"> | ||
{{ user.get_full_name|default:"Welcome!" }} | ||
<div class="navbar-dropdown is-right"> | ||
{% if user.is_staff %} | ||
<a class="navbar-item" href="{% url 'admin:index' %}"> | ||
Admin | ||
</a> | ||
|
||
<div class="navbar-dropdown is-right"> | ||
{% if user.is_staff %} | ||
<a class="navbar-item" href="{% url 'admin:index' %}"> | ||
Admin | ||
</a> | ||
{% endif %} | ||
{% if user.onboarded_at %} | ||
<a class="navbar-item" href="{% url 'accounts:profile_update' %}">My Profile</a> | ||
<a class="navbar-item" href="{% url 'account_set_password' %}">Change Password</a> | ||
{% endif %} | ||
<hr class="navbar-divider"> | ||
<a class="navbar-item" href="{% url 'account_logout' %}"> | ||
Log out | ||
</a> | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% endif %} | ||
{% if user.onboarded_at %} | ||
<a class="navbar-item" href="{% url 'accounts:profile_update' %}">My Profile</a> | ||
<a class="navbar-item" href="{% url 'account_set_password' %}">Change Password</a> | ||
{% endif %} | ||
<hr class="navbar-divider"> | ||
<a class="navbar-item" href="{% url 'account_logout' %}"> | ||
Log out | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</nav> | ||
</div> | ||
</div> | ||
</nav> |
Oops, something went wrong.