Consultation reps to have text area for sips
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
|||||||
RenderCondtionalRadioList,
|
RenderCondtionalRadioList,
|
||||||
RenderPickList,
|
RenderPickList,
|
||||||
RenderRichMultiline,
|
RenderRichMultiline,
|
||||||
|
shouldDisableButton,
|
||||||
} from "./representationElements";
|
} from "./representationElements";
|
||||||
|
|
||||||
import { useDropzone } from "react-dropzone";
|
import { useDropzone } from "react-dropzone";
|
||||||
@@ -145,14 +146,75 @@ const ConsultationAgent = (props) => {
|
|||||||
<div className="govuk-grid-row">
|
<div className="govuk-grid-row">
|
||||||
<div className="govuk-form-group">
|
<div className="govuk-form-group">
|
||||||
<p className="govuk-body">
|
<p className="govuk-body">
|
||||||
{t(
|
{formObj.representationForm.values
|
||||||
"myrepresentations:consultation-comment-label"
|
.representationType ==
|
||||||
)}
|
"Consultation Response"
|
||||||
|
? t(
|
||||||
|
"myrepresentations:enter-comment-label"
|
||||||
|
)
|
||||||
|
: t(
|
||||||
|
"myrepresentations:consultation-comment-label"
|
||||||
|
)}
|
||||||
</p>
|
</p>
|
||||||
<fieldset
|
<fieldset
|
||||||
className="govuk-fieldset"
|
className="govuk-fieldset"
|
||||||
aria-describedby="commentBox-hint"
|
aria-describedby="commentBox-hint"
|
||||||
>
|
>
|
||||||
|
{formObj.representationForm.values
|
||||||
|
.representationType ==
|
||||||
|
"Consultation Response" && (
|
||||||
|
<div className="govuk-form-group">
|
||||||
|
<Field
|
||||||
|
name="representationComments"
|
||||||
|
id="representationComments"
|
||||||
|
component={RenderRichMultiline}
|
||||||
|
type="text"
|
||||||
|
rows="5"
|
||||||
|
className="govuk-textarea govuk-input--width-30"
|
||||||
|
aria-describedby={
|
||||||
|
props.name + "-hint"
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
{formObj.representationForm.values
|
||||||
|
.appealType == "846040004" ? (
|
||||||
|
<p className="govuk-hint govuk-!-font-size-14 govuk-!-margin-top-5">
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-label"
|
||||||
|
)}{" "}
|
||||||
|
<a
|
||||||
|
href={t(
|
||||||
|
"myrepresentations:publish-policy-link"
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-link-label"
|
||||||
|
)}
|
||||||
|
</a>{" "}
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-label-two"
|
||||||
|
)}
|
||||||
|
</p>
|
||||||
|
) : (
|
||||||
|
<p className="govuk-hint govuk-!-font-size-14 govuk-!-margin-top-5">
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-label"
|
||||||
|
)}{" "}
|
||||||
|
<a
|
||||||
|
href={t(
|
||||||
|
"myrepresentations:publish-policy-link"
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-link-label"
|
||||||
|
)}
|
||||||
|
</a>{" "}
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-label-two"
|
||||||
|
)}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||||
<FileUploadField
|
<FileUploadField
|
||||||
name={"representationDocuments"}
|
name={"representationDocuments"}
|
||||||
@@ -211,11 +273,10 @@ const ConsultationAgent = (props) => {
|
|||||||
type="submit"
|
type="submit"
|
||||||
className="govuk-button"
|
className="govuk-button"
|
||||||
data-module="govuk-button"
|
data-module="govuk-button"
|
||||||
disabled={
|
disabled={shouldDisableButton({
|
||||||
props.currentView.fileList.length < 1
|
props,
|
||||||
? true
|
formObj,
|
||||||
: false
|
})}
|
||||||
}
|
|
||||||
>
|
>
|
||||||
{t("common:continue-button")}
|
{t("common:continue-button")}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import {
|
|||||||
FileUploadField,
|
FileUploadField,
|
||||||
RenderPickList,
|
RenderPickList,
|
||||||
RenderRichMultiline,
|
RenderRichMultiline,
|
||||||
|
shouldDisableButton,
|
||||||
} from "./representationElements";
|
} from "./representationElements";
|
||||||
|
|
||||||
import { useDropzone } from "react-dropzone";
|
import { useDropzone } from "react-dropzone";
|
||||||
@@ -119,14 +120,74 @@ const ConsultationAppellant = (props) => {
|
|||||||
<div className="govuk-grid-row">
|
<div className="govuk-grid-row">
|
||||||
<div className="govuk-form-group">
|
<div className="govuk-form-group">
|
||||||
<p className="govuk-body">
|
<p className="govuk-body">
|
||||||
{t(
|
{formObj.representationForm.values
|
||||||
"myrepresentations:consultation-comment-label"
|
.representationType ==
|
||||||
)}
|
"Consultation Response"
|
||||||
|
? t("myrepresentations:enter-comment-label")
|
||||||
|
: t(
|
||||||
|
"myrepresentations:consultation-comment-label"
|
||||||
|
)}
|
||||||
</p>
|
</p>
|
||||||
<fieldset
|
<fieldset
|
||||||
className="govuk-fieldset"
|
className="govuk-fieldset"
|
||||||
aria-describedby="commentBox-hint"
|
aria-describedby="commentBox-hint"
|
||||||
>
|
>
|
||||||
|
{formObj.representationForm.values
|
||||||
|
.representationType ==
|
||||||
|
"Consultation Response" && (
|
||||||
|
<div className="govuk-form-group">
|
||||||
|
<Field
|
||||||
|
name="representationComments"
|
||||||
|
id="representationComments"
|
||||||
|
component={RenderRichMultiline}
|
||||||
|
type="text"
|
||||||
|
rows="5"
|
||||||
|
className="govuk-textarea govuk-input--width-30"
|
||||||
|
aria-describedby={
|
||||||
|
props.name + "-hint"
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
{formObj.representationForm.values
|
||||||
|
.appealType == "846040004" ? (
|
||||||
|
<p className="govuk-hint govuk-!-font-size-14 govuk-!-margin-top-5">
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-label"
|
||||||
|
)}{" "}
|
||||||
|
<a
|
||||||
|
href={t(
|
||||||
|
"myrepresentations:publish-policy-link"
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-link-label"
|
||||||
|
)}
|
||||||
|
</a>{" "}
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-label-two"
|
||||||
|
)}
|
||||||
|
</p>
|
||||||
|
) : (
|
||||||
|
<p className="govuk-hint govuk-!-font-size-14 govuk-!-margin-top-5">
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-label"
|
||||||
|
)}{" "}
|
||||||
|
<a
|
||||||
|
href={t(
|
||||||
|
"myrepresentations:publish-policy-link"
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-link-label"
|
||||||
|
)}
|
||||||
|
</a>{" "}
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-label-two"
|
||||||
|
)}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||||
<FileUploadField
|
<FileUploadField
|
||||||
name={"representationDocuments"}
|
name={"representationDocuments"}
|
||||||
@@ -180,11 +241,10 @@ const ConsultationAppellant = (props) => {
|
|||||||
type="submit"
|
type="submit"
|
||||||
className="govuk-button"
|
className="govuk-button"
|
||||||
data-module="govuk-button"
|
data-module="govuk-button"
|
||||||
disabled={
|
disabled={shouldDisableButton({
|
||||||
props.currentView.fileList.length < 1
|
props,
|
||||||
? true
|
formObj,
|
||||||
: false
|
})}
|
||||||
}
|
|
||||||
>
|
>
|
||||||
{t("common:continue-button")}
|
{t("common:continue-button")}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import {
|
|||||||
RenderCondtionalRadioList,
|
RenderCondtionalRadioList,
|
||||||
RenderPickList,
|
RenderPickList,
|
||||||
RenderRichMultiline,
|
RenderRichMultiline,
|
||||||
|
shouldDisableButton,
|
||||||
} from "./representationElements";
|
} from "./representationElements";
|
||||||
|
|
||||||
import { useDropzone } from "react-dropzone";
|
import { useDropzone } from "react-dropzone";
|
||||||
@@ -153,14 +154,76 @@ const ConsultationInterestedPartyPerson = (props) => {
|
|||||||
<div className="govuk-grid-row">
|
<div className="govuk-grid-row">
|
||||||
<div className="govuk-form-group">
|
<div className="govuk-form-group">
|
||||||
<p className="govuk-body">
|
<p className="govuk-body">
|
||||||
{t(
|
{formObj.representationForm.values
|
||||||
"myrepresentations:consultation-comment-label"
|
.representationType ==
|
||||||
)}
|
"Consultation Response"
|
||||||
|
? t(
|
||||||
|
"myrepresentations:enter-comment-label"
|
||||||
|
)
|
||||||
|
: t(
|
||||||
|
"myrepresentations:consultation-comment-label"
|
||||||
|
)}
|
||||||
</p>
|
</p>
|
||||||
<fieldset
|
<fieldset
|
||||||
className="govuk-fieldset"
|
className="govuk-fieldset"
|
||||||
aria-describedby="commentBox-hint"
|
aria-describedby="commentBox-hint"
|
||||||
>
|
>
|
||||||
|
{" "}
|
||||||
|
{formObj.representationForm.values
|
||||||
|
.representationType ==
|
||||||
|
"Consultation Response" && (
|
||||||
|
<div className="govuk-form-group">
|
||||||
|
<Field
|
||||||
|
name="representationComments"
|
||||||
|
id="representationComments"
|
||||||
|
component={RenderRichMultiline}
|
||||||
|
type="text"
|
||||||
|
rows="5"
|
||||||
|
className="govuk-textarea govuk-input--width-30"
|
||||||
|
aria-describedby={
|
||||||
|
props.name + "-hint"
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
{formObj.representationForm.values
|
||||||
|
.appealType == "846040004" ? (
|
||||||
|
<p className="govuk-hint govuk-!-font-size-14 govuk-!-margin-top-5">
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-label"
|
||||||
|
)}{" "}
|
||||||
|
<a
|
||||||
|
href={t(
|
||||||
|
"myrepresentations:publish-policy-link"
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-link-label"
|
||||||
|
)}
|
||||||
|
</a>{" "}
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-label-two"
|
||||||
|
)}
|
||||||
|
</p>
|
||||||
|
) : (
|
||||||
|
<p className="govuk-hint govuk-!-font-size-14 govuk-!-margin-top-5">
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-label"
|
||||||
|
)}{" "}
|
||||||
|
<a
|
||||||
|
href={t(
|
||||||
|
"myrepresentations:publish-policy-link"
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-link-label"
|
||||||
|
)}
|
||||||
|
</a>{" "}
|
||||||
|
{t(
|
||||||
|
"myrepresentations:publish-policy-label-two"
|
||||||
|
)}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||||
<FileUploadField
|
<FileUploadField
|
||||||
name={"representationDocuments"}
|
name={"representationDocuments"}
|
||||||
@@ -219,11 +282,10 @@ const ConsultationInterestedPartyPerson = (props) => {
|
|||||||
type="submit"
|
type="submit"
|
||||||
className="govuk-button"
|
className="govuk-button"
|
||||||
data-module="govuk-button"
|
data-module="govuk-button"
|
||||||
disabled={
|
disabled={shouldDisableButton({
|
||||||
props.currentView.fileList.length < 1
|
props,
|
||||||
? true
|
formObj,
|
||||||
: false
|
})}
|
||||||
}
|
|
||||||
>
|
>
|
||||||
{t("common:continue-button")}
|
{t("common:continue-button")}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user