Skip to content

Commit

Permalink
Format DTL files with djhtml
Browse files Browse the repository at this point in the history
  • Loading branch information
trickeydan committed Apr 5, 2024
1 parent 7dbb942 commit 1aff99e
Show file tree
Hide file tree
Showing 22 changed files with 443 additions and 443 deletions.
20 changes: 10 additions & 10 deletions helpdesk/templates/account/logout.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
{% block head_title %}{% trans "Sign Out" %}{% endblock %}

{% block content %}
<h1 class="title">{% trans "Sign Out" %}</h1>
<h1 class="title">{% trans "Sign Out" %}</h1>

<p>{% trans 'Are you sure you want to sign out?' %}</p>
<br/>
<form method="post" action="{% url 'account_logout' %}">
{% csrf_token %}
{% if redirect_field_value %}
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}"/>
{% endif %}
<button class="button is-danger" type="submit">{% trans 'Sign Out' %}</button>
</form>
<p>{% trans 'Are you sure you want to sign out?' %}</p>
<br/>
<form method="post" action="{% url 'account_logout' %}">
{% csrf_token %}
{% if redirect_field_value %}
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}"/>
{% endif %}
<button class="button is-danger" type="submit">{% trans 'Sign Out' %}</button>
</form>


{% endblock %}
18 changes: 9 additions & 9 deletions helpdesk/templates/accounts/onboarding.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
{% block title %}Welcome to {{SYSTEM_TITLE}}{% endblock %}

{% block content %}
<div class="block">
<p>Hi! 👋</p>
<p>Let's get started by filling out some details. You can always update your information later in your profile settings.</p>
</div>
<form class="block" method="post">
{% csrf_token %}
{{ form|crispy }}
<input class="button is-primary" type="submit" value="Let's go!">
</form>
<div class="block">
<p>Hi! 👋</p>
<p>Let's get started by filling out some details. You can always update your information later in your profile settings.</p>
</div>
<form class="block" method="post">
{% csrf_token %}
{{ form|crispy }}
<input class="button is-primary" type="submit" value="Let's go!">
</form>
{% endblock %}
10 changes: 5 additions & 5 deletions helpdesk/templates/accounts/user_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
{% block title %}Update Profile{% endblock %}

{% block content %}
<form class="block" method="post">
{% csrf_token %}
{{ form|crispy }}
<input class="button is-primary" type="submit" value="Update">
</form>
<form class="block" method="post">
{% csrf_token %}
{{ form|crispy }}
<input class="button is-primary" type="submit" value="Update">
</form>
{% endblock %}
94 changes: 47 additions & 47 deletions helpdesk/templates/display/helpdesk.html
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 %}
26 changes: 13 additions & 13 deletions helpdesk/templates/inc/modals/assign_ticket.html
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>
24 changes: 12 additions & 12 deletions helpdesk/templates/inc/modals/filter.html
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>
118 changes: 59 additions & 59 deletions helpdesk/templates/inc/nav/nav.html
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>
Loading

0 comments on commit 1aff99e

Please sign in to comment.