diff --git a/backend/core/views.py b/backend/core/views.py index ba3aadc7f..a2cbf9ddf 100644 --- a/backend/core/views.py +++ b/backend/core/views.py @@ -356,7 +356,7 @@ class AssetViewSet(BaseModelViewSet): """ model = Asset - filterset_fields = ["folder", "parent_assets", "type", "risk_scenarios"] + filterset_fields = ["folder", "parent_assets", "type", "risk_scenarios", "ebios_rm_studies"] search_fields = ["name", "description", "business_value"] @action(detail=False, name="Get type choices") diff --git a/frontend/messages/en.json b/frontend/messages/en.json index 27c0b9b69..0d2c5a4b7 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -920,5 +920,7 @@ "ebiosWs5_4": "Assess and document residual risks", "ebiosWs5_5": "Establish risk monitoring framework", "activity": "Activity", - "ebiosRmMatrixHelpText": "Risk matrix used as a reference for the study. Defaults to `urn:intuitem:risk:library:risk-matrix-4x4-ebios-rm`" + "ebiosRmMatrixHelpText": "Risk matrix used as a reference for the study. Defaults to `urn:intuitem:risk:library:risk-matrix-4x4-ebios-rm`", + "activityOne": "Activity 1", + "activityTwo": "Activity 2" } diff --git a/frontend/src/lib/components/Forms/ModelForm.svelte b/frontend/src/lib/components/Forms/ModelForm.svelte index 4634dedaf..b0eba843d 100644 --- a/frontend/src/lib/components/Forms/ModelForm.svelte +++ b/frontend/src/lib/components/Forms/ModelForm.svelte @@ -256,7 +256,7 @@ {:else if URLModel === 'filtering-labels'} {:else if URLModel === 'ebios-rm'} - + {/if}
{#if closeModal} diff --git a/frontend/src/lib/components/Forms/ModelForm/EbiosRmForm.svelte b/frontend/src/lib/components/Forms/ModelForm/EbiosRmForm.svelte index dfc7279c3..ee0efe3d4 100644 --- a/frontend/src/lib/components/Forms/ModelForm/EbiosRmForm.svelte +++ b/frontend/src/lib/components/Forms/ModelForm/EbiosRmForm.svelte @@ -13,44 +13,99 @@ export let cacheLocks: Record = {}; export let formDataCache: Record = {}; export let initialData: Record = {}; + export let context: string; - - - - - \ No newline at end of file +{#if context !== 'ebiosRmStudy'} + + +