From e568af2c33016d157ab91f9b131aa1df229316d7 Mon Sep 17 00:00:00 2001 From: Zach Margolis Date: Tue, 19 Oct 2021 15:23:23 -0700 Subject: [PATCH 01/58] Add table of SMS/Voice support dynamically loaded from IDP --- _config.yml | 5 ++ _includes/country_support_table.html | 16 +++++++ _includes/one_account_banner.html | 2 +- _includes/sign_in.html | 2 +- assets/js/country_support.js | 47 +++++++++++++++++++ .../international-phone-support.md | 17 +++++++ webpack.config.js | 1 + 7 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 _includes/country_support_table.html create mode 100644 assets/js/country_support.js create mode 100644 content/_en/help/manage-your-account/international-phone-support.md diff --git a/_config.yml b/_config.yml index 0c5cf2853..d434e0b43 100644 --- a/_config.yml +++ b/_config.yml @@ -16,6 +16,11 @@ contact_form_captcha_enabled: true contact_form_action: "https://webto.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8" contact_form_orgid: "00DU0000000Leux" +# Used to load country code support +idp_base_url: https://secure.login.gov +# for local development: +# idp_base_url: http://localhost:3000 + # Pages collections_dir: content collections: diff --git a/_includes/country_support_table.html b/_includes/country_support_table.html new file mode 100644 index 000000000..8290918af --- /dev/null +++ b/_includes/country_support_table.html @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/_includes/one_account_banner.html b/_includes/one_account_banner.html index 152aa3491..c6f2b64a0 100644 --- a/_includes/one_account_banner.html +++ b/_includes/one_account_banner.html @@ -1,6 +1,6 @@ {% if page.url == '/create-an-account/' %} {% assign link_class = 'usa-button usa-button--big' %} - {% assign link_url = 'https://secure.login.gov/sign_up/enter_email' %} + {% assign link_url = site.idp_base_url | append: '/sign_up/enter_email' %} {% capture link_content %} {{ site.data.[page.lang].settings.banner.one-account-for-govt.create }} {% endcapture %} diff --git a/_includes/sign_in.html b/_includes/sign_in.html index 5278d77a6..99bf951f8 100644 --- a/_includes/sign_in.html +++ b/_includes/sign_in.html @@ -1,6 +1,6 @@