From d182cda6dca981cb0265e950ddb08a8b9b577455 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Mon, 17 Mar 2025 15:12:10 -0400 Subject: [PATCH] Chubb changes for their access agents push. --- .../Chubb/_catalog_filters.html.liquid | 18 +++++----- .../Chubb/_courses_catalog.html.liquid | 1 - .../Chubb/_featured_cards_course.html.liquid | 22 ++++++------ .../Chubb/_homepage-filters.html.liquid | 14 ++++---- .../Chubb/_in_progress_carousel.html.liquid | 6 ++-- .../Chubb/_recommended_carousel.html.liquid | 4 +-- .../Chubb/catalog.html.liquid | 4 +-- Scripts/API_Tests/Apikeys.py | 1 + .../__pycache__/Apikeys.cpython-310.pyc | Bin 1756 -> 1773 bytes .../API_Tests/add_course_to_group_from_csv.py | 33 ++++++++++++++---- Scripts/API_Tests/get_people_and_props.py | 25 +++++++++++++ 11 files changed, 86 insertions(+), 42 deletions(-) create mode 100644 Scripts/API_Tests/get_people_and_props.py diff --git a/Custom_Templates/customer_templates/Chubb/_catalog_filters.html.liquid b/Custom_Templates/customer_templates/Chubb/_catalog_filters.html.liquid index cbc22a00..e495edc3 100644 --- a/Custom_Templates/customer_templates/Chubb/_catalog_filters.html.liquid +++ b/Custom_Templates/customer_templates/Chubb/_catalog_filters.html.liquid @@ -29,7 +29,7 @@
{% assign unique_categories = "" %} - {% for course in courses.in_catalog %} + {% for course in courses.enrolled %} {% for category in course.categories %} {% if categories contains category.name%} {% unless unique_categories contains category.name %} @@ -62,7 +62,7 @@
{% assign unique_coverages_categories = "" %} - {% for course in courses.in_catalog %} + {% for course in courses.enrolled %} {% for category in course.categories %} {% if coverages_categories contains category.name %} {% unless unique_coverages_categories contains category.name %} @@ -96,7 +96,7 @@
{% assign unique_competencies_categories = "" %} - {% for course in courses.in_catalog %} + {% for course in courses.enrolled %} {% for category in course.categories %} {% if competencies_categories contains category.name %} {% unless unique_competencies_categories contains category.name %} @@ -129,7 +129,7 @@
{% assign unique_industry_practices_categories = "" %} - {% for course in courses.in_catalog %} + {% for course in courses.enrolled %} {% for category in course.categories %} {% if industry_practices_categories contains category.name %} {% unless unique_industry_practices_categories contains category.name %} @@ -162,7 +162,7 @@
{% assign unique_level_categories = "" %} - {% for course in courses.in_catalog %} + {% for course in courses.enrolled %} {% for category in course.categories %} {% if level_categories contains category.name %} {% unless unique_level_categories contains category.name %} @@ -186,7 +186,7 @@ {% endif %} {% endfor %} {% endfor %} - +
@@ -320,7 +320,7 @@ allCourses.forEach(function (course) { var courseCategories = course.getAttribute('categories').split(','); var courseType = course.getAttribute('type'); - var courseDuration = parseInt(course.getAttribute('duration')); + var courseDuration = parseInt(course.getAttribute('duration')); if (!courseType) { courseType = ""; @@ -335,7 +335,7 @@ var durationFilter = true; if (selectedDuration.length > 0) { - var durationFilterValue = selectedDuration[0]; + var durationFilterValue = selectedDuration[0]; switch (durationFilterValue) { case 'duration-<10': durationFilter = courseDuration < 10; @@ -468,4 +468,4 @@ function clearFilters() { setInitialFilterState(); hideUnusedTypes(); }); - \ No newline at end of file + diff --git a/Custom_Templates/customer_templates/Chubb/_courses_catalog.html.liquid b/Custom_Templates/customer_templates/Chubb/_courses_catalog.html.liquid index 13b2c8b6..08c35da0 100644 --- a/Custom_Templates/customer_templates/Chubb/_courses_catalog.html.liquid +++ b/Custom_Templates/customer_templates/Chubb/_courses_catalog.html.liquid @@ -1,4 +1,3 @@ -
{% for course in courses.enrolled %}
diff --git a/Custom_Templates/customer_templates/Chubb/_featured_cards_course.html.liquid b/Custom_Templates/customer_templates/Chubb/_featured_cards_course.html.liquid index 8c61bf79..cc175207 100644 --- a/Custom_Templates/customer_templates/Chubb/_featured_cards_course.html.liquid +++ b/Custom_Templates/customer_templates/Chubb/_featured_cards_course.html.liquid @@ -9,33 +9,31 @@
-
Hello!
+
GETTING STARTED WITH CHUBB ACCESS

- Lorem Ipsum + Chubb Access Agent Onboarding

- This is fake text + Our onboarding learning paths provide an introduction to Chubb’s coverages, services, and available resources, so you can give your clients the protection they deserve — and help your business succeed.
-
Explore the entire catalog +
Note: These learning paths are designed solely for Chubb Access agents. The Chubb Access program (“Chubb Access”) provides agents an opportunity to offer their clients exceptional Chubb insurance products and services. Chubb Access agents receive quotes for coverage through their relationship with Chubb Insurance Solutions Agency Inc. (“CISA”), California license no. 0D12120. Insurance is offered by CISA and CISA is the broker of record for all policies issued through Chubb Access and the Chubb Access portal.
cornerstone
diff --git a/Custom_Templates/customer_templates/Chubb/_homepage-filters.html.liquid b/Custom_Templates/customer_templates/Chubb/_homepage-filters.html.liquid index 7c95db1f..e2cb28d7 100644 --- a/Custom_Templates/customer_templates/Chubb/_homepage-filters.html.liquid +++ b/Custom_Templates/customer_templates/Chubb/_homepage-filters.html.liquid @@ -8,15 +8,15 @@ Courses
- + - +