Skip to content

Commit

Permalink
Use success colour for resolving tickets
Browse files Browse the repository at this point in the history
  • Loading branch information
RealOrangeOne committed Apr 2, 2024
1 parent a418860 commit 5e61e2a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions helpdesk/templates/tickets/ticket_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<div class="column">
{% for event in object.events.all %}
{% if event.new_status == "OP" %}
<article class="message is-info">
<article class="message is-info">
{% elif event.new_status == "RS" %}
<article class="message is-success">
{% else %}
Expand All @@ -62,7 +62,7 @@
<div class="message-header">
<p>
{% if event.new_status == "OP" %}
Opened at {{ event.created_at }} by {{ event.user }}
Opened at {{ event.created_at }} by {{ event.user }}
{% elif event.new_status == "RS" %}
Resolved at {{ event.created_at }} by {{ event.user }}
{% else %}
Expand Down Expand Up @@ -94,10 +94,10 @@
<div class="control">
<button class="button is-info" type="submit" formaction="{% url 'tickets:ticket_comment' object.id %}">Comment</button>
{% if object.status != "RS" %}
<button class="button is-warning" type="submit" formaction="{% url 'tickets:ticket_resolve' object.id %}">Comment and Resolve</button>
<button class="button is-success" type="submit" formaction="{% url 'tickets:ticket_resolve' object.id %}">Comment and Resolve</button>
{% endif %}
{% if object.status != "OP" %}
<button class="button is-success" type="submit" formaction="{% url 'tickets:ticket_reopen' object.id %}">Comment and Re-Open</button>
<button class="button is-warning" type="submit" formaction="{% url 'tickets:ticket_reopen' object.id %}">Comment and Re-Open</button>
{% endif %}
</div>
</form>
Expand All @@ -106,4 +106,4 @@
</div>
</div>
{% include "inc/modals/assign_ticket.html" %}
{% endblock %}
{% endblock %}

0 comments on commit 5e61e2a

Please sign in to comment.