From f0f270b44dcc50a257cd61556e4d0ae20b89e6aa Mon Sep 17 00:00:00 2001 From: RaktimaNXG Date: Tue, 8 Oct 2024 13:31:30 +0530 Subject: [PATCH] fix: handle form advanced options data for self hosting user --- apps/OpenSign/src/pages/Form.js | 214 +++++++++++++++++++++++--------- 1 file changed, 152 insertions(+), 62 deletions(-) diff --git a/apps/OpenSign/src/pages/Form.js b/apps/OpenSign/src/pages/Form.js index d29b38c1c..ab6e43e9c 100644 --- a/apps/OpenSign/src/pages/Form.js +++ b/apps/OpenSign/src/pages/Form.js @@ -937,7 +937,7 @@ const Forms = (props) => { /> ) : (
-
+
{props.title !== "New Template" ? ( { /> ) : ( <> -
- - {t("auto-reminder")}{" "} - {!isSubscribe && isEnableSubscription && } - - -
- - {formData?.autoreminder === true && ( -
- - - e.target.setCustomValidity(t("input-required")) - } - onInput={(e) => e.target.setCustomValidity("")} - required - /> -
- )} - - )} - {!isAdvanceOpt && ( -
setIsAdvanceOpt(!isAdvanceOpt)} - className={`mt-2.5 op-link op-link-primary text-sm`} - > - {t("advanced-options")} -
- )} - {isAdvanceOpt && ( - <> - + {t("form-title-1")} -
+
+ + )} + {isAdvanceOpt && ( + <> + {isEnableSubscription && + props.title === "New Template" && ( +
+ + {t("auto-reminder")}{" "} + {!isSubscribe && isEnableSubscription && ( + + )} + + +
+ )} + {formData?.autoreminder === true && ( +
+ + + e.target.setCustomValidity(t("input-required")) + } + onInput={(e) => e.target.setCustomValidity("")} + required + /> +
+ )} + {props.title !== "New Template" && ( + <> + + {t("form-title-1")} + +
+ + + + + + +
+

+ {t("send-in-order")} +

+

{t("send-in-order-help.p1")}

+

+

    +
  1. + + {t("yes")}:{" "} + + + {t("send-in-order-help.p2")} + +
  2. +
  3. + + {t("no")}:{" "} + + + {t("send-in-order-help.p3")} + +
  4. +
+

+

{t("send-in-order-help.p4")}

+
+
+ +
+
+ +
{t("yes")}
+
+
+ +
{t("no")}
+
+
+
+ + )}
{props.title === "Request Signatures" && ( @@ -1093,13 +1167,19 @@ const Forms = (props) => { {isAdvanceOpt && (
)} {isAdvanceOpt && ( -
+
{isEnableSubscription && props.title !== "New Template" && (
@@ -1143,9 +1223,9 @@ const Forms = (props) => { />
)} - {t("form-title-2")} + {t("form-title-2")} {isEnableSubscription && ( -
+
)} -
+
)} - {isAdvanceOpt && ( + + {isAdvanceOpt && props.title !== "Sign Yourself" ? (
setIsAdvanceOpt(!isAdvanceOpt)} className={`mt-2.5 op-link op-link-primary text-sm`} > {t("hide-advanced-options")}
+ ) : ( + props.title !== "Sign Yourself" && ( +
setIsAdvanceOpt(!isAdvanceOpt)} + className={`mt-2.5 op-link op-link-primary text-sm`} + > + {t("advanced-options")} +
+ ) )}