From ad5a26d5d8fd383386e58e57e53045f06322eed3 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Wed, 3 Jan 2024 16:22:53 -0500 Subject: [PATCH] Updated some Zenjob templates. Walmart notes. Need to figure out a new virtualenvironment for running scripts. --- .../customer_templates/Zenjob/.DS_Store | Bin 0 -> 6148 bytes .../Zenjob/_header.html.liquid | 35 ++-- ...learning_path_progress_and_cta.html.liquid | 88 +++++++++- .../Zenjob/homepage.html.liquid | 2 +- .../Zenjob/learning_path_summary.html.liquid | 159 ++++++++++++++++++ CustomerNotes/Walmart/Walmart.md | 8 + Scripts/API_Tests/get_course_ids.py | 2 + 7 files changed, 280 insertions(+), 14 deletions(-) create mode 100644 Custom_Templates/customer_templates/Zenjob/.DS_Store create mode 100644 Custom_Templates/customer_templates/Zenjob/learning_path_summary.html.liquid diff --git a/Custom_Templates/customer_templates/Zenjob/.DS_Store b/Custom_Templates/customer_templates/Zenjob/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 + > + Menü + Menu + + {% endif %} @@ -249,12 +255,7 @@ body.mobile-menu-open .np-header { } .np-header-logo-image { - height:30px; -} - -.np-header .fa-bars { - font-size: 28px; - color: #fff; + height:27px; } .np-header-mobile-menu-nav { @@ -309,9 +310,21 @@ body.mobile-menu-open .np-header { top: 19px; } -.np-header-mobile-menu-nav-button.np-header-font-color, .np-header-mobile-menu-content-name { color:#fff;} +.np-header-mobile-menu-nav-button { + background-color:#fff; + color: #3e1191; + width: auto; + font-size: 16px; +} + +.np-header-mobile-menu-nav-button i.fa-bars, +.np-header-mobile-menu-nav-button i.fa-times { + font-size:20px; + margin-left:8px; +} + @media screen and ( min-width: 48rem ) { .np-header-logo { padding: 1.25rem 0; @@ -383,7 +396,7 @@ body.mobile-menu-open .np-header { color:#fff; align-items:center; position:relative; - margin-right:8px; + margin-right:12px; } .header-language-selection:after { content: "\f078"; diff --git a/Custom_Templates/customer_templates/Zenjob/_learning_path_progress_and_cta.html.liquid b/Custom_Templates/customer_templates/Zenjob/_learning_path_progress_and_cta.html.liquid index 28f38a97..c7ec1afe 100644 --- a/Custom_Templates/customer_templates/Zenjob/_learning_path_progress_and_cta.html.liquid +++ b/Custom_Templates/customer_templates/Zenjob/_learning_path_progress_and_cta.html.liquid @@ -26,7 +26,91 @@ not started {% endif %} - + + {% if learning_path.enrolled? %} + {% learning_path_next_step_button learning_path, class: "np-button-font-color np-button lp-start-button" %} + {% else %} + {% learning_path_next_step_button learning_path, class: "np-button-font-color np-button lp-enroll-button np-hidden" %} + {% endif %} + - \ No newline at end of file + + + + + diff --git a/Custom_Templates/customer_templates/Zenjob/homepage.html.liquid b/Custom_Templates/customer_templates/Zenjob/homepage.html.liquid index 5f33200b..c9fbf970 100644 --- a/Custom_Templates/customer_templates/Zenjob/homepage.html.liquid +++ b/Custom_Templates/customer_templates/Zenjob/homepage.html.liquid @@ -19,7 +19,7 @@ {{ homepage.headline }}
- Entschuldigung! Es scheint, dass deine E-Mail-Adresse {{current_person.email}} nicht den richtigen Zugang erhalten hat. Es kann nach der Registrierung bis zu 24h dauern, bis du freigeschalten wirst. Sollte das Problem danach weiterhin bestehen, wende dich an talents@zenjob.com, um den Zugang zu den vollständigen Lerninhalten anzufragen. + Ups, hier ist etwas schief gelaufen. Bitte stelle sicher, dass du die aktuellste App Version installiert hast und öffne den Zenjob Online Campus erneut über "Profil" > "Trainings & Equipment". Danach solltest du diese Seite problemlos öffnen können.
diff --git a/Custom_Templates/customer_templates/Zenjob/learning_path_summary.html.liquid b/Custom_Templates/customer_templates/Zenjob/learning_path_summary.html.liquid new file mode 100644 index 00000000..4c847698 --- /dev/null +++ b/Custom_Templates/customer_templates/Zenjob/learning_path_summary.html.liquid @@ -0,0 +1,159 @@ +{% include "header", current_page_orgin: "learning_paths" %} + +{% assign lp_items_all_optional = true %} +{% for item in learning_path.items %} + {% unless item.optional? %} + {% assign lp_items_all_optional = false %} + {% endunless %} +{% endfor %} + +
+ +{% include "learning_path_banners" %} + +{% assign learning_path_image_full_size = learning_path.image_url | replace: '/resize=width:820,height:500,fit:crop/', '/' %} + +
+ +
+
+
+
+
+ {{ learning_path.name }} +
+
+
+
+ {% if learning_path.description and learning_path.description.size > 0 %} + {% include "learning_path_description" %} + {% endif %} + + {% if learning_path.instructors and learning_path.instructors.any? %} +
+ {% include "learning_path_instructors" %} +
+ + {% endif %} + +
+
+
+
+
+
+ {% include "learning_path_progress_and_cta" %} +
+ {% include "learning_path_outline" %} +
+ +
+
+{% include "footer" %} + + \ No newline at end of file diff --git a/CustomerNotes/Walmart/Walmart.md b/CustomerNotes/Walmart/Walmart.md index 2c999c33..696ce836 100644 --- a/CustomerNotes/Walmart/Walmart.md +++ b/CustomerNotes/Walmart/Walmart.md @@ -921,3 +921,11 @@ curl --location --request POST 'https://firebasedynamiclinks.googleapis.com/v1/s * This will go to a course. Faisal UUID: 518512cd-c43e-4ed2-b9ed-0a7719ad947f + + +## 1/3/2023 + +### Feedback Mechanism + +Connect with Matt (matt.krise@walmart.com), a UX Designer +TODO: Talk to Rob about what is even possible. diff --git a/Scripts/API_Tests/get_course_ids.py b/Scripts/API_Tests/get_course_ids.py index 028b68b4..b4f274e2 100644 --- a/Scripts/API_Tests/get_course_ids.py +++ b/Scripts/API_Tests/get_course_ids.py @@ -7,6 +7,7 @@ HEADERS = { "X-Api-Key": APIKEY, } + def get_courses(): """ Function to get courses and their IDs @@ -30,5 +31,6 @@ def get_courses(): break print(list_of_ids) + if __name__ == "__main__": get_courses()