Document filtering
This commit is contained in:
@@ -497,7 +497,7 @@ const DocumentDetails = (props) => {
|
|||||||
</p>
|
</p>
|
||||||
<div>
|
<div>
|
||||||
<button onClick={clearCheckboxes}>
|
<button onClick={clearCheckboxes}>
|
||||||
Clear filter
|
{t("case:documents-clear-filter-label")}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="govuk-checkboxes govuk-checkboxes--small">
|
<div className="govuk-checkboxes govuk-checkboxes--small">
|
||||||
@@ -518,7 +518,10 @@ const DocumentDetails = (props) => {
|
|||||||
className="govuk-label-s govuk-checkboxes__label"
|
className="govuk-label-s govuk-checkboxes__label"
|
||||||
htmlFor={"all" + "__" + 0}
|
htmlFor={"all" + "__" + 0}
|
||||||
>
|
>
|
||||||
All - (
|
{router.locale == "cy"
|
||||||
|
? "Pawb"
|
||||||
|
: "All"}{" "}
|
||||||
|
- (
|
||||||
{documentTypes.reduce(
|
{documentTypes.reduce(
|
||||||
(accumulator, currentItem) => {
|
(accumulator, currentItem) => {
|
||||||
return (
|
return (
|
||||||
@@ -596,7 +599,7 @@ const DocumentDetails = (props) => {
|
|||||||
setCurrentPage(1);
|
setCurrentPage(1);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Filter documents
|
{t("case:documents-filter-button")}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{documentDetailsObj["@odata.count"] > 5 && (
|
{documentDetailsObj["@odata.count"] > 5 && (
|
||||||
|
|||||||
@@ -60,6 +60,8 @@
|
|||||||
"documents-count-label-1a": "Mae yna",
|
"documents-count-label-1a": "Mae yna",
|
||||||
"documents-count-label-2a": "dogfen",
|
"documents-count-label-2a": "dogfen",
|
||||||
"documents-show-label": "Dangos",
|
"documents-show-label": "Dangos",
|
||||||
|
"documents-clear-filter-label": "Clirio'r hidlydd",
|
||||||
|
"documents-filter-button": "Hidlo dogfen",
|
||||||
"summary-application-accepted-as-valid": "Derbyniwyd y Cais yn Un Dilys",
|
"summary-application-accepted-as-valid": "Derbyniwyd y Cais yn Un Dilys",
|
||||||
"summary-application-rejected-as-invalid": "Gwrthodwyd y Cais fel Un Annilys",
|
"summary-application-rejected-as-invalid": "Gwrthodwyd y Cais fel Un Annilys",
|
||||||
"summary-confirm-request-to-vary-application": "Cadarnhewch y Cais i Amrywio Cais",
|
"summary-confirm-request-to-vary-application": "Cadarnhewch y Cais i Amrywio Cais",
|
||||||
|
|||||||
@@ -60,6 +60,8 @@
|
|||||||
"documents-count-label-1a": "There is",
|
"documents-count-label-1a": "There is",
|
||||||
"documents-count-label-2a": "document",
|
"documents-count-label-2a": "document",
|
||||||
"documents-show-label": "Show",
|
"documents-show-label": "Show",
|
||||||
|
"documents-clear-filter-label": "Clear filter",
|
||||||
|
"documents-filter-button": "Filter document",
|
||||||
"summary-application-accepted-as-valid": "Application Accepted as Valid",
|
"summary-application-accepted-as-valid": "Application Accepted as Valid",
|
||||||
"summary-application-rejected-as-invalid": "Application rejected as Invalid",
|
"summary-application-rejected-as-invalid": "Application rejected as Invalid",
|
||||||
"summary-confirm-request-to-vary-application": "Confirm Request to Vary Application",
|
"summary-confirm-request-to-vary-application": "Confirm Request to Vary Application",
|
||||||
|
|||||||
Reference in New Issue
Block a user