-
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.
Differenciate notifications for unsupervised beacons
- Loading branch information
1 parent
b809bcc
commit b6ab3fa
Showing
19 changed files
with
403 additions
and
52 deletions.
There are no files selected for viewing
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'; |
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
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
6 changes: 6 additions & 0 deletions
6
datascience/src/pipeline/sms/malfunction_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,6 @@ | ||
{% extends "base_template.jinja" %} | ||
{% block message %}Le CNSP ne reçoit pas les positions VMS de votre navire. | ||
{% 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%} | ||
{% endblock %} |
Binary file not shown.
Binary file modified
BIN
-392 Bytes
(99%)
datascience/tests/test_data/emails/MALFUNCTION_AT_PORT_INITIAL_NOTIFICATION.pdf
Binary file not shown.
Oops, something went wrong.