@visns-studio/visns-components 4.1.4 → 4.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/components/crm/Form.jsx
CHANGED
|
@@ -1285,13 +1285,13 @@ function Form({
|
|
|
1285
1285
|
? formSettings.sortButton.label
|
|
1286
1286
|
: 'Sort'}
|
|
1287
1287
|
</button>
|
|
1288
|
-
) :
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1288
|
+
) : null}
|
|
1289
|
+
|
|
1290
|
+
<button className="btn" onClick={handleSubmit}>
|
|
1291
|
+
{formSettings?.save?.button?.label
|
|
1292
|
+
? formSettings.save.button.label
|
|
1293
|
+
: 'Save'}
|
|
1294
|
+
</button>
|
|
1295
1295
|
</div>
|
|
1296
1296
|
</div>
|
|
1297
1297
|
);
|
|
@@ -36,7 +36,7 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
36
36
|
type: '',
|
|
37
37
|
options: [],
|
|
38
38
|
rows: [],
|
|
39
|
-
size: '
|
|
39
|
+
size: 'half',
|
|
40
40
|
required: 'no',
|
|
41
41
|
});
|
|
42
42
|
const [dataOption, setDataOption] = useState({
|
|
@@ -176,7 +176,7 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
176
176
|
label: '',
|
|
177
177
|
type: '',
|
|
178
178
|
options: [],
|
|
179
|
-
size: '
|
|
179
|
+
size: 'half',
|
|
180
180
|
required: 'no',
|
|
181
181
|
}));
|
|
182
182
|
setModalType(() => ({
|
|
@@ -1005,6 +1005,7 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
1005
1005
|
</label>
|
|
1006
1006
|
</div>
|
|
1007
1007
|
)}
|
|
1008
|
+
|
|
1008
1009
|
<div className={styles.formItem}>
|
|
1009
1010
|
<label className={styles.fi__label}>
|
|
1010
1011
|
<select
|
|
@@ -1048,6 +1049,34 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
1048
1049
|
</span>
|
|
1049
1050
|
</label>
|
|
1050
1051
|
</div>
|
|
1052
|
+
|
|
1053
|
+
{dataField.type === 'image' && (
|
|
1054
|
+
<div className={styles.formItem}>
|
|
1055
|
+
<label className={styles.fi__label}>
|
|
1056
|
+
<select
|
|
1057
|
+
name="image_qty"
|
|
1058
|
+
value={dataField.image_qty}
|
|
1059
|
+
onChange={handleChangeForm}
|
|
1060
|
+
>
|
|
1061
|
+
<option>
|
|
1062
|
+
Please Select an Option
|
|
1063
|
+
</option>
|
|
1064
|
+
<option value="single">
|
|
1065
|
+
Single
|
|
1066
|
+
</option>
|
|
1067
|
+
<option value="bulk">
|
|
1068
|
+
Bulk
|
|
1069
|
+
</option>
|
|
1070
|
+
</select>
|
|
1071
|
+
<span
|
|
1072
|
+
className={styles.fi__span}
|
|
1073
|
+
>
|
|
1074
|
+
Single or Bulk Image?
|
|
1075
|
+
</span>
|
|
1076
|
+
</label>
|
|
1077
|
+
</div>
|
|
1078
|
+
)}
|
|
1079
|
+
|
|
1051
1080
|
{dataField.type === 'plaintext' && (
|
|
1052
1081
|
<div
|
|
1053
1082
|
className={`${styles.formItem} ${styles.fwItem}`}
|
package/package.json
CHANGED