diff --git a/backend/core/serializers.py b/backend/core/serializers.py index 3fd17dcb7..43332b224 100644 --- a/backend/core/serializers.py +++ b/backend/core/serializers.py @@ -216,6 +216,14 @@ class Meta: class AssetWriteSerializer(BaseModelSerializer): + ebios_rm_studies = serializers.PrimaryKeyRelatedField( + many=True, + queryset=EbiosRMStudy.objects.all(), + required=False, + allow_null=True, + write_only=True, + ) + class Meta: model = Asset fields = "__all__" diff --git a/frontend/messages/en.json b/frontend/messages/en.json index 50fd4a9b8..e32bcdeea 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -980,5 +980,13 @@ "attackPaths": "Attack paths", "currentCriticality": "Current criticality", "residualCriticality": "Residual criticality", + "ebiosRm": "Ebios RM", + "workshopOne": "Workshop 1", + "refIdSemiColon": "Refence ID:", + "addFearedEvent": "Add feared event", + "addEbiosRMstudy": "Add Ebios RM Study", + "noAuthor": "No author assigned", + "noReviewer": "No reviewer assigned", + "selectAudit": "Select audit", "errorAssetGraphMustNotContainCycles": "The asset graph must not contain cycles." } diff --git a/frontend/src/lib/components/Forms/ModelForm.svelte b/frontend/src/lib/components/Forms/ModelForm.svelte index c4b150cde..e30978a25 100644 --- a/frontend/src/lib/components/Forms/ModelForm.svelte +++ b/frontend/src/lib/components/Forms/ModelForm.svelte @@ -58,6 +58,7 @@ export let suggestions: { [key: string]: any } = {}; export let cancelButton = true; export let duplicate = false; + export let customNameDescription = false; const URLModel = model.urlModel as urlModel; export let schema = modelSchema(URLModel); @@ -163,7 +164,7 @@ }} /> {/if} - {#if shape.name} + {#if shape.name && !customNameDescription} {/if} - {#if shape.description} + {#if shape.description && !customNameDescription}