Skip to content

Commit

Permalink
ICMSLST-2871 Add FIRs to pending access requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
MattHolmes123 committed Oct 11, 2024
1 parent e54cdbe commit 540f563
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
<table responsiveList class="setoutList">
<thead>
<tr>
<th scope="col">Reference
</th>
<th scope="col">Requested Date
</th>
<th scope="col">Request Type
</th>
<th scope="col">Organisation Name / Address
</th>
<th scope="col">Agent Name / Address
</th>
<th scope="col">Further Information Requests
</th>
<th scope="col">Reference</th>
<th scope="col">Requested Date</th>
<th scope="col">Request Type</th>
<th scope="col">Organisation Name / Address</th>
<th scope="col">Agent Name / Address</th>
<th scope="col">Further Information Requests</th>
</tr>
</thead>
{% for request in requests %}
Expand All @@ -21,7 +15,7 @@
<span class="text-widget ">{{request.reference or request.pk}}</span>
</td>
<td>
<span class="text-widget ">{{request.submit_datetime}}</span>
<span class="text-widget ">{{request.submit_datetime|datetime_format }}</span>
</td>
<td>
<span class="text-widget ">{{request.get_request_type_display()}}</span>
Expand All @@ -35,19 +29,11 @@
<p class="test-widget">{{request.agent_address}}</p>
</td>
<td>
<table class="setoutList nestedList">
<thead>
<tr>
<th colspan="2" class="listPrompt">Further Information Requests</th>
</tr>
<tr>
<th scope="col">Requested
</th>
<th scope="col">Respond
</th>
</tr>
</thead>
</table>
{% set firs = request.further_information_requests.filter(is_active=True, status="OPEN").order_by("requested_datetime") %}
{% for fir in firs %}
{% set url = icms_url("case:respond-fir", kwargs={"application_pk": request.pk, "case_type": "access", "fir_pk": fir.pk}) %}
<p>Requested {{ fir.requested_datetime|datetime_format }} <a class="respond-to-fir" href="{{ url }}">Respond</a></p>
{% endfor %}
</td>
</tr>
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
{% block page_title %}Request Exporter Access{% endblock %}
{% block context_header %}Request Exporter Access{% endblock %}

{% block css %}
{{ super() }}
<style>
a.respond-to-fir {
padding-left: 1em;
}
</style>
{% endblock %}

{% block main_content %}
<div class="no-sidebar" id="content">
<div id="content-ie8-float">
Expand Down

0 comments on commit 540f563

Please sign in to comment.