Merged PR 2473: added in the dates on summary tabs
added in the dates on summary tabs Related work items: #24258, #24259, #24263, #24269
This commit is contained in:
@@ -102,7 +102,6 @@ const Pinswg_sipscase = (props) => {
|
||||
)
|
||||
})}
|
||||
/>
|
||||
|
||||
{projectTypes.length > 0 && (
|
||||
<SummaryRow
|
||||
label={t("case:project-type-label")}
|
||||
@@ -140,7 +139,6 @@ const Pinswg_sipscase = (props) => {
|
||||
}
|
||||
/>
|
||||
)}
|
||||
|
||||
{detailsObj.pinswg_webaddress != null && (
|
||||
<SummaryRow
|
||||
label={t(
|
||||
@@ -178,7 +176,6 @@ const Pinswg_sipscase = (props) => {
|
||||
}
|
||||
/>
|
||||
)}
|
||||
|
||||
<SummaryRow
|
||||
label={t("case:summary-lpa-label")}
|
||||
value={
|
||||
@@ -258,7 +255,28 @@ const Pinswg_sipscase = (props) => {
|
||||
)
|
||||
}
|
||||
/>
|
||||
|
||||
<SummaryRow
|
||||
label={t(
|
||||
"case:summary-pre-examination-needed-label"
|
||||
)}
|
||||
value={
|
||||
detailsObj.pinswg_preexaminationmeetingneeded !==
|
||||
null
|
||||
? resolveCrmDisplayValue({
|
||||
value: detailsObj[
|
||||
"pinswg_preexaminationmeetingneeded@OData.Community.Display.V1.FormattedValue"
|
||||
],
|
||||
locale,
|
||||
translations: transLookup,
|
||||
fallbackValue: t(
|
||||
"case:summary-to-be-confirmed-label"
|
||||
)
|
||||
})
|
||||
: t(
|
||||
"case:summary-to-be-confirmed-label"
|
||||
)
|
||||
}
|
||||
/>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
{t("case:summary-decision-label")}
|
||||
@@ -358,7 +376,32 @@ const Pinswg_sipscase = (props) => {
|
||||
</h3>
|
||||
<dl className="govuk-summary-list govuk-!-font-size-16 govuk-!-margin-bottom-9">
|
||||
<SummaryRow
|
||||
label={"Case deadline"}
|
||||
label={t(
|
||||
"case:summary-report-deadline-label"
|
||||
)}
|
||||
value={
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_reportdeadline"
|
||||
)
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_reportdeadline
|
||||
)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_reportdeadline
|
||||
)
|
||||
: t(
|
||||
"case:summary-awaiting-information-label"
|
||||
)
|
||||
: t(
|
||||
"case:summary-awaiting-information-label"
|
||||
)
|
||||
}
|
||||
/>
|
||||
<SummaryRow
|
||||
label={t(
|
||||
"case:summary-case-deadline-label"
|
||||
)}
|
||||
value={(() => {
|
||||
const fallback = t(
|
||||
"case:summary-awaiting-information-label"
|
||||
@@ -492,8 +535,35 @@ const Pinswg_sipscase = (props) => {
|
||||
"case:summary-submission-sub-title"
|
||||
)}
|
||||
</h4>
|
||||
|
||||
<dl className="govuk-summary-list govuk-!-font-size-16 govuk-!-margin-bottom-9">
|
||||
{hasValidKey(
|
||||
detailsObj,
|
||||
"pinswg_casesubmissiondate"
|
||||
) && (
|
||||
<SummaryRow
|
||||
label={t(
|
||||
"case:summary-case-submission-date-label"
|
||||
)}
|
||||
value={
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_casesubmissiondate"
|
||||
)
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_casesubmissiondate
|
||||
)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_casesubmissiondate
|
||||
)
|
||||
: t(
|
||||
"case:summary-awaiting-information-label"
|
||||
)
|
||||
: t(
|
||||
"case:summary-awaiting-information-label"
|
||||
)
|
||||
}
|
||||
/>
|
||||
)}
|
||||
{hasValidKey(
|
||||
detailsObj,
|
||||
"pinswg_validationdeadlineextension"
|
||||
@@ -578,6 +648,63 @@ const Pinswg_sipscase = (props) => {
|
||||
}
|
||||
/>
|
||||
)}
|
||||
|
||||
{hasValidKey(
|
||||
detailsObj,
|
||||
"pinswg_consultaionpublicitydeadline"
|
||||
) && (
|
||||
<SummaryRow
|
||||
label={t(
|
||||
"case:summary-consultation-publicity-deadline-label"
|
||||
)}
|
||||
value={
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_consultaionpublicitydeadline"
|
||||
)
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_consultaionpublicitydeadline
|
||||
)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_consultaionpublicitydeadline
|
||||
)
|
||||
: t(
|
||||
"case:summary-awaiting-information-label"
|
||||
)
|
||||
: t(
|
||||
"case:summary-awaiting-information-label"
|
||||
)
|
||||
}
|
||||
/>
|
||||
)}
|
||||
{hasValidKey(
|
||||
detailsObj,
|
||||
"pinswg_endofexaminationstartofreporting"
|
||||
) && (
|
||||
<SummaryRow
|
||||
label={t(
|
||||
"case:summary-endof-examination-label"
|
||||
)}
|
||||
value={
|
||||
hasOwn(
|
||||
detailsObj,
|
||||
"pinswg_endofexaminationstartofreporting"
|
||||
)
|
||||
? !_.isEmpty(
|
||||
detailsObj.pinswg_endofexaminationstartofreporting
|
||||
)
|
||||
? formatDates(
|
||||
detailsObj.pinswg_endofexaminationstartofreporting
|
||||
)
|
||||
: t(
|
||||
"case:summary-awaiting-information-label"
|
||||
)
|
||||
: t(
|
||||
"case:summary-awaiting-information-label"
|
||||
)
|
||||
}
|
||||
/>
|
||||
)}
|
||||
</dl>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user