From 0242384887fa109ad12975ddfca63abefd7310db Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Tue, 4 Mar 2025 16:30:56 -0500 Subject: [PATCH] All that Walmart work and they can't even launch tomorrow.... finished up the work for the Basic/3P user groups. Was then told these learners need to be able to buy courses, which isn't possible with their current configuration. Backing up the files to git anyway, just in case. --- .../_calendar.html.liquid | 325 ++++++++++++++++++ .../_cards_course_banner.html.liquid | 43 +++ .../_categorie_courses.html.liquid | 203 +++++++++++ .../_content_by_certificates.html.liquid | 55 +++ .../_dashboard_ongoing_training.html.liquid | 194 +++++++++++ ...epage_basic_notstarted_courses.html.liquid | 186 ++++++++++ .../_homepage_featured.html.liquid | 10 +- .../_homepage_featured_courses.html.liquid | 188 ++++++++++ .../_homepage_inprogress_courses.html.liquid | 192 +++++++++++ .../_homepage_quick_learn.html.liquid | 209 +++++++++++ .../_homepage_quicklearn_courses.html.liquid | 187 ++++++++++ .../_progress_tracker.html.liquid | 41 +++ .../_sub_navigation.html.liquid | 4 + .../_subcategorie_courses.html.liquid | 200 +++++++++++ .../_topic_maincategory_leftnav.html.liquid | 61 ++++ .../filtered-catalog.html.liquid | 199 +++++++++++ .../homepage.html.liquid | 150 ++++---- .../__pycache__/Apikeys.cpython-313.pyc | Bin 0 -> 1876 bytes Scripts/API_Tests/add-pgaids.py | 4 +- Scripts/API_Tests/medialib_csv.py | 17 +- 20 files changed, 2378 insertions(+), 90 deletions(-) create mode 100644 Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_calendar.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_cards_course_banner.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_categorie_courses.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_content_by_certificates.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_dashboard_ongoing_training.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_homepage_basic_notstarted_courses.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_homepage_featured_courses.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_homepage_inprogress_courses.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_homepage_quick_learn.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_homepage_quicklearn_courses.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_progress_tracker.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_subcategorie_courses.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_topic_maincategory_leftnav.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/filtered-catalog.html.liquid create mode 100644 Scripts/API_Tests/__pycache__/Apikeys.cpython-313.pyc diff --git a/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_calendar.html.liquid b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_calendar.html.liquid new file mode 100644 index 00000000..542f1a8c --- /dev/null +++ b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_calendar.html.liquid @@ -0,0 +1,325 @@ + +{% for training_event in training_events.available %} + {% for session in training_event.sessions %} + + {% endfor %} + {% endfor %} + + + +
+
+
+
+
+ +
+

""

+
+ +
+ +
+ +
+
Su
+
Mo
+
Tu
+
We
+
Th
+
Fr
+
Sa
+
+
+
+
Today
+ +
+
+ + + + diff --git a/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_cards_course_banner.html.liquid b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_cards_course_banner.html.liquid new file mode 100644 index 00000000..1b74d0a5 --- /dev/null +++ b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_cards_course_banner.html.liquid @@ -0,0 +1,43 @@ +{% capture course_path %}{% route course, id: course.id %}{% endcapture %} + +
+
+ {% if course.ribbon %} +
+ {{ course.ribbon }} +
+ {% endif %} + + {{ course.name }} +
+
+

+ {{ course.name }} +

