intranet/templates/cspViewer.html.twig
Audrey Jensen 632199009d init
2023-06-28 15:38:14 +00:00

80 lines
4.0 KiB
Twig

<!DOCTYPE html>
<html>
{{ include('_header.html.twig') }}
<!-- Navigation -->
<div class="siteNavbar">
<div class="list-group list-group-horizontal-md">
<h3 class="px-5 navitem"><a class=" list-group-item list-group-item-action text-decoration-none h-100 text-white border-0" href="{{app.request.getSchemeAndHttpHost()}}/archive/tickets/{{portal}}/{{ pageNum > 1? pageNum - 1 : pageNum }}">Prev <span class="bi bi-caret-left-fill"/></a></h3>
<form method="GET" action="javascript:location.href='{{app.request.getSchemeAndHttpHost()}}/archive/tickets/{{portal}}/'+document.getElementById('jumpToPage').value;"><input type="number" style="max-width: 3em" id="jumpToPage" placeholder={{pageNum}}></input>
</form>
<h3 class="px-5 navitem"><a class=" list-group-item list-group-item-action text-decoration-none h-100 text-white border-0" href="{{app.request.getSchemeAndHttpHost()}}/archive/tickets/{{portal}}/{{ pageNum < pageCount ? pageNum + 1 : pageNum }}">Next <span class="bi bi-caret-right-fill"/></a></h3>
<p class="text-white">Page {{pageNum}}/{{pageCount}}</p>
<div class="col align-self-end px-4 mx-4">
<h3 class="text-white"> Keyword Search </h3>
{{ form(form)}}
</div>
</div>
</div>
<body>
<div class="container">
<table class="table table-dark table-striped table-hover">
<thead>
<tr>
<th scope="col">Ticket #</th>
<th scope="col">Summary</th>
<th scope="col">Created By</th>
<th scope="col">Assigned To</th>
<th scope="col">Priority</th>
<th scope="col">Category</th>
<th scope="col">Status</th>
<th scope="col">Created</th>
<th scope="col">Updated</th>
<th scope="col">Due Date</th>
<th scope="col">Response Time</th>
<th scope="col"> Close Time </th>
</tr>
</thead>
<tbody>
{% if tickets|length > 0 %}
{% for ticket in tickets %}
<tr onClick="location.href='{{ app.request.getSchemeAndHttpHost() }}/archive/tickets/{{portal}}/ticket/{{ ticket.getId()}}'"
style="cursor: pointer;">
<td> {{ticket.getId()}} </td>
<td>{{ticket.getSummary()}}</td>
<td>{{ticket.getCreatedBy().getFullName()}}</td>
<td>{% if ticket.getAssignedTo() != null %}
{{ticket.getAssignedTo().getFullName()}}
{% endif %}
</td>
<td>{{ticket.getPriority()}}</td>
<td>{{ticket.getCategory()}}</td>
<td>{{ticket.getStatus()}}</td>
<td>{% if ticket.getCreatedAt() != null %}
{{ticket.getCreatedAt().format('m-d-y')}}
{% endif %}
</td>
<td>{% if ticket.getUpdatedAt() != null %}
{{ticket.getUpdatedAt().format('m-d-y')}}
{% endif %}
</td>
<td>{% if ticket.getDueAt() != null %}
{{ticket.getDueAt().format('m-d-y')}}
{% endif %}
</td>
<td>{{ticket.getFirstResponseSecs()}}</td>
<td>{% if ticket.getClosedAt() != null %}
{{ticket.getClosedAt().format('m-d-y')}}
{% endif %}
</td>
</tr>
{% endfor %}
{% else %}
<h4> No Results Found </h4>
{% endif %}
</tbody>
</table>
</div>
</body>
</html>