Adding default value for corporation activity on Firm initialization
This commit is contained in:
@@ -27,7 +27,6 @@ const New = <T,>(props: NewProps) => {
|
|||||||
schemaName={schemaName}
|
schemaName={schemaName}
|
||||||
uiSchema={uiSchema}
|
uiSchema={uiSchema}
|
||||||
resourceBasePath={resourceBasePath}
|
resourceBasePath={resourceBasePath}
|
||||||
resource={resource}
|
|
||||||
defaultValue={defaultValue}
|
defaultValue={defaultValue}
|
||||||
onSubmit={(data: any) => onFinish(data)}
|
onSubmit={(data: any) => onFinish(data)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ const FirmInitForm = (props: FirmInitFormPros) => {
|
|||||||
<CrudForm
|
<CrudForm
|
||||||
schemaName={"CurrentFirmSchema"}
|
schemaName={"CurrentFirmSchema"}
|
||||||
resourceBasePath={resourceBasePath}
|
resourceBasePath={resourceBasePath}
|
||||||
|
defaultValue={{corporation: {entity_data: {activity: t("firm.default_activity") }}}}
|
||||||
uiSchema={{
|
uiSchema={{
|
||||||
corporation: {entity_data: {employees: {"ui:style": {"display": "none"}}}},
|
corporation: {entity_data: {employees: {"ui:style": {"display": "none"}}}},
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user