+
+
+
+ {{ course.short_description }} +
+ +
+
+
+ + diff --git a/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_categorie_courses.html.liquid b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_categorie_courses.html.liquid new file mode 100644 index 00000000..b52ab438 --- /dev/null +++ b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_categorie_courses.html.liquid @@ -0,0 +1,203 @@ +
+
+
+ {{categorie_name }} +
+
+ + +
+
+ {% if courses.in_catalog.size > 0 %} + {% assign courseids = "" %} + {% for course in courses.in_catalog %} + {% for cat in course.categories %} + {% if cat.name contains categorie_name %} + {% assign courseids = courseids | append: course.id | append: ":" %} + {% endif %} + {% endfor %} + {% endfor %} + {% assign tempArr = courseids | split: ":" %} + {% assign idArr = tempArr | uniq %} + + + {% assign courses_count = 0 %} +
+
+ {% for course in courses.in_catalog %} + {% for id in idArr %} + {% if course.id == id %} + {% assign courses_count = courses_count | plus: 1 %} +
+ {% include "cards_course" with course %} +
+ {% endif %} + {% endfor %} + {% endfor %} +
+
+ + {% if courses_count > 0 %} + {% comment %}
+ See more +
{% endcomment %} + {% else %} + + + {% endif %} + {% else %} + + {% endif %} +
+ + + + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_content_by_certificates.html.liquid b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_content_by_certificates.html.liquid new file mode 100644 index 00000000..d347538f --- /dev/null +++ b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_content_by_certificates.html.liquid @@ -0,0 +1,55 @@ + + +
+ {% for learning_path in learning_paths.available %} + {% if learning_path.has_certificate? %} + +
+
+ {{ learning_path.name }} +
+
+
+
+ {% endif %} + {% endfor %} +
+ + diff --git a/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_dashboard_ongoing_training.html.liquid b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_dashboard_ongoing_training.html.liquid new file mode 100644 index 00000000..23affa54 --- /dev/null +++ b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_dashboard_ongoing_training.html.liquid @@ -0,0 +1,194 @@ +
+
+
+ Ongoing Training +
+ +
+ {% if items.size > 0 %} + {% assign ongoing_courses_count = 0 %} +
+
+ {% for course in items %} + {% if course.properties.is_article_course == false %} + {% if course.progress > 0 and course.progress < 100 %} + {% assign ongoing_courses_count = ongoing_courses_count | plus: 1 %} +
+ {% include "cards_course_banner" with course %} +
+ {% endif %} + {% endif %} + {% endfor %} +
+
+ + {% if ongoing_courses_count > 0 %} +
+ See more +
+ {% else %} + + + {% endif %} + {% else %} + + {% endif %} +
+ + + + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_homepage_basic_notstarted_courses.html.liquid b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_homepage_basic_notstarted_courses.html.liquid new file mode 100644 index 00000000..56361fb6 --- /dev/null +++ b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_homepage_basic_notstarted_courses.html.liquid @@ -0,0 +1,186 @@ +
+
+
+ Available Content +
+ +
+ {% if items.size > 0 %} + {% assign available_courses_count = 0 %} +
+
+ {% for course in items %} + {% if course.started? == false %} + {% assign available_courses_count = available_courses_count | plus: 1 %} + +
+ {% include "cards_course_ongoing" with course %} +
+ {% endif %} + {% endfor %} +
+
+ + {% if available_courses_count > 0 %} +
+ See more +
+ {% else %} + + + {% endif %} + {% else %} + + {% endif %} +
+ + + + + + diff --git a/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_homepage_featured.html.liquid b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_homepage_featured.html.liquid index c32b8185..c175ac12 100644 --- a/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_homepage_featured.html.liquid +++ b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_homepage_featured.html.liquid @@ -27,8 +27,8 @@ {% if is_featured %} {% assign featured_courses_count = featured_courses_count | plus: 1 %} - - +{% endif %} + + {% endif %} + {% else %} + + {% endif %} + + + + + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_topic_maincategory_leftnav.html.liquid b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_topic_maincategory_leftnav.html.liquid new file mode 100644 index 00000000..e7dc3d7b --- /dev/null +++ b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/_topic_maincategory_leftnav.html.liquid @@ -0,0 +1,61 @@ +{% assign categories = current_school.filterable_categories %} + +{% assign categoryname = "" %} +{% for category in categories %} + {% assign categoryfullname = category.name %} + {% assign nameArr = categoryfullname | remove: '[' | split: "]" %} + {% assign categoryname = categoryname | append: nameArr[0] | append: ',' %} +{% endfor %} +{% assign tempArr = categoryname | split: "," %} +{% assign catArr = tempArr | uniq %} + +
+ {% for catname in catArr %} + +
+
+ {{ catname }} +
+
+
+
+ {% endfor %} +
+ + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/filtered-catalog.html.liquid b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/filtered-catalog.html.liquid new file mode 100644 index 00000000..5c6052e9 --- /dev/null +++ b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/filtered-catalog.html.liquid @@ -0,0 +1,199 @@ +{% include "header" %} +{% include "course_version_outdated_alert", courses: courses.in_catalog %} +{% include "sub_navigation" %} +{% assign catnamefromurl = params['catname'] %} +{% assign catnamefromurl = catnamefromurl | url_decode %} +
+
+
+
{{ catnamefromurl }}
+
+
+
+
+ +
+ +
+ + {% for category in sorted_categories %} + {% if category.name contains catnamefromurl %} + {% include "subcategorie_courses" categorie_fullname: category.name %} + {% endif %} + {% endfor %} + + + + +
+{% include "footer" %} + + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/homepage.html.liquid b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/homepage.html.liquid index 2cef5398..909bbd08 100644 --- a/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/homepage.html.liquid +++ b/Custom_Templates/customer_templates/Walmart Scintilla Dev Copy/homepage.html.liquid @@ -77,9 +77,15 @@ {{ homepage.headline }}
-
- {{ homepage.subheadline }} -
+ {% if basic_3p_user %} +
+ + + + {% else %} +
+ {{ homepage.subheadline }} +