-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notifier les avaries des navires ayant une balise UNSUPERVISED (#2761)
## Linked issues - Resolve #2751 - [x] Rajouter les nouveaux enum dans les testdata backend - [x] Il faut rajouter les enums dans le backend et le frontend car une balise peut changer de statut et passer de `UNSUPERVISED` à `ACTIVATED` pendant qu'elle est en avarie, auquel cas l'avarie deviendra visible dans le front et l'utilisateur pourra cliquer dessus et visualiser les noficitations envoyées, y compris celles de type `*UNSUPERVISED_BEACON` envoyées avant le changement de statut de la balise
- Loading branch information
Showing
25 changed files
with
433 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...n/resources/db/migration/internal/V0.241__Update_beacon_malfunction_notification_type.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ALTER TYPE public.beacon_malfunction_notification_type | ||
ADD VALUE 'MALFUNCTION_AT_SEA_INITIAL_NOTIFICATION_UNSUPERVISED_BEACON' | ||
AFTER 'MALFUNCTION_NOTIFICATION_TO_FOREIGN_FMC'; | ||
|
||
ALTER TYPE public.beacon_malfunction_notification_type | ||
ADD VALUE 'MALFUNCTION_AT_PORT_INITIAL_NOTIFICATION_UNSUPERVISED_BEACON' | ||
AFTER 'MALFUNCTION_AT_SEA_INITIAL_NOTIFICATION_UNSUPERVISED_BEACON'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...es/beacon_malfunctions/malfunction_at_port_initial_notification_unsupervised_beacon.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% extends "base_template.jinja" %} | ||
{% block message %} | ||
{% block beginning %} | ||
<p>Nous vous informons que <strong>le CNSP ne reçoit pas les positions de votre navire par le | ||
système de surveillance satellitaire des navires (VMS). | ||
{% if last_position_latitude and last_position_longitude and last_position_datetime_utc %} | ||
</strong>La dernière position reçue date du {{ last_position_datetime_utc }}, | ||
latitude {{ last_position_latitude }}, longitude {{ last_position_longitude }}. | ||
{%endif%} | ||
</p> | ||
{% endblock %} | ||
|
||
<p>Si l'absence d'émission est liée à un problème technique, veuillez contacter votre installateur ou votre | ||
opérateur satellitaire pour régler le problème.</p> | ||
|
||
<p>Pour rappel, <strong>votre navire n'est pas autorisé à reprendre la | ||
mer tant que votre installation VMS n'est pas en état de fonctionnement*.</strong></p> | ||
|
||
<p>Le non-respect de ces obligations peut être sanctionné par une amende de 22 500€**.</p> | ||
{% endblock %} |
20 changes: 20 additions & 0 deletions
20
...tes/beacon_malfunctions/malfunction_at_sea_initial_notification_unsupervised_beacon.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% extends "base_template.jinja" %} | ||
{% block message %} | ||
{% block beginning %} | ||
<p>Nous vous informons que <strong>le CNSP ne reçoit pas les positions de votre navire par le | ||
système de surveillance satellitaire des navires (VMS).</strong> | ||
{% if last_position_latitude and last_position_longitude and last_position_datetime_utc %} | ||
La dernière position reçue date du {{ last_position_datetime_utc }}, | ||
latitude {{ last_position_latitude }}, longitude {{ last_position_longitude }}. | ||
{%endif%} | ||
</p> | ||
|
||
<p>Veuillez contacter votre installateur ou votre opérateur satellitaire pour régler le problème.</p> | ||
{% endblock %} | ||
|
||
<p>Le CNSP vous informera de la reprise de réception des positions de votre navire.</p> | ||
|
||
<p>Pour rappel, au terme de votre marée, <strong>votre navire ne sera pas autorisé à reprendre la | ||
mer tant que votre installation VMS ne sera pas en état de fonctionnement*.</strong></p> | ||
<p>Le non-respect de ces obligations peut être sanctionné par une amende de 22 500€**.</p> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.