questionnaire defect 54 - plus tidying up
This commit is contained in:
@@ -41,7 +41,7 @@ const styles = StyleSheet.create({
|
|||||||
logoImage: { width: "200pt" },
|
logoImage: { width: "200pt" },
|
||||||
questionBullet: { width: "5%", fontSize: 12 },
|
questionBullet: { width: "5%", fontSize: 12 },
|
||||||
questionText: { width: "30%", fontSize: 12 },
|
questionText: { width: "30%", fontSize: 12 },
|
||||||
questionTextMid: { width: "80%", fontSize: 12 },
|
questionTextMid: { width: "75%", fontSize: 12, marginRight: 10 },
|
||||||
questionTextWide: { width: "95%", fontSize: 12, marginBottom: 5 },
|
questionTextWide: { width: "95%", fontSize: 12, marginBottom: 5 },
|
||||||
questionAnswer: {
|
questionAnswer: {
|
||||||
color: "#757575",
|
color: "#757575",
|
||||||
@@ -277,6 +277,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
wrap={false}
|
wrap={false}
|
||||||
@@ -333,6 +334,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -371,6 +373,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -408,6 +411,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -443,6 +447,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -484,61 +489,92 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.sectionContainer}>
|
<View style={styles.sectionContainer}>
|
||||||
|
]
|
||||||
<View
|
<View
|
||||||
wrap={false}
|
|
||||||
style={{
|
style={{
|
||||||
flexDirection: "row",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<Text style={styles.questionBullet}>11.</Text>
|
<View
|
||||||
<Text style={styles.questionText}>
|
wrap={false}
|
||||||
{getTrans(
|
style={{
|
||||||
docProps.locale,
|
flexDirection: "row",
|
||||||
"s78-section-question-11"
|
marginBottom: 10,
|
||||||
)}
|
}}
|
||||||
</Text>
|
>
|
||||||
<View style={styles.questionAnswer}>
|
<Text style={styles.questionBullet}>
|
||||||
|
11.
|
||||||
|
</Text>
|
||||||
|
<Text style={styles.questionTextWide}>
|
||||||
|
{getTrans(
|
||||||
|
docProps.locale,
|
||||||
|
"s78-section-question-11"
|
||||||
|
)}
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
|
<View style={styles.questionAnswerWide}>
|
||||||
<Html style={styles.richArea}>
|
<Html style={styles.richArea}>
|
||||||
{CleanHTML(values.LPAcaseFileAndReps)}
|
{CleanHTML(values.LPAcaseFileAndReps)}
|
||||||
</Html>
|
</Html>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<View
|
<View
|
||||||
wrap={false}
|
|
||||||
style={{
|
style={{
|
||||||
flexDirection: "row",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<Text style={styles.questionBullet}>12.</Text>
|
<View
|
||||||
<Text style={styles.questionText}>
|
wrap={false}
|
||||||
{getTrans(
|
style={{
|
||||||
docProps.locale,
|
flexDirection: "row",
|
||||||
"s78-section-question-12"
|
marginBottom: 10,
|
||||||
)}
|
}}
|
||||||
</Text>
|
>
|
||||||
<View style={styles.questionAnswer}>
|
<Text style={styles.questionBullet}>
|
||||||
|
12.
|
||||||
|
</Text>
|
||||||
|
<Text style={styles.questionTextWide}>
|
||||||
|
{getTrans(
|
||||||
|
docProps.locale,
|
||||||
|
"s78-section-question-12"
|
||||||
|
)}
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
|
<View style={styles.questionAnswerWide}>
|
||||||
<Html style={styles.richArea}>
|
<Html style={styles.richArea}>
|
||||||
{CleanHTML(values.LPAldpAndMap)}
|
{CleanHTML(values.LPAldpAndMap)}
|
||||||
</Html>
|
</Html>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<View
|
<View
|
||||||
wrap={false}
|
|
||||||
style={{
|
style={{
|
||||||
flexDirection: "row",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<Text style={styles.questionBullet}>13.</Text>
|
<View
|
||||||
<Text style={styles.questionText}>
|
wrap={false}
|
||||||
{getTrans(
|
style={{
|
||||||
docProps.locale,
|
flexDirection: "row",
|
||||||
"s78-section-question-13"
|
marginBottom: 10,
|
||||||
)}
|
}}
|
||||||
</Text>
|
>
|
||||||
<View style={styles.questionAnswer}>
|
<Text style={styles.questionBullet}>
|
||||||
|
13.
|
||||||
|
</Text>
|
||||||
|
<Text style={styles.questionTextWide}>
|
||||||
|
{getTrans(
|
||||||
|
docProps.locale,
|
||||||
|
"s78-section-question-13"
|
||||||
|
)}
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
|
<View style={styles.questionAnswerWide}>
|
||||||
<Html style={styles.richArea}>
|
<Html style={styles.richArea}>
|
||||||
{CleanHTML(values.LPAlocalGuidance)}
|
{CleanHTML(values.LPAlocalGuidance)}
|
||||||
</Html>
|
</Html>
|
||||||
@@ -603,6 +639,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -636,6 +673,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -671,6 +709,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -706,6 +745,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -739,6 +779,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -774,6 +815,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -827,6 +869,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -915,6 +958,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -987,6 +1031,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1026,11 +1071,12 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
marginTop: 10,
|
marginTop: 10,
|
||||||
fontFamily: "Helvetica-Bold",
|
fontFamily: "Helvetica-Bold",
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<Text style={{ fontSize: 14 }}>
|
<Text style={{ fontSize: 14 }}>
|
||||||
{getTrans(
|
{getTrans(
|
||||||
docProps.locale,
|
docProps.locale,
|
||||||
"s78-section-heading-five"
|
"s78-section-heading-five-sub"
|
||||||
)}
|
)}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
@@ -1040,6 +1086,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1060,19 +1107,24 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
{values.copyOfApplicantsCertificate}
|
{values.copyOfApplicantsCertificate}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.questionAnswerWide}>
|
{values.hasOwnProperty(
|
||||||
<Html style={styles.richArea}>
|
"copyOfApplicantsCertificateEvidence"
|
||||||
{CleanHTML(
|
) && (
|
||||||
values.copyOfApplicantsCertificateEvidence
|
<View style={styles.questionAnswerWide}>
|
||||||
)}
|
<Html style={styles.richArea}>
|
||||||
</Html>
|
{CleanHTML(
|
||||||
</View>
|
values.copyOfApplicantsCertificateEvidence
|
||||||
|
)}
|
||||||
|
</Html>
|
||||||
|
</View>
|
||||||
|
)}
|
||||||
</View>
|
</View>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1093,20 +1145,24 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
{values.advertismentGiven}
|
{values.advertismentGiven}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
{values.hasOwnProperty(
|
||||||
<View style={styles.questionAnswerWide}>
|
"advertismentGivenEvidence"
|
||||||
<Html style={styles.richArea}>
|
) && (
|
||||||
{CleanHTML(
|
<View style={styles.questionAnswerWide}>
|
||||||
values.advertismentGivenEvidence
|
<Html style={styles.richArea}>
|
||||||
)}
|
{CleanHTML(
|
||||||
</Html>
|
values.advertismentGivenEvidence
|
||||||
</View>
|
)}
|
||||||
|
</Html>
|
||||||
|
</View>
|
||||||
|
)}
|
||||||
</View>
|
</View>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1129,19 +1185,24 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
}
|
}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.questionAnswerWide}>
|
{values.hasOwnProperty(
|
||||||
<Html style={styles.richArea}>
|
"copyOfLetterOfAppealNotificationEvidence"
|
||||||
{CleanHTML(
|
) && (
|
||||||
values.copyOfLetterOfAppealNotificationEvidence
|
<View style={styles.questionAnswerWide}>
|
||||||
)}
|
<Html style={styles.richArea}>
|
||||||
</Html>
|
{CleanHTML(
|
||||||
</View>
|
values.copyOfLetterOfAppealNotificationEvidence
|
||||||
|
)}
|
||||||
|
</Html>
|
||||||
|
</View>
|
||||||
|
)}
|
||||||
</View>
|
</View>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1175,6 +1236,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1213,6 +1275,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1248,6 +1311,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1283,6 +1347,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
|
wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1411,20 +1476,30 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
<View
|
<View
|
||||||
wrap={false}
|
wrap={false}
|
||||||
style={{
|
style={{
|
||||||
flexDirection: "row",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text style={styles.questionBullet}></Text>
|
<View
|
||||||
<Text style={styles.questionText}>
|
wrap={false}
|
||||||
{getTrans(
|
style={{
|
||||||
docProps.locale,
|
flexDirection: "row",
|
||||||
"lpa-list-supporting-documents-list"
|
marginBottom: 10,
|
||||||
)}
|
}}
|
||||||
</Text>
|
>
|
||||||
|
<Text
|
||||||
|
style={styles.questionBullet}
|
||||||
|
></Text>
|
||||||
|
<Text style={styles.questionTextWide}>
|
||||||
|
{getTrans(
|
||||||
|
docProps.locale,
|
||||||
|
"lpa-list-supporting-documents-list"
|
||||||
|
)}
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
styles.questionAnswer,
|
styles.questionAnswerWide,
|
||||||
{ flexDirection: "column" },
|
{ flexDirection: "column" },
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
@@ -1446,7 +1521,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
>
|
>
|
||||||
{p.name} -{" "}
|
{p.name} -{" "}
|
||||||
{bytesToSize(
|
{bytesToSize(
|
||||||
p.size
|
p.contentLength
|
||||||
)}{" "}
|
)}{" "}
|
||||||
{"\n"}
|
{"\n"}
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
Reference in New Issue
Block a user