diff --git a/Custom_Templates/customer_templates/Blacklane-Chauffeurs/_header.html.liquid b/Custom_Templates/customer_templates/Blacklane-Chauffeurs/_header.html.liquid index b4c75457..e24513fa 100644 --- a/Custom_Templates/customer_templates/Blacklane-Chauffeurs/_header.html.liquid +++ b/Custom_Templates/customer_templates/Blacklane-Chauffeurs/_header.html.liquid @@ -1,35 +1,14 @@ -{% if current_person.signed_in? == false %} - -{% else %} - {% if current_person.properties.learner_completed_additional_info == false %} - {% unless current_person.email contains '+preview-' %} - - {% endunless %} - {% else %} - - {% endif %} -{% endif %} +
diff --git a/Custom_Templates/customer_templates/Blacklane-Chauffeurs/sign-up-follow-up.html.liquid b/Custom_Templates/customer_templates/Blacklane-Chauffeurs/sign-up-follow-up.html.liquid index 80b21a9a..fa3d44ae 100644 --- a/Custom_Templates/customer_templates/Blacklane-Chauffeurs/sign-up-follow-up.html.liquid +++ b/Custom_Templates/customer_templates/Blacklane-Chauffeurs/sign-up-follow-up.html.liquid @@ -1,4 +1,3 @@ - + +
+ + +
+ + + +{% include "messages" %} +
+ + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_learning_path_course.html.liquid b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_learning_path_course.html.liquid new file mode 100644 index 00000000..bbefe65f --- /dev/null +++ b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_learning_path_course.html.liquid @@ -0,0 +1,55 @@ +{% if learning_path.enrolled? and course.unlocked? %} + +
+ {{ course.name }} +
+
+ {{ course.name }} +
+ {% if course.instructors %} +
+ {{ course.instructors }} +
+ {% endif %} +
+ {% t shared.progress, count: course.progress %} +
+
+ + {% if course.optional? %} +
+ {% t shared.optional %} +
+ {% endif %} +
+
+{% else %} +
+
+ {{ course.name }} +
+
+ {{ course.name }} +
+
+ {% if course.optional? %} +
+ {% t shared.optional %} +
+ {% endif %} +
+
+{% endif %} diff --git a/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_learning_path_training_session.html.liquid b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_learning_path_training_session.html.liquid new file mode 100644 index 00000000..8c5ae377 --- /dev/null +++ b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_learning_path_training_session.html.liquid @@ -0,0 +1,52 @@ +{% if learning_path.enrolled? and training_session.unlocked? %} + +
+ +
+
{{ training_session.name }}
+
{{ training_session.instructors }}
+
+ {{ training_session.time }} {{ training_session.time_zone }} +
+
+ + {% if training_session.optional? %} +
+ {% t shared.optional %} +
+ {% endif %} +
+
+{% else %} +
+
+ +
+
{{ training_session.name }}
+
{{ training_session.caption }}
+
+ {% if training_session.optional? %} +
+ {% t shared.optional %} +
+ {% endif %} +
+
+{% endif %} diff --git a/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_learning_paths_index.html.liquid b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_learning_paths_index.html.liquid new file mode 100644 index 00000000..1c9fe93a --- /dev/null +++ b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_learning_paths_index.html.liquid @@ -0,0 +1,16 @@ +{% if learning_paths.available.any? %} +
+ {% for learning_path in learning_paths.available %} +
+ {% include "cards_learning_path" with learning_path %} +
+ {% endfor %} +
+{% else %} + {% capture message %} + {% t shared.zero_state.courses.catalog, + key: current_school.course_vocabulary + %} + {% endcapture %} + {% include "courses_zero_state", message: message %} +{% endif %} diff --git a/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_other_events_index.html.liquid b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_other_events_index.html.liquid new file mode 100644 index 00000000..629b2b84 --- /dev/null +++ b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_other_events_index.html.liquid @@ -0,0 +1,13 @@ +
+
+
+ {% include "cards_other_event" title: "SPS Commerce presents MAPADOC Training for Sage 100", link: "https://www.spscommerce.com/lp/mapadoc-training-sage-100/" %} +
+
+ {% include "cards_other_event" title: "SPS Commerce presents MAPADOC Training for Sage X3", link: "https://www.spscommerce.com/lp/mapadoc-training-sage-x3/" %} +
+
+ {% include "cards_other_event" title: "SPS Commerce presents MAPADOC Training for Sage 500", link: "https://www.spscommerce.com/lp/mapadoc-training-sage-500/" %} +
+
+
diff --git a/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_sub_navigation.html.liquid b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_sub_navigation.html.liquid new file mode 100644 index 00000000..e69de29b diff --git a/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_training_events_index.html (1).liquid b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_training_events_index.html (1).liquid new file mode 100644 index 00000000..4a5c6132 --- /dev/null +++ b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_training_events_index.html (1).liquid @@ -0,0 +1,41 @@ +
+ {% if training_events.available.any? %} +
+ {% for training_event in training_events.available %} +
+ {% include "cards_training_event" with training_event %} +
+ {% endfor %} +
+ {% else %} + {% include "training_events_zero_state" %} + {% endif %} +
+ diff --git a/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_training_events_index.html.liquid b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_training_events_index.html.liquid new file mode 100644 index 00000000..4a5c6132 --- /dev/null +++ b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/_training_events_index.html.liquid @@ -0,0 +1,41 @@ +
+ {% if training_events.available.any? %} +
+ {% for training_event in training_events.available %} +
+ {% include "cards_training_event" with training_event %} +
+ {% endfor %} +
+ {% else %} + {% include "training_events_zero_state" %} + {% endif %} +
+ diff --git a/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/catalog.html.liquid b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/catalog.html.liquid new file mode 100644 index 00000000..cb7a3bbb --- /dev/null +++ b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/catalog.html.liquid @@ -0,0 +1,34 @@ +{% include "header" %} +{% include "course_version_outdated_alert", courses: courses.in_catalog %} +{% include "sub_navigation" %} +
+
+
+
{{ catalog.headline }}
+
{{ catalog.subheadline }}
+
+ {% capture label %}{% t shared.filters.by_category %}{% endcapture %} + + {% if courses.in_catalog.any? %} + {% + include "filter_dropdown", + filters: courses.filters, + key: "category_uuid", + label: label + %} + {% endif %} +
+ {% include "courses_catalog" %} +
+{% include "footer" %} + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/course.html.liquid b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/course.html.liquid new file mode 100644 index 00000000..f052eb18 --- /dev/null +++ b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/course.html.liquid @@ -0,0 +1,60 @@ +{% include "header_minimal" %} +
+
+ {% include "course_desktop_view" %} +
+
+ {% include "course_mobile_view" %} +
+
+ + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/dashboard.html.liquid b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/dashboard.html.liquid new file mode 100644 index 00000000..a9d761d1 --- /dev/null +++ b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/dashboard.html.liquid @@ -0,0 +1,291 @@ +{% include "header" %} +{% include "course_version_outdated_alert", courses: courses.enrolled %} +{% include "sub_navigation" %} +
+
+
+
+ My Webinars +
+ {% if training_events.enrolled and training_events.enrolled.size > 0 %} + {% for training_event in training_events.enrolled %} + {% for session in training_event.sessions %} + {% if session.registered? %} +
+ On {{ session.month }} {{ session.day }} at {{ session.starts }} {{ session.time_zone }} is your {{ session.title }} event that is being held online + Join +
+ {% endif %} + {% endfor %} + {% endfor %} + {% else %} +
+ You haven't registered for any webinars yet. +
+ + {% endif %} +
+
+
+ My Paths +
+
+ Learning Paths in which you're currently enrolled +
+ {% if learning_paths.enrolled and learning_paths.enrolled.size > 0 %} +
+
+
Filter by:
+ {% assign lp_categories = '' | split: '' %} + {% for lp in learning_paths.enrolled %} + {% for cat in lp.categories %} + {% assign cat_name = cat.name | split: '!@#$%^&*()' %} + {% assign lp_categories = lp_categories | concat: cat_name %} + {% endfor %} + {% endfor %} + {% assign lp_categories = lp_categories | uniq %} +
+ All +
+ {% for cat in lp_categories %} +
+ {{cat}} +
+ {% endfor %} +
+
+ {% for learning_path in learning_paths.enrolled %} + {% include 'cards_learning_path_new' with learning_path %} + {% endfor %} +
+
+ {% else %} +
+ You haven't enrolled into any learning_paths yet. +
+ + {% endif %} +
+
+
+ My Courses +
+
+ Courses in which you're currently enrolled +
+ {% if courses.enrolled and courses.enrolled.size > 0 %} +
+
+
Filter by:
+ {% assign lp_categories = '' | split: '' %} + {% for lp in courses.enrolled %} + {% for cat in lp.categories %} + {% assign cat_name = cat.name | split: '!@#$%^&*()' %} + {% assign lp_categories = lp_categories | concat: cat_name %} + {% endfor %} + {% endfor %} + {% assign lp_categories = lp_categories | uniq %} +
+ All +
+ {% for cat in lp_categories %} +
+ {{cat}} +
+ {% endfor %} +
+
+ {% for course in courses.enrolled %} + {% include 'cards_course_new' with course %} + {% endfor %} +
+
+ {% else %} +
+ You haven't enrolled into any courses yet. +
+ + {% endif %} +
+
+
+{% include "footer" %} + + + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/homepage.html.liquid b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/homepage.html.liquid new file mode 100644 index 00000000..9e22bed6 --- /dev/null +++ b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/homepage.html.liquid @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/learning_path.html.liquid b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/learning_path.html.liquid new file mode 100644 index 00000000..7e12704c --- /dev/null +++ b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/learning_path.html.liquid @@ -0,0 +1,50 @@ +{% include "header_minimal" %} +
+
+ {% include "learning_path_desktop_view" %} +
+
+ {% include "learning_path_mobile_view" %} +
+
+ + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/learning_paths.html.liquid b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/learning_paths.html.liquid new file mode 100644 index 00000000..58203d14 --- /dev/null +++ b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/learning_paths.html.liquid @@ -0,0 +1,23 @@ +{% include "header" %} +{% include "sub_navigation" %} +
+
+
+
{% t shared.learning_paths %}
+
{% t .subtitle %}
+
+
+ {% include "learning_paths_index" %} +
+{% include "footer" %} + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/styles.css.liquid b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/styles.css.liquid new file mode 100644 index 00000000..ffb95481 --- /dev/null +++ b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/styles.css.liquid @@ -0,0 +1,21 @@ + /* + Put your custom overlay styles in here + You can use your northpass color palette in this file + +{{ color_palette.button_font_color }} +{{ color_palette.button_color }} +{{ color_palette.button_hover_color }} +{{ color_palette.header_font_color }} +{{ color_palette.header_font_hover_color }} +{{ color_palette.header_color }} +*/ + +.np-subpage-container { + padding:80px 4% 184px; + } + .np-max-width { + justify-content:space-between; + margin:auto; + max-width: none; + } + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/training_events.html.liquid b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/training_events.html.liquid new file mode 100644 index 00000000..b9ddb896 --- /dev/null +++ b/Custom_Templates/customer_templates/SPS_Commerce/SPS-New/training_events.html.liquid @@ -0,0 +1,130 @@ +{% include "header" %} +{% include "sub_navigation" %} +
+
+
+
+ {% t .title %} +
+
+ {% t .subtitle %} +
+
+
+ {% include "training_events_filter" %} +
+
+ {% include "training_events_index" %} + +
+
+
+ Fulfillment Webinars +
+
+
+ {% include "fullfilment_events_index" %} +
+
+
+ Other Training Events +
+
+
+ {% include "other_events_index" %} +
+{% include "footer" %} + + diff --git a/Scripts/API_Tests/__pycache__/Apikeys.cpython-311.pyc b/Scripts/API_Tests/__pycache__/Apikeys.cpython-311.pyc index 4ec431a2..2e5738ee 100644 Binary files a/Scripts/API_Tests/__pycache__/Apikeys.cpython-311.pyc and b/Scripts/API_Tests/__pycache__/Apikeys.cpython-311.pyc differ diff --git a/Scripts/API_Tests/get-groups-filtering.py b/Scripts/API_Tests/get-groups-filtering.py new file mode 100644 index 00000000..05b287cd --- /dev/null +++ b/Scripts/API_Tests/get-groups-filtering.py @@ -0,0 +1,10 @@ +import Apikeys +import requests + +company = "EJP" +url = f"https://api.northpass.com/v2/groups?filter[name][eq]={company}" +apikey = Apikeys.DATASNIPPER +headers = {"X-Api-Key":apikey} + +response = requests.get(url, headers=headers) +print(response.text) diff --git a/Scripts/js-date.js b/Scripts/js-date.js new file mode 100644 index 00000000..4d4b1bc8 --- /dev/null +++ b/Scripts/js-date.js @@ -0,0 +1,10 @@ + //let jsDate = new Date(); + //let jsFormattedDate = jsDate.getFullYear() + ("0" + (jsDate.getMonth() + 1)).slice(-2) + ("0" + jsDate.getDate()).slice(-2); + //let liquidFormattedDate = '{{ "now" | date: "%Y%m%d" }}'; + //let personCreateDate = moment.unix('{{ current_person.created_at }}').formate("%Y%m%d"); + //console.log(jsFormattedDate); + //console.log(liquidFormattedDate); + //console.log(personCreateDate) + // + let dateTest = "2022-04-13 15:00:03 +0000".split(" ")[0] + console.log(dateTest)