mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-08 18:06:14 +00:00
No preference selection for notification type equals no email
This commit is contained in:
parent
8cd6a3261c
commit
a556a9545b
@ -46,9 +46,6 @@ final readonly class NotificationFlagDataMapper implements DataMapperInterface
|
||||
if ($flagForm->has('daily_email')) {
|
||||
$flagForm->get('daily_email')->setData($dailyEmailChecked);
|
||||
}
|
||||
if ($flagForm->has('no_email')) {
|
||||
$flagForm->get('no_email')->setData($noEmailChecked);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -73,7 +70,7 @@ final readonly class NotificationFlagDataMapper implements DataMapperInterface
|
||||
$viewData[$flag][] = 'daily-email';
|
||||
}
|
||||
|
||||
if ($flagForm['no_email']->getData()) {
|
||||
if (empty($viewData[$flag])) {
|
||||
$viewData[$flag][] = 'no-email';
|
||||
}
|
||||
}
|
||||
|
@ -46,13 +46,13 @@
|
||||
{{ form_row(form.phonenumber) }}
|
||||
|
||||
<h2 class="mb-4">{{ 'user.profile.notification_preferences'|trans }}</h2>
|
||||
<p class="chill-no-data-statement">{{ 'notification.flags.none selected message'|trans }}</p>
|
||||
<table class="table table-bordered border-dark align-middle">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ 'notification.flags.type'|trans }}</th>
|
||||
<th>{{ 'notification.flags.preferences.immediate_email'|trans }}</th>
|
||||
<th>{{ 'notification.flags.preferences.daily_email'|trans }}</th>
|
||||
<th>{{ 'notification.flags.preferences.no_email'|trans }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -67,9 +67,6 @@
|
||||
<td>
|
||||
{{ form_widget(flag.daily_email) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ form_widget(flag.no_email) }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
@ -724,9 +724,11 @@ notification:
|
||||
person-address-move: Notification lors que l'usager qui localise un parcours a déménagé
|
||||
person: Notification sur un usager
|
||||
workflow-trans: Notification sur une transition d'un workflow
|
||||
none selected message: Si vous ne sélectionnez aucune option, vous ne recevrez pas d'email concernant ce type de notification.
|
||||
preferences:
|
||||
immediate_email: Recevoir un email immédiatement
|
||||
daily_email: Recevoir un récapitulatif quotidien
|
||||
column_title: Préférences
|
||||
immediate_email: Email immédiat
|
||||
daily_email: Récapitulatif quotidien
|
||||
no_email: Ne pas recevoir un email
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user