diff --git a/Custom_Templates/customer_templates/Instacart - Partners/_language_selector.html.liquid b/Custom_Templates/customer_templates/Instacart - Partners/_language_selector.html.liquid index 7078e003..453e73b3 100644 --- a/Custom_Templates/customer_templates/Instacart - Partners/_language_selector.html.liquid +++ b/Custom_Templates/customer_templates/Instacart - Partners/_language_selector.html.liquid @@ -30,7 +30,7 @@ {% endif %} " onclick="toggleLanguageSelector('{{parentClass}}')"> Language -
+ English (USA) Español (Estados Unidos) {% comment %} Français  (Québec) {% endcomment %} diff --git a/Custom_Templates/customer_templates/Sandata Learn/login.html.liquid b/Custom_Templates/customer_templates/Sandata Learn/login.html.liquid index 33776909..2c935a9a 100644 --- a/Custom_Templates/customer_templates/Sandata Learn/login.html.liquid +++ b/Custom_Templates/customer_templates/Sandata Learn/login.html.liquid @@ -33,11 +33,13 @@ {% t .forgot_password %} + {% comment %} {% if features.account_creation? %} {% t shared.sign_up %} {% endif %} + {% endcomment %} {% if features.request_access? %} -
-
- Getting Started Category Icon -
-
-
-
New
-
{{school_category}} -
-
-
- -
{% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endfor %} - {% comment %} EARNINGS {% endcomment %} - {% for school_category in school_categories %} - {% if school_category == "Earnings" %} -
-
-
Earnings Category Icon -
-
-
-
New
-
-
{{school_category}} -
-
-
- -
{% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endfor %} - {% comment %} SHOPPING & DELIVERY {% endcomment %} - {% for school_category in school_categories %} - {% if school_category == "Shopping & Delivery" %} -
-
-
- Shopping & Delivery Category Icon -
-
-
-
New
-
-
{{school_category}}
-
-
- -
{% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endfor %} - {% comment %} DELIVERY {% endcomment %} - {% for school_category in school_categories %} - {% if school_category == "Delivery" %} -
-
-
- Delivery Category Icon -
-
-
-
New
-
-
{{school_category}}
-
-
- -
- {% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endfor %} - {% comment %} USING THE APP {% endcomment %} - {% for school_category in school_categories %} - {% if school_category == "Using the App" %} -
-
-
- Using the App Category Icon -
-
-
-
New
-
-
{{school_category}}
-
-
- -
- {% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endfor %} - {% comment %} CONTACTING CUSTOMERS {% endcomment %} - {% for school_category in school_categories %} - {% if school_category == "Contacting Customers" %} -
-
-
- Contacting Customers Category Icon -
-
-
-
New
-
-
{{school_category}}
-
-
-
- {% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endfor %} - {% comment %} SAFETY {% endcomment %} - {% for school_category in school_categories %} - {% if school_category == "Safety" %} -
-
-
- Safety Icon -
-
-
-
New
-
-
{{school_category}}
-
-
-
- {% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endfor %} - {% comment %} REWARDS {% endcomment %} - {% for school_category in school_categories %} - {% if school_category == "Rewards" %} -
-
-
- Rewards Icon -
-
-
-
New
-
-
{{school_category}}
-
-
-
- {% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endfor %} - - {% comment %} NON SPECIFIED {% endcomment %} - {% for school_category in school_categories %} - {% unless school_category == "Getting Started" or school_category == "Earnings" or school_category == "Shopping & Delivery" or school_category == "Delivery" or school_category == "Using the App" or school_category == "Contacting Customers" or school_category == "Rewards" %} - {% if school_category == "Resource Bundles" %} - {% if features.learning_paths? and learning_paths.enrolled.any? %} -
-
-
- Category Icon -
-
-
Resource Bundles
-
-
- -
- {% include "filtered_learning_paths_tray", category_name: "Resource Bundles" %} - {% endif %} - {% else %} -
-
-
- {% if school_category == "Arrival & Pick Up" %} - Category Icon - {% elsif school_category == "Drop Off & Returns" %} - Category Icon - {% elsif school_category == "Troubleshooting" %} - Category Icon - {% elsif school_category == "Trust & Safety" %} - Category Icon - {% elsif school_category == "Offer Acceptance" %} - Category Icon - {% elsif school_category == "Returns" %} - Category Icon - {% elsif school_category == "Rewards" %} - Rewards Icon - {% elsif school_category == "Safety" %} - Safety Icon - {% else %} - Category Icon - {% endif %} -
-
-
-
New
-
-
{{school_category}}
-
-
- -
- {% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endunless %} - {% endfor %} - -{% endif %} +{% if courses.enrolled.any? %} + +{% comment %} + ============================================================================ + CATEGORY CARDS - Refactored for DRY & Maintainability + ============================================================================ + To add a new category: + 1. Add it to 'ordered_categories' in the desired position + 2. Add its icon URL to the icon lookup section below + That's it! No more copy-pasting 20 lines of code. + ============================================================================ +{% endcomment %} + +{% comment %} Define the display order for categories {% endcomment %} +{% assign ordered_categories = "Getting Started,Using the App,Earnings,Safety,Offer Acceptance,Arrival & Pick Up,Delivery,Shopping & Delivery,Returns,Rewards,Troubleshooting" | split: "," %} + +{% comment %} ==================== ORDERED CATEGORIES ==================== {% endcomment %} +{% for category_name in ordered_categories %} + {% for school_category in school_categories %} + {% if school_category == category_name %} + + {% comment %} Icon lookup - add new category icons here {% endcomment %} + {% case school_category %} + {% when "Getting Started" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/categories-img-label.webp" %} + {% assign category_alt = "Getting Started Category Icon" %} + {% when "Using the App" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-using-the-app-icon.webp" %} + {% assign category_alt = "Using the App Category Icon" %} + {% when "Earnings" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-earnings-icon.webp" %} + {% assign category_alt = "Earnings Category Icon" %} + {% when "Safety" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-safety-icon.webp" %} + {% assign category_alt = "Safety Icon" %} + {% when "Offer Acceptance" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-offer-acceptance-icon.webp" %} + {% assign category_alt = "Offer Acceptance Icon" %} + {% when "Arrival & Pick Up" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-arrival-pickup-icon.webp" %} + {% assign category_alt = "Arrival & Pick Up Icon" %} + {% when "Delivery" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-delivery-icon.webp" %} + {% assign category_alt = "Delivery Category Icon" %} + {% when "Shopping & Delivery" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-shopping-delivery-icon.webp" %} + {% assign category_alt = "Shopping & Delivery Category Icon" %} + {% when "Returns" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-returns-icon.webp" %} + {% assign category_alt = "Returns Icon" %} + {% when "Rewards" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-rewards-icon.webp" %} + {% assign category_alt = "Rewards Icon" %} + {% when "Troubleshooting" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-troubleshooting-icon.webp" %} + {% assign category_alt = "Troubleshooting Icon" %} + {% endcase %} + +
+
+
+ {{ category_alt }} +
+
+
+
{{ school_category }}
+
+
+ +
+ {% include "filtered_courses_tray", category_name: school_category %} + + {% endif %} + {% endfor %} +{% endfor %} + +{% comment %} ==================== REMAINING CATEGORIES ==================== {% endcomment %} +{% comment %} Catches any categories not in the ordered list above {% endcomment %} +{% for school_category in school_categories %} + {% unless ordered_categories contains school_category %} + + {% comment %} Icon lookup for non-ordered categories {% endcomment %} + {% case school_category %} + {% when "Drop Off & Returns" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-dropoff-returns-icon.webp" %} + {% when "Special Topics" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-troubleshooting-icon.webp" %} + {% when "Trust & Safety" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-trust-safety-icon.webp" %} + {% else %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-spark-icon.webp" %} + {% endcase %} + +
+
+
+ {{ school_category }} Category Icon +
+
+
+
{{ school_category }}
+
+
+ +
+ {% include "filtered_courses_tray", category_name: school_category %} + + {% endunless %} +{% endfor %} + +{% endif %} diff --git a/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc b/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc index bb3f4c25..3a353a83 100644 Binary files a/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc and b/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc differ diff --git a/Scripts/API_Tests/bulk_invite_and_props.py b/Scripts/API_Tests/bulk_invite_and_props.py index d7e7f498..9a3d0d74 100644 --- a/Scripts/API_Tests/bulk_invite_and_props.py +++ b/Scripts/API_Tests/bulk_invite_and_props.py @@ -11,7 +11,7 @@ HEADERS = { "X-Api-Key": APIKEY, } BASEURL = "https://api.northpass.com/v2/" -IMPORTFILE = "/Users/normrasmussen/Downloads/CISA OLC users 021626-022726.csv" +IMPORTFILE = "/Users/normrasmussen/Downloads/CISA OLC users 031626-032726.csv" def bulk_invite_and_group():