rep defect 41

This commit is contained in:
2025-01-16 14:05:31 +00:00
parent cb39990cb1
commit 9980b83d34
+67 -5
View File
@@ -53,6 +53,28 @@ const styles = StyleSheet.create({
paddingLeft: 10,
backgroundColor: "white",
},
questionAnswerSmall: {
color: "#757575",
width: "300",
fontSize: 12,
padding: 5,
border: 1,
borderColor: "#eee",
paddingLeft: 10,
paddingRight: 10,
backgroundColor: "white",
marginRight: 10,
},
questionAnswerSmaller: {
color: "#757575",
width: "90",
fontSize: 12,
padding: 5,
border: 1,
borderColor: "#eee",
paddingLeft: 10,
backgroundColor: "white",
},
questionAnswerMid: {
color: "#757575",
width: "20%",
@@ -239,7 +261,7 @@ export const statement_pdf = ({ docProps }) => {
<Html style={styles.richArea}>
{CleanHTML(
values.conditional_representationCapacity_Comments
)}
) || "N/A"}
</Html>
</Text>
</View>
@@ -440,7 +462,7 @@ export const statement_pdf = ({ docProps }) => {
}}
>
<Text
style={{ width: "40%", fontSize: 12 }}
style={{ width: "15%", fontSize: 12 }}
>
{getTrans(
docProps.locale,
@@ -448,7 +470,18 @@ export const statement_pdf = ({ docProps }) => {
)}
:
</Text>
<Text style={styles.questionAnswer}>
<Text
style={{
color: "#757575",
width: "310",
fontSize: 12,
padding: 5,
border: 1,
borderColor: "#eee",
backgroundColor: "white",
paddingRight: 10,
}}
>
{values.firstname} {values.lastname}
</Text>
</View>
@@ -459,14 +492,20 @@ export const statement_pdf = ({ docProps }) => {
alignItems: "center",
}}
>
<Text style={styles.questionText}>
<Text
style={{
width: "40",
fontSize: 12,
marginLeft: 10,
}}
>
{getTrans(
docProps.locale,
"statement-date-label"
)}
:
</Text>
<Text style={styles.questionAnswer}>
<Text style={styles.questionAnswerSmaller}>
{signedDate}
</Text>
</View>
@@ -479,6 +518,7 @@ export const statement_pdf = ({ docProps }) => {
style={{
flexDirection: "row",
marginBottom: 10,
alignItems: "center",
}}
>
<Text
@@ -498,6 +538,28 @@ export const statement_pdf = ({ docProps }) => {
: ""}
</Text>
</View>
) : values.hasOwnProperty("onBehalfOfLPA") ? (
<View
wrap={false}
style={{
flexDirection: "row",
marginBottom: 10,
alignItems: "center",
}}
>
<Text
style={{ width: "18%", fontSize: 12 }}
>
{getTrans(
docProps.locale,
"statement-onbehalf-label"
)}
:
</Text>
<Text style={styles.questionAnswerWide}>
{values.onBehalfOfLPA}
</Text>
</View>
) : (
<View />
)}