Skip to content
3 changes: 2 additions & 1 deletion frontend/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2670,5 +2670,6 @@
"doraAlternativeProviders": "Alternative Providers",
"doraAttributes": "DORA Attributes",
"doraAssessment": "DORA Assessment",
"moreOnTerminologiesHelpText": "Hint: more options can be defined through terminologies"
"moreOnTerminologiesHelpText": "Hint: more options can be defined through terminologies",
"selectExistingAppliedControls": "Select existing applied controls..."
}
3 changes: 2 additions & 1 deletion frontend/messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2670,5 +2670,6 @@
"webhookEndpointUrlHelpText": "L'URL où l'application recevra les webhooks entrants du service tiers.",
"webhookSecret": "Secret webhook",
"webhookSecretAlreadySetHelpText": "Le secret webhook est déjà défini.",
"webhookUrl": "URL webhook"
"webhookUrl": "URL webhook",
"selectExistingAppliedControls": "Sélectionnez des mesures appliquées existantes..."
}
3 changes: 3 additions & 0 deletions frontend/src/lib/components/Forms/AutocompleteSelect.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
disabled?: boolean;
hidden?: boolean;
translateOptions?: boolean;
placeholder?: string | null;
options?: Option[];
optionsEndpoint?: string;
optionsDetailedUrlParameters?: [string, string][];
Expand Down Expand Up @@ -88,6 +89,7 @@
disabled = false,
hidden = false,
translateOptions = true,
placeholder = null,
options = [],
optionsEndpoint = '',
optionsDetailedUrlParameters = [],
Expand Down Expand Up @@ -457,6 +459,7 @@
duplicates={false}
key={JSON.stringify}
filterFunc={fastFilter}
{placeholder}
>
{#snippet option({ option })}
{#if optionSnippet}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
optionsExtraFields={[['folder', 'str']]}
field="applied_controls"
label={m.appliedControls()}
placeholder={m.selectExistingAppliedControls()}
/>
{/key}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
optionsExtraFields={[['folder', 'str']]}
field="applied_controls"
label={m.appliedControls()}
placeholder={m.selectExistingAppliedControls()}
/>
{/key}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@
optionsExtraFields={[['folder', 'str']]}
field="applied_controls"
label={m.appliedControls()}
placeholder={m.selectExistingAppliedControls()}
/>
</div>
<div class="flex items-end">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@
optionsExtraFields={[['folder', 'str']]}
field="applied_controls"
label={m.appliedControls()}
placeholder={m.selectExistingAppliedControls()}
/>
<AutocompleteSelect
multiple
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
optionsExtraFields={[['folder', 'str']]}
field="applied_controls"
label={m.appliedControls()}
placeholder={m.selectExistingAppliedControls()}
/>
<AutocompleteSelect
{form}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
field="existing_applied_controls"
label={m.existingControls()}
helpText={m.existingControlsHelper()}
placeholder={m.selectExistingAppliedControls()}
/>
{/key}
</div>
Expand Down Expand Up @@ -380,6 +381,7 @@
field="applied_controls"
label={m.extraAppliedControls()}
helpText={m.extraControlsHelper()}
placeholder={m.selectExistingAppliedControls()}
/>
{/key}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@
]}
optionsExtraFields={[['folder', 'str']]}
field="applied_controls"
placeholder={m.selectExistingAppliedControls()}
/>
{/key}
<ModelTable
Expand Down
Loading