From f00fae4e67fbb0004e2ebec373d0879342773521 Mon Sep 17 00:00:00 2001 From: Pilar Candia Date: Thu, 23 May 2024 10:16:30 -0400 Subject: [PATCH] [5.3] MSTR-300: Add support to intrado when adding a e911 to a number (#1178) * MSTR-300: Add support to intrado when adding a e911 to a number * Add dropdown to country field * Add street number to address --- src/apps/common/i18n/de-DE.json | 7 +++++++ src/apps/common/i18n/en-US.json | 7 +++++++ src/apps/common/i18n/fr-FR.json | 7 +++++++ src/apps/common/i18n/nl-NL.json | 9 ++++++++- src/apps/common/i18n/ru-RU.json | 9 ++++++++- src/apps/common/submodules/e911/e911.js | 7 +++++++ src/apps/common/submodules/e911/e911.scss | 5 +++++ src/apps/common/submodules/e911/views/dialog.html | 12 +++++++++++- 8 files changed, 60 insertions(+), 3 deletions(-) diff --git a/src/apps/common/i18n/de-DE.json b/src/apps/common/i18n/de-DE.json index 833569f17..341428c56 100644 --- a/src/apps/common/i18n/de-DE.json +++ b/src/apps/common/i18n/de-DE.json @@ -205,6 +205,7 @@ "postalCode": "PLZ", "rotatedText": "Für Notdienste", "state": "Bundesland/Kanton", + "country": "Country", "successE911": "Sie haben die e911-Adresse von
{{phoneNumber}} erfolgreich aktualisiert", "title": "E911-Adresse", "verifyLocation": "Standort prüfen", @@ -216,6 +217,12 @@ "youEntered": "Ihre Eingabe:", "choicesAvailable": "Verfügbare Auswahl:", "content": "Ihre Angaben passen zu mehreren Adressen. Vielleicht haben Sie keine Hausnummer angegeben oder das Haus besteht aus mehreren Gebäuden." + }, + "countries": { + "us": { + "value": "US", + "option": "United States" + } } }, diff --git a/src/apps/common/i18n/en-US.json b/src/apps/common/i18n/en-US.json index ec716f669..265467844 100644 --- a/src/apps/common/i18n/en-US.json +++ b/src/apps/common/i18n/en-US.json @@ -724,6 +724,7 @@ "postalCode": "Zip Code", "rotatedText": "For emergency services", "state": "State", + "country": "Country", "successE911": "You successfully updated the e911 information of
{{phoneNumber}}", "title": "E911 Information", "verifyLocation": "Verify Location", @@ -735,6 +736,12 @@ "youEntered": "You entered:", "choicesAvailable": "Choices available:", "content": "Several addresses matched the information you provided. Perhaps you didn't enter a street number or the building has multiple units." + }, + "countries": { + "us": { + "value": "US", + "option": "United States" + } } }, diff --git a/src/apps/common/i18n/fr-FR.json b/src/apps/common/i18n/fr-FR.json index f4d101f5b..462fa1e4a 100644 --- a/src/apps/common/i18n/fr-FR.json +++ b/src/apps/common/i18n/fr-FR.json @@ -128,6 +128,7 @@ "postalCode":"Code Postal", "rotatedText":"Pour Services d'Urgences", "state":"État", + "country": "Country", "successE911":"Mise à jour de l'Adresse d'Urgence de
{{phoneNumber}} réussie", "title":"Adresse d'Urgence", "verifyLocation":"Vérifier Adresse", @@ -137,6 +138,12 @@ "youEntered": "Vous avez entré:", "choicesAvailable": "Choix disponibles:", "content": "Plusieurs adresses correpondent à celle que vous avez entré. Peut-être que vous n'avez pas spécifié un numéro de rue ou le bâtiment à plusieurs appartements." + }, + "countries": { + "us": { + "value": "US", + "option": "United States" + } } }, "failover":{ diff --git a/src/apps/common/i18n/nl-NL.json b/src/apps/common/i18n/nl-NL.json index e93b8d9f8..ab4730450 100644 --- a/src/apps/common/i18n/nl-NL.json +++ b/src/apps/common/i18n/nl-NL.json @@ -107,9 +107,16 @@ "postalCode": "Postcode", "rotatedText": "Voor alarmdiensten", "state": "Provincie", + "country": "Country", "successE911": "U werkte met succes het 112 alarmdienst adres bij voor {{phoneNumber}}", "title": "112 Adres", - "verifyLocation": "Check de Locatie" + "verifyLocation": "Check de Locatie", + "countries": { + "us": { + "value": "US", + "option": "United States" + } + } }, "failover": { diff --git a/src/apps/common/i18n/ru-RU.json b/src/apps/common/i18n/ru-RU.json index 620695ecb..3a8cb364a 100644 --- a/src/apps/common/i18n/ru-RU.json +++ b/src/apps/common/i18n/ru-RU.json @@ -105,9 +105,16 @@ "postalCode": "Почтовый индекс", "rotatedText": "Для экстренных служб", "state": "Регион", + "country": "Country", "successE911": "Вы успешно обновили адрес вызова экстренных служб для номера {{phoneNumber}}", "title": "Адрес для вызова экстренных служб", - "verifyLocation": "Проверьте адрес" + "verifyLocation": "Проверьте адрес", + "countries": { + "us": { + "value": "US", + "option": "United States" + } + } }, "failover": { diff --git a/src/apps/common/submodules/e911/e911.js b/src/apps/common/submodules/e911/e911.js index 33ff1f52d..04e028522 100644 --- a/src/apps/common/submodules/e911/e911.js +++ b/src/apps/common/submodules/e911/e911.js @@ -237,6 +237,13 @@ define(function(require) { }, e911Normalize: function(data) { + var splitAddress = data.street_address.split(/\s/g); + data.caller_name = monster.apps.auth.currentAccount.name; + data.legacy_data = { + house_number: _.head(splitAddress) + }; + data.street_address = splitAddress.slice(1).join(' '); + return _.merge({}, data, { notification_contact_emails: _ .chain(data) diff --git a/src/apps/common/submodules/e911/e911.scss b/src/apps/common/submodules/e911/e911.scss index 938601170..cb35a0598 100644 --- a/src/apps/common/submodules/e911/e911.scss +++ b/src/apps/common/submodules/e911/e911.scss @@ -60,6 +60,11 @@ width: 186px; padding: 10px 5px; } + + .control-group .controls select { + width: 197px; + height: 42px; + } .control-group .controls button { width: 200px; diff --git a/src/apps/common/submodules/e911/views/dialog.html b/src/apps/common/submodules/e911/views/dialog.html index d75548400..7a5d50148 100644 --- a/src/apps/common/submodules/e911/views/dialog.html +++ b/src/apps/common/submodules/e911/views/dialog.html @@ -18,7 +18,7 @@
- +
@@ -39,6 +39,16 @@
+
+ +
+ +
+
{{#if status}}