Repository navigation
feat(iac-daily-list): add IAC Daily List and Additional Cases list types (#791) #879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
823b729
feat(iac-daily-list): add IAC daily cause list types (#791)
junaidiqbalmoj 2748c3b
Merge branch 'master' into feat/791-iac-daily-list
junaidiqbalmoj e8d59d4
fix(iac-daily-list): match pip-frontend output and add email summary
junaidiqbalmoj 4ab3abd
fix(iac-daily-list): correct page heading and add find-court contact …
junaidiqbalmoj e9a3673
fix(iac-daily-list): merge venue line into single h1 heading
junaidiqbalmoj a87065d
fix(iac-daily-list): remove visible search hint text
junaidiqbalmoj a1f88af
feat(iac-daily-list): validate additional-cases against the IAC schema
junaidiqbalmoj 05945c2
fix(iac-daily-list): additional-cases heading uses "Daily List - Addi…
junaidiqbalmoj 0b5b90a
refactor(iac-daily-list): share one template across both IAC list types
junaidiqbalmoj 0ca7744
Merge remote-tracking branch 'origin/master' into feat/791-iac-daily-…
alao-daniel db673ea
fix bug
alao-daniel a05cf9f
Merge remote-tracking branch 'origin/master' into feat/791-iac-daily-…
alao-daniel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 117 additions & 0 deletions
117
apps/web/src/pages/(list-types)/iac-daily-list/iac-daily-list.njk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,117 @@ | ||
| {% extends "layouts/base-template.njk" %} | ||
| {% from "govuk/components/details/macro.njk" import govukDetails %} | ||
|
|
||
| {% block head %} | ||
| {{ super() }} | ||
| <style> | ||
| .govuk-accordion__section-content { | ||
| overflow: auto hidden; | ||
| } | ||
| .govuk-table { | ||
| overflow: auto hidden; | ||
| } | ||
| .no-wrap { | ||
| white-space: nowrap; | ||
| } | ||
| .overflow-table { | ||
| overflow: auto hidden; | ||
| display: block; | ||
| } | ||
| </style> | ||
| {% endblock %} | ||
|
|
||
| {% block page_content %} | ||
| <div class="govuk-grid-row"> | ||
| <div class="govuk-grid-column-full"> | ||
|
|
||
| <h1 id="top" class="govuk-heading-l">{{ common.heading }}<br>{{ header.venueName }} {% if header.isAdditionalCases %}{{ common.dailyListAdditionalCases }}{% else %}{{ common.dailyList }}{% endif %}</h1> | ||
|
|
||
| <p class="govuk-body"> | ||
| <a href="{{ common.factLinkUrl }}" class="govuk-link">{{ common.factLinkText }}</a> {{ common.factAdditionalText }} | ||
| </p> | ||
|
|
||
| <p class="govuk-body govuk-!-font-weight-bold govuk-!-margin-bottom-1">{{ common.listDate }} {{ header.contentDate }}</p> | ||
| <p class="govuk-body">{{ common.listUpdated }} {{ header.lastUpdatedDate }} {{ common.at }} {{ header.lastUpdatedTime }}</p> | ||
|
|
||
| {{ govukDetails({ | ||
| summaryText: common.importantInformationHeading, | ||
| open: true, | ||
| html: "<p class='govuk-body'>" + common.importantInformationP1 + "</p>" + | ||
| "<p class='govuk-body'>" + common.importantInformationP2 + "</p>" + | ||
| "<p class='govuk-body'>" + common.importantInformationP3 + "</p>" | ||
| }) }} | ||
|
|
||
| <div class="govuk-form-group govuk-!-margin-top-6"> | ||
| <h2 class="govuk-heading-m">{{ common.searchCasesTitle }}</h2> | ||
| <label class="govuk-label govuk-visually-hidden" for="case-search-input">{{ common.searchCasesTitle }}</label> | ||
| <input class="govuk-input govuk-!-width-one-half" id="case-search-input" name="search" type="text"> | ||
| </div> | ||
|
|
||
| <div id="court-lists-container"> | ||
| {% for courtList in hearings.courtLists %} | ||
| <h2 class="govuk-heading-l">{{ courtList.courtListName }}</h2> | ||
|
|
||
| <div class="govuk-accordion" data-module="govuk-accordion" id="accordion-{{ loop.index }}"> | ||
| {% for session in courtList.session %} | ||
| <div class="govuk-accordion__section govuk-accordion__section--expanded"> | ||
| <div class="govuk-accordion__section-header"> | ||
| <h2 class="govuk-accordion__section-heading"> | ||
| <span class="govuk-accordion__section-button"> | ||
| {% if session.isBailList %} | ||
| {{ session.courtRoomName }}{% if session.formattedJudiciary | length %}, {{ common.beforeJudge }} {{ session.formattedJudiciary }}{% endif %} | ||
| {% else %} | ||
| {{ common.hearingRoom }}: {{ session.courtRoomName }} | ||
| {% endif %} | ||
| </span> | ||
| </h2> | ||
| </div> | ||
| <div class="govuk-accordion__section-content"> | ||
| {% for sitting in session.sittings %} | ||
| <table class="govuk-table overflow-table" data-module="moj-sortable-table"> | ||
| <thead class="govuk-table__head"> | ||
| <tr class="govuk-table__row"> | ||
| <th scope="col" class="govuk-table__header" aria-sort="none">{{ common.startTime }}</th> | ||
| <th scope="col" class="govuk-table__header" aria-sort="none">{{ common.caseRef }}</th> | ||
| <th scope="col" class="govuk-table__header" aria-sort="none">{{ common.appellant }}</th> | ||
| <th scope="col" class="govuk-table__header" aria-sort="none">{{ common.respondent }}</th> | ||
| <th scope="col" class="govuk-table__header" aria-sort="none">{{ common.interpreterLanguage }}</th> | ||
| <th scope="col" class="govuk-table__header" aria-sort="none">{{ common.hearingChannel }}</th> | ||
| <th scope="col" class="govuk-table__header" aria-sort="none">{{ common.hearingType }}</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody class="govuk-table__body"> | ||
| {% for hearing in sitting.hearing %} | ||
| {% for case in hearing.case %} | ||
| <tr class="govuk-table__row"> | ||
| <td class="govuk-table__cell no-wrap">{{ sitting.startTime }}</td> | ||
| <td class="govuk-table__cell no-wrap">{{ case.caseRef }}</td> | ||
| <td class="govuk-table__cell"> | ||
| {{ case.appellant }}<br> | ||
| {{ common.rep }}: {% if case.appellantRepresentative | length %}{{ case.appellantRepresentative }}{% else %}{{ common.noRep }}{% endif %} | ||
| </td> | ||
| <td class="govuk-table__cell">{{ case.prosecutingAuthority }}</td> | ||
| <td class="govuk-table__cell">{{ case.language }}</td> | ||
| <td class="govuk-table__cell">{{ sitting.caseHearingChannel }}</td> | ||
| <td class="govuk-table__cell">{{ hearing.hearingType }}</td> | ||
| </tr> | ||
| {% endfor %} | ||
| {% endfor %} | ||
| </tbody> | ||
| </table> | ||
| {% endfor %} | ||
| </div> | ||
| </div> | ||
| {% endfor %} | ||
| </div> | ||
| {% endfor %} | ||
| </div> | ||
|
|
||
| <p class="govuk-body-s govuk-!-margin-top-6">{{ common.dataSource }}: {{ dataSource }}</p> | ||
|
|
||
| <div class="back-to-top"> | ||
| <a href="#top" class="govuk-link">{{ common.backToTop }}</a> | ||
| </div> | ||
|
|
||
| </div> | ||
| </div> | ||
| {% endblock %} | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.