updated query and display logic for post determination fields
This commit is contained in:
@@ -42,12 +42,12 @@ const Pinswg_sipscase = (props) => {
|
||||
) < 0
|
||||
? detailsObj.pinswg_projectdescription
|
||||
: router.locale == "cy"
|
||||
? detailsObj.pinswg_projectdescription.split(
|
||||
";"
|
||||
)[1]
|
||||
: detailsObj.pinswg_projectdescription.split(
|
||||
";"
|
||||
)[0]
|
||||
? detailsObj.pinswg_projectdescription.split(
|
||||
";"
|
||||
)[1]
|
||||
: detailsObj.pinswg_projectdescription.split(
|
||||
";"
|
||||
)[0]
|
||||
: ""}
|
||||
</p>
|
||||
|
||||
@@ -436,7 +436,7 @@ const Pinswg_sipscase = (props) => {
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(casesObj, [
|
||||
"numberofchildincidents",
|
||||
"numberofchildincidents"
|
||||
])
|
||||
? casesObj.numberofchildincidents >
|
||||
0
|
||||
@@ -807,6 +807,85 @@ const Pinswg_sipscase = (props) => {
|
||||
</dl>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{hasValidKey(
|
||||
detailsObj,
|
||||
"pinswg_redetermination"
|
||||
) && (
|
||||
<div>
|
||||
<h4 className="govuk-heading-s ">
|
||||
{t(
|
||||
"case:summary-post-decision-sub-title"
|
||||
)}
|
||||
</h4>
|
||||
|
||||
<dl className="govuk-summary-list govuk-!-font-size-16 govuk-!-margin-bottom-9">
|
||||
{hasValidKey(
|
||||
detailsObj,
|
||||
"pinswg_redetermination"
|
||||
) && (
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
{t(
|
||||
"case:summary-post-decision-redetermination-label"
|
||||
)}
|
||||
</dt>{" "}
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
detailsObj,
|
||||
"pinswg_redetermination@OData.Community.Display.V1.FormattedValue"
|
||||
)
|
||||
? !_.isEmpty(
|
||||
detailsObj[
|
||||
"pinswg_redetermination@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
)
|
||||
? detailsObj[
|
||||
"pinswg_redetermination@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
: t(
|
||||
"case:summary-awaiting-information-label"
|
||||
)
|
||||
: t(
|
||||
"case:summary-awaiting-information-label"
|
||||
)}
|
||||
</dd>
|
||||
</div>
|
||||
)}
|
||||
{hasValidKey(
|
||||
detailsObj,
|
||||
"pinswg_redeterminationconsultationdeadline"
|
||||
) && (
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
{t(
|
||||
"case:summary-post-decision-redetermination-deadline-label"
|
||||
)}
|
||||
</dt>{" "}
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
detailsObj,
|
||||
"pinswg_redeterminationconsultationdeadline"
|
||||
)
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_redeterminationconsultationdeadline
|
||||
)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_redeterminationconsultationdeadline
|
||||
)
|
||||
: t(
|
||||
"case:summary-awaiting-information-label"
|
||||
)
|
||||
: t(
|
||||
"case:summary-awaiting-information-label"
|
||||
)}
|
||||
</dd>
|
||||
</div>
|
||||
)}
|
||||
</dl>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* <div>
|
||||
<h4 className="govuk-heading-s ">
|
||||
EIA Screening
|
||||
|
||||
Reference in New Issue
Block a user