mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-09 10:26: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')) {
|
if ($flagForm->has('daily_email')) {
|
||||||
$flagForm->get('daily_email')->setData($dailyEmailChecked);
|
$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';
|
$viewData[$flag][] = 'daily-email';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($flagForm['no_email']->getData()) {
|
if (empty($viewData[$flag])) {
|
||||||
$viewData[$flag][] = 'no-email';
|
$viewData[$flag][] = 'no-email';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,13 +46,13 @@
|
|||||||
{{ form_row(form.phonenumber) }}
|
{{ form_row(form.phonenumber) }}
|
||||||
|
|
||||||
<h2 class="mb-4">{{ 'user.profile.notification_preferences'|trans }}</h2>
|
<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">
|
<table class="table table-bordered border-dark align-middle">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ 'notification.flags.type'|trans }}</th>
|
<th>{{ 'notification.flags.type'|trans }}</th>
|
||||||
<th>{{ 'notification.flags.preferences.immediate_email'|trans }}</th>
|
<th>{{ 'notification.flags.preferences.immediate_email'|trans }}</th>
|
||||||
<th>{{ 'notification.flags.preferences.daily_email'|trans }}</th>
|
<th>{{ 'notification.flags.preferences.daily_email'|trans }}</th>
|
||||||
<th>{{ 'notification.flags.preferences.no_email'|trans }}</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -67,9 +67,6 @@
|
|||||||
<td>
|
<td>
|
||||||
{{ form_widget(flag.daily_email) }}
|
{{ form_widget(flag.daily_email) }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
{{ form_widget(flag.no_email) }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -724,9 +724,11 @@ notification:
|
|||||||
person-address-move: Notification lors que l'usager qui localise un parcours a déménagé
|
person-address-move: Notification lors que l'usager qui localise un parcours a déménagé
|
||||||
person: Notification sur un usager
|
person: Notification sur un usager
|
||||||
workflow-trans: Notification sur une transition d'un workflow
|
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:
|
preferences:
|
||||||
immediate_email: Recevoir un email immédiatement
|
column_title: Préférences
|
||||||
daily_email: Recevoir un récapitulatif quotidien
|
immediate_email: Email immédiat
|
||||||
|
daily_email: Récapitulatif quotidien
|
||||||
no_email: Ne pas recevoir un email
|
no_email: Ne pas recevoir un email
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user