moved personal details to end of pdf document

This commit is contained in:
2024-04-10 14:14:08 +01:00
parent 8a2724d5de
commit f50b893c1f
@@ -181,6 +181,71 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
/> />
</View> </View>
{Object.keys(titles).map((key) => (
<View key={key}>
<View
style={{
marginTop: 10,
fontFamily: "Helvetica-Bold",
}}
>
<Text style={{ fontSize: 14 }}>
{parseInt(key) + 1} {titles[key].value}
</Text>
<View style={styles.sectionContainer}>
<View
style={{
flexDirection: "row",
marginBottom: 10,
}}
>
<View
style={{
flexDirection: "column",
marginBottom: 10,
}}
>
<AppealRow_pdf
formXML={xmlStr}
whichSection={parseInt(key) + 1}
sectionCount={key}
props={docProps}
key={key}
mandatoryFieldsData={null}
pickListData={pickListData}
filesList={values.filesList}
/>
</View>
</View>
</View>
</View>
</View>
))}
</View>
<Text
style={styles.pageNumber}
render={({ pageNumber, totalPages }) =>
`${pageNumber} / ${totalPages}`
}
fixed
/>
<View
fixed
style={{
position: "absolute",
top: 20,
left: 20,
bottom: 20,
right: 20,
border: 1,
borderColor: "#eee",
padding: 20,
paddingTop: 30,
height: "100%",
}}
></View>
</Page>
<Page size="A4" style={styles.page} wrap>
<View> <View>
<View <View
style={{ style={{
@@ -215,10 +280,7 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
</Text> </Text>
<Text style={styles.questionAnswer}> <Text style={styles.questionAnswer}>
{" "} {" "}
{ {values.caseObj.pinswg_onbehalfof}
values.caseObj
.pinswg_onbehalfof
}
</Text> </Text>
</View> </View>
<View <View
@@ -321,9 +383,7 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
}} }}
> >
<Text <Text
style={ style={styles.questionText}
styles.questionText
}
> >
Company name Company name
</Text> </Text>
@@ -346,9 +406,7 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
}} }}
> >
<Text <Text
style={ style={styles.questionText}
styles.questionText
}
> >
Agent name Agent name
</Text> </Text>
@@ -375,9 +433,7 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
}} }}
> >
<Text <Text
style={ style={styles.questionText}
styles.questionText
}
> >
Agent email address Agent email address
</Text> </Text>
@@ -400,9 +456,7 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
}} }}
> >
<Text <Text
style={ style={styles.questionText}
styles.questionText
}
> >
Agent address Agent address
</Text> </Text>
@@ -425,9 +479,7 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
}} }}
> >
<Text <Text
style={ style={styles.questionText}
styles.questionText
}
> >
Agent phone number Agent phone number
</Text> </Text>
@@ -500,70 +552,6 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
</View> </View>
</View> </View>
</View> </View>
{Object.keys(titles).map((key) => (
<View key={key}>
<View
style={{
marginTop: 10,
fontFamily: "Helvetica-Bold",
}}
>
<Text style={{ fontSize: 14 }}>
{parseInt(key) + 1} {titles[key].value}
</Text>
<View style={styles.sectionContainer}>
<View
style={{
flexDirection: "row",
marginBottom: 10,
}}
>
<View
style={{
flexDirection: "column",
marginBottom: 10,
}}
>
<AppealRow_pdf
formXML={xmlStr}
whichSection={parseInt(key) + 1}
sectionCount={key}
props={docProps}
key={key}
mandatoryFieldsData={null}
pickListData={pickListData}
filesList={values.filesList}
/>
</View>
</View>
</View>
</View>
</View>
))}
</View>
<Text
style={styles.pageNumber}
render={({ pageNumber, totalPages }) =>
`${pageNumber} / ${totalPages}`
}
fixed
/>
<View
fixed
style={{
position: "absolute",
top: 20,
left: 20,
bottom: 20,
right: 20,
border: 1,
borderColor: "#eee",
padding: 20,
paddingTop: 30,
height: "100%",
}}
></View>
</Page> </Page>
</Document> </Document>
); );