diff --git a/frontend/src/lib/i18n/en.json b/frontend/src/lib/i18n/en.json index 6572f081..d14b9130 100644 --- a/frontend/src/lib/i18n/en.json +++ b/frontend/src/lib/i18n/en.json @@ -241,6 +241,10 @@ "addHours": "+ Add hours", "addBlock": "Add block", "saving": "saving…", + "eventTypes": { + "appliesTo": "Applies to", + "allEventTypes": "All event types" + }, "blockError": { "endAfterStart": "End must be after start" }, diff --git a/frontend/src/lib/i18n/fr.json b/frontend/src/lib/i18n/fr.json index 34f34ae4..46ca13d0 100644 --- a/frontend/src/lib/i18n/fr.json +++ b/frontend/src/lib/i18n/fr.json @@ -241,6 +241,10 @@ "addHours": "+ Ajouter des horaires", "addBlock": "Ajouter un bloc", "saving": "enregistrement…", + "eventTypes": { + "appliesTo": "S'applique à", + "allEventTypes": "Tous les types d'événements" + }, "blockError": { "endAfterStart": "La fin doit être après le début" }, diff --git a/frontend/src/routes/availability/+page.svelte b/frontend/src/routes/availability/+page.svelte index ff960f9c..52b88db1 100644 --- a/frontend/src/routes/availability/+page.svelte +++ b/frontend/src/routes/availability/+page.svelte @@ -1,6 +1,6 @@ {block.error} {/if} + + | +
+ {$t('availability.eventTypes.appliesTo')}: +
+ updateBlock(block)} + disabled={block.saving || !block.id} + > + + {#if block.event_type_id === "null"} + {$t('availability.eventTypes.allEventTypes')} + {:else} + {eventName(block.event_type_id)?.name ?? block.event_type_id} + {/if} + + + {$t('availability.eventTypes.allEventTypes')} + {#each eventTypes as e}{e.name}{/each} + + +