Skip to content

Commit

Permalink
fix(core): correct project task comment buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-nfc committed Sep 11, 2024
1 parent cfda7e5 commit c0ac09b
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions app/core/templates/core/ticket/comment.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,14 @@
{% endif %}
<div >
<div style="padding: 10px; padding-top: 10px">

{% if ticket_type == 'project_task'%}
<input type="button" value="Comment" onclick="window.location='{% url comment_reply_url ticket.project.id ticket_type ticket.id comment.id %}?comment_type=comment';">
<input type="button" value="Task" onclick="window.location='{% url comment_reply_url ticket.project.id ticket_type ticket.id comment.id %}?comment_type=task';">
{% else %}
<input type="button" value="Comment" onclick="window.location='{% url comment_reply_url ticket_type ticket.id comment.id %}?comment_type=comment';">
<input type="button" value="Task" onclick="window.location='{% url comment_reply_url ticket_type ticket.id comment.id %}?comment_type=task';">
{% endif %}
</div>
</div>

Expand All @@ -60,19 +66,24 @@
{% elif ticket_type == 'incident'%}
{% translate 'ITIM:_ticket_comment_incident_add' as comment_url %}
{% elif ticket_type == 'project_task'%}
{% translate 'Project Management:_ticket_comment_request_add' as comment_url %}
{% translate 'Project Management:_project_task_comment_add' as comment_url %}
{% elif ticket_type == 'problem'%}
{% translate 'ITIM:_ticket_comment_problem_add' as comment_url %}
{% elif ticket_type == 'request'%}
{% translate 'Assistance:_ticket_comment_request_add' as comment_url %}
{% endif %}

{% if ticket_type == 'project_task'%}
<input type="button" value="Comment" onclick="window.location='{% url comment_url ticket.project.id ticket_type ticket.id%}?comment_type=comment';">
<input type="button" value="Task" onclick="window.location='{% url comment_url ticket.project.id ticket_type ticket.id %}?comment_type=task';">
<input type="button" value="Notification" onclick="window.location='{% url comment_url ticket.project.id ticket_type ticket.id %}?comment_type=notification';">
<input type="button" value="Resolve" onclick="window.location='{% url comment_url ticket.project.id ticket_type ticket.id %}?comment_type=solution';">
{% else %}
<input type="button" value="Comment" onclick="window.location='{% url comment_url ticket_type ticket.id%}?comment_type=comment';">

<input type="button" value="Task" onclick="window.location='{% url comment_url ticket_type ticket.id %}?comment_type=task';">
<input type="button" value="Notification" onclick="window.location='{% url comment_url ticket_type ticket.id %}?comment_type=notification';">
<input type="button" value="Resolve" onclick="window.location='{% url comment_url ticket_type ticket.id %}?comment_type=solution';">

{% endif %}
</div>

</div>

0 comments on commit c0ac09b

Please sign in to comment.