diff --git a/Custom_Templates/customer_templates/.DS_Store b/Custom_Templates/customer_templates/.DS_Store index 465828fc..31ae77ac 100644 Binary files a/Custom_Templates/customer_templates/.DS_Store and b/Custom_Templates/customer_templates/.DS_Store differ diff --git a/Custom_Templates/customer_templates/Artera_sandbox/dashboard.html.liquid b/Custom_Templates/customer_templates/Artera_sandbox/dashboard.html.liquid index 42c2692f..b62b1b0d 100644 --- a/Custom_Templates/customer_templates/Artera_sandbox/dashboard.html.liquid +++ b/Custom_Templates/customer_templates/Artera_sandbox/dashboard.html.liquid @@ -18,7 +18,7 @@ {% include "in_progress_learning_paths_index", items: learning_paths.enrolled %} - +
Enrolled Learning Paths @@ -56,14 +56,19 @@
- {% if features.training_events? %}
{% t .upcoming_events %}
- {% include "training_events_dashboard" %} +
+ +
- {% endif %} {% include "footer" %} @@ -88,4 +93,13 @@ margin: 20px 0 20px; } } - \ No newline at end of file +.iframe_div { + display: block; + overflow: hidden; + width: 100%; + height: 400px; + border-radius: 12px; + transform: translateZ(0px); + border: 3px solid #9E7DFF; +} + diff --git a/Custom_Templates/customer_templates/Artera_sandbox/training_events.html.liquid b/Custom_Templates/customer_templates/Artera_sandbox/training_events.html.liquid new file mode 100644 index 00000000..a39b1585 --- /dev/null +++ b/Custom_Templates/customer_templates/Artera_sandbox/training_events.html.liquid @@ -0,0 +1,33 @@ +{% include "header" %} +{% include "sub_navigation" %} +
+
+
+ +
+
+{% include "footer" %} + + + diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_account_avatar.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_account_avatar.html.liquid new file mode 100644 index 00000000..cb40a1db --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_account_avatar.html.liquid @@ -0,0 +1,66 @@ +
+

{% t .description %}

+

{% t .requirements %}

+
+ + + + +
+
+ +
+ +
+ +
+
+ +
+
diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_account_form.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_account_form.html.liquid new file mode 100644 index 00000000..1ce4e283 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_account_form.html.liquid @@ -0,0 +1,93 @@ +
+ {% t .header %} +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +{% unless form.options.invite? %} +
+ + +
+{% endunless %} + +{% if form.options.invite? %} +
+ +
+ {% t .terms_of_service %} +
+
+ + +{% endif %} diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_arabic_lang.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_arabic_lang.html.liquid new file mode 100644 index 00000000..89eb1626 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_arabic_lang.html.liquid @@ -0,0 +1,468 @@ + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_cards_course.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_cards_course.html.liquid new file mode 100644 index 00000000..511bf306 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_cards_course.html.liquid @@ -0,0 +1,40 @@ +
+
+ {% if course.ribbon %} +
+ {{ course.ribbon }} +
+ {% endif %} + {{ course.name }} +
+

+ {{ course.name }} +

+
+ {{ course.instructor_names }} +
+ +
+
+
diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_cards_learning_path.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_cards_learning_path.html.liquid new file mode 100644 index 00000000..f9230868 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_cards_learning_path.html.liquid @@ -0,0 +1,108 @@ +{%comment%}{% if learning_path.progress == 0%} + {% assign wrapperClassBar = "np-button-background-color np-card-progress-bar red-bar"%} + {% assign wrapperClassText = "np-card-content-progress np-button-color red-text"%} + {% assign wrapperClassStatus = "np-card-content-progress np-button-color red-text"%} +{% else if learning_path.progress > 0 and learning_path.progress < 100%} + {% assign wrapperClassBar = "np-button-background-color np-card-progress-bar yellow-bar"%} + {% assign wrapperClassText = "np-card-content-progress np-button-color yellow-text"%} + {% assign wrapperClassStatus = "np-card-content-progress np-button-color yellow-text"%} +{% else %} + {% assign wrapperClassBar = "np-button-background-color np-card-progress-bar green-bar"%} + {% assign wrapperClassText = "np-card-content-progress np-button-color green-text"%} + {% assign wrapperClassStatus = "np-card-content-progress np-button-color green-text"%} +{% endif %}{%endcomment%} + +{% if learning_path.enrolled? %} +{% assign lp_courses_count = 0 | times: 1 %} +{% assign sum_of_progress = 0.0 | times: 1 %} +{% for item in learning_path.items %} + {% if item.course? %} + {% assign lp_courses_count = lp_courses_count | plus: 1 %} + {% assign sum_of_progress = sum_of_progress | plus: item.progress %} + {% endif %} +{% endfor %} +{% if lp_courses_count == 0 %} + {% assign lp_progress = 0 %} +{% else %} + {% assign lp_progress = sum_of_progress | divided_by: lp_courses_count | round %} +{% endif %} +{% else %} +{% assign lp_progress = 0 %} +{% endif %} + + +
+
+
+ {{ learning_path.name }} +
+
+ +
{% t shared.learning_path.title %}
+
+ {{ learning_path.items.count }} {% t .items %} +
+
+
+
{% t shared.learning_path.title %}
+ +
+ +
+

+ {{ learning_path.name }} +

+ +
+ {{ learning_path.instructor_names }} +
+ +
+ {{ learning_path.description }} +
+ + {% if lp_progress > 0 %} +
+

{{ lp_progress }}%

Complete

+
+ {% else %} +
+ Not started +
+ {% endif %} + +
+
+
+
+ + +
+
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_course_activity_locked.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_course_activity_locked.html.liquid new file mode 100644 index 00000000..011f9303 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_course_activity_locked.html.liquid @@ -0,0 +1,11 @@ + +{% assign activity_title = activity.title | split: ' ~ ' %} +{% if activity_title.size > 1 %} +
+ {{ activity_title[1] | strip }} +
+{% endif %} + + {{ activity_title[0] | strip }} + + diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_course_activity_unlocked.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_course_activity_unlocked.html.liquid new file mode 100644 index 00000000..be3b597d --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_course_activity_unlocked.html.liquid @@ -0,0 +1,15 @@ +{% assign activity_title = activity.title | split: '~' %} +{% if activity_title.size > 1 %} +
+ {{ activity_title[1] | strip }} +
+{% endif %} + + {{ activity_title[0] | strip }} + diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_course_outline.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_course_outline.html.liquid new file mode 100644 index 00000000..fce14737 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_course_outline.html.liquid @@ -0,0 +1,191 @@ + +
+
+ {% t .header, key: current_school.course_vocabulary %} +
+
+
    + {% for section in course.sections %} + {% comment %}
  1. +
    + {{ section.name }} +
    +
      + {% for activity in section.activities %} + +
    1. + {% if activity.completed? %} + + {% if activity.locked? %} + {% include "course_activity_locked" %} + {% else %} + {% include "course_activity_unlocked", class: "np-course-outline-content-activity-link-completed" %} + {% endif %} +
      +
      + {% else %} + + {% if activity.locked? %} + {% include "course_activity_locked" %} + {% else %} + {% include "course_activity_unlocked", class: "np-course-outline-content-activity-link" %} + {% endif %} +
      + {% endif %} +
    2. + {% endfor %} +
    +
  2. {% endcomment %} +
    +
    + +
    +
    + {{ section.name }} +
    +
    +
    +
    +
    +
      + {% for activity in section.activities %} + +
    1. + {% if activity.completed? %} + + {% if activity.locked? %} + {% include "course_activity_locked" %} + {% else %} + {% include "course_activity_unlocked", class: "np-course-outline-content-activity-link-completed" %} + {% endif %} +
      + {%comment%}
      {%endcomment%} + {% else %} + + {% if activity.locked? %} + {% include "course_activity_locked" %} + {% else %} + {% include "course_activity_unlocked", class: "np-course-outline-content-activity-link" %} + {% endif %} +
      + {% endif %} +
    2. + {% endfor %} +
    +
    +
    +
    + {% endfor %} +
+
+
+ + + + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_course_progress_and_cta.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_course_progress_and_cta.html.liquid new file mode 100644 index 00000000..f2f12815 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_course_progress_and_cta.html.liquid @@ -0,0 +1,57 @@ +{%comment%}{% if course.progress == 0%} + {% assign wrapperClassBar = "np-button-background-color np-card-progress-bar red-bar"%} + {% assign wrapperClassStatus = "np-card-content-progress np-button-color red-text"%} +{% else if course.progress > 0 and course.progress < 100%} + {% assign wrapperClassBar = "np-button-background-color np-card-progress-bar yellow-bar"%} + {% assign wrapperClassStatus = "np-card-content-progress np-button-color yellow-text"%} +{% else %} + {% assign wrapperClassBar = "np-button-background-color np-card-progress-bar green-bar"%} + {% assign wrapperClassStatus = "np-card-content-progress np-button-color green-text"%} +{% endif %}{%endcomment%} + +
+
+ {% t .header %} +
+
+
+
+
+ +
+ {% t shared.progress, count: course.progress %} +
+
+ +{% if course.learner_can_retake? %} +
+ {% form_authenticity_token %} + +
+{% else %} + + {% if course.enrolled? == false %} + {% t shared.enroll %} + {% elsif course.started? == false %} + {% t shared.course.start, key: current_school.course_vocabulary %} + {% elsif course.completed? %} + {% t shared.course.view, key: current_school.course_vocabulary %} + {% else %} + {% t shared.continue %} + {% endif %} + +{% endif %} + diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_footer.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_footer.html.liquid new file mode 100644 index 00000000..055969d4 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_footer.html.liquid @@ -0,0 +1,97 @@ + + + diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_french_lang.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_french_lang.html.liquid new file mode 100644 index 00000000..85785a09 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_french_lang.html.liquid @@ -0,0 +1,468 @@ + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_header.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_header.html.liquid new file mode 100644 index 00000000..eef130e8 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_header.html.liquid @@ -0,0 +1,316 @@ +
+
+
+ {% if current_person.signed_in? %} + + + {% endif %} +
+ {% if current_school.logo_url %} +

+ + {{ current_school.name }} + +

+ {% else %} + + {{ current_school.name }} + + {% endif %} + +
+ +
+ + {% if current_person.signed_in? %} + {% assign current_language = "English" %} + {% if current_person.properties.language == "en" %} + {% assign current_language = "English" %} + {% elsif current_person.properties.language == "ru" %} + {% assign current_language = "Pусский" %} + {% elsif current_person.properties.language == "ar" %} + {% assign current_language = "عربي" %} + {% elsif current_person.properties.language == "fr" %} + {% assign current_language = "Français" %} + {% elsif current_person.properties.language == "es" %} + {% assign current_language = "Español" %} + {% endif %} + + + + {% endif %} + + {% if current_person.signed_in? %} + +
+ + +
+ {% else %} +
+ {% endif %} + +
+ +
+
+
+
+ +{% include "messages" %} +{% if current_person.signed_in? %} +{% assign lang = current_person.properties.language %} + +{% case lang %} + {% when "Spanish" %} + {% include "spanish_lang" %} +{% endcase %} + + + + + +{% endif %} + + diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_learning_path_course.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_learning_path_course.html.liquid new file mode 100644 index 00000000..8aa7641c --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_learning_path_course.html.liquid @@ -0,0 +1,57 @@ +{% if learning_path.enrolled? and course.unlocked? %} +
+ +
+ {{ course.name }} +
+
+ {{ course.name }} +
+ {% if course.instructors %} +
+ {{ course.instructors }} +
+ {% endif %} +
+ {{ course.progress }}% Complete +
+
+ + {% comment %} {% if course.optional? %} +
+ {% t shared.optional %} +
+ {% endif %} {% endcomment %} + +
+
+{% else %} +
+
+ {{ course.name }} +
+
+ {{ course.name }} +
+
+ {% if course.optional? %} +
+ {% t shared.optional %} +
+ {% endif %} +
+
+{% endif %} diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_learning_path_description.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_learning_path_description.html.liquid new file mode 100644 index 00000000..c90eb1f0 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_learning_path_description.html.liquid @@ -0,0 +1,6 @@ +

+ {% t .about %} +

+
+ {{ learning_path.description }} +
diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_learning_path_progress_and_cta.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_learning_path_progress_and_cta.html.liquid new file mode 100644 index 00000000..f6e96680 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_learning_path_progress_and_cta.html.liquid @@ -0,0 +1,70 @@ +{%comment%}{% if learning_path.progress == 0%} + {% assign wrapperClassBar = "np-button-background-color np-card-progress-bar red-bar"%} + {% assign wrapperClassStatus = "np-card-content-progress np-button-color red-text"%} +{% else if learning_path.progress > 0 and learning_path.progress < 100%} + {% assign wrapperClassBar = "np-button-background-color np-card-progress-bar yellow-bar"%} + {% assign wrapperClassStatus = "np-card-content-progress np-button-color yellow-text"%} +{% else %} + {% assign wrapperClassBar = "np-button-background-color np-card-progress-bar green-bar"%} + {% assign wrapperClassStatus = "np-card-content-progress np-button-color green-text"%} +{% endif %}{%endcomment%} + +{% if learning_path.enrolled? %} + {% assign lp_courses_count = 0 | times: 1 %} + {% assign sum_of_progress = 0.0 | times: 1 %} + {% for item in learning_path.items %} + {% if item.course? %} + {% assign lp_courses_count = lp_courses_count | plus: 1 %} + {% assign sum_of_progress = sum_of_progress | plus: item.progress %} + {% endif %} + {% endfor %} + {% if lp_courses_count == 0 %} + {% assign lp_progress = 0 %} + {% else %} + {% assign lp_progress = sum_of_progress | divided_by: lp_courses_count | round %} + {% endif %} +{% else %} + {% assign lp_progress = 0 %} +{% endif %} + +{% if learning_path.enrolled? %} +
+
+ {% t .progress %} +
+
+
+
+
+
+ {% t shared.progress, count: lp_progress %} +
+
+{% endif %} + + + {% if learning_path.enrolled? == false %} + {% t shared.enroll %} + {% elsif learning_path.started? == false %} + {% t shared.learning_path.start %} + {% elsif learning_path.completed? %} + {% t shared.learning_path.view %} + {% else %} + {% t shared.continue %} + {% endif %} + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_mcdonalds_theme.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_mcdonalds_theme.html.liquid new file mode 100644 index 00000000..ef02451a --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_mcdonalds_theme.html.liquid @@ -0,0 +1,29 @@ +{% if current_person.properties.company == "McDonalds" %} + + +{% endif %} diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_russian_lang.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_russian_lang.html.liquid new file mode 100644 index 00000000..9018c12a --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_russian_lang.html.liquid @@ -0,0 +1,468 @@ + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_spanish_lang.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_spanish_lang.html.liquid new file mode 100644 index 00000000..499f5e19 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_spanish_lang.html.liquid @@ -0,0 +1,468 @@ + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_sub_navigation.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_sub_navigation.html.liquid new file mode 100644 index 00000000..d814e519 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_sub_navigation.html.liquid @@ -0,0 +1,13 @@ + diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/_training_events_zero_state.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/_training_events_zero_state.html.liquid new file mode 100644 index 00000000..1ecc4d78 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/_training_events_zero_state.html.liquid @@ -0,0 +1,9 @@ +
+
+ {% t .empty %} +
+ {% t .empty %} +
diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/courses.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/courses.html.liquid new file mode 100644 index 00000000..a028acbf --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/courses.html.liquid @@ -0,0 +1,16 @@ + +{% include "header" %} +{% include "course_version_outdated_alert", courses: courses.enrolled %} +{% include "sub_navigation" %} +
+
+ {% t shared.course_vocabulary.plural, key: current_school.course_vocabulary %} +
+
{% t .headline, key: current_school.course_vocabulary %}
+ {% include "courses_index", class: "col-xs-12 col-sm-6 col-lg-4 np-stretch-content" %} +
+{% include "footer" %} diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/dashboard.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/dashboard.html.liquid new file mode 100644 index 00000000..5e4b9c86 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/dashboard.html.liquid @@ -0,0 +1,28 @@ +{% include "header" %} + +{% include "sub_navigation" %} +
+
+
+ {% if features.learning_paths? %} +
+ {% t shared.learning_paths %} +
+ {% include "learning_paths_index", items: learning_paths.enrolled %} + {% endif %} +
+ {% t shared.course_vocabulary.plural, key: current_school.course_vocabulary %} +
+ {% include "courses_index", class: "col-xs-12 col-sm-6 np-stretch-content" %} +
+ {% if features.training_events? %} +
+
+ {% t .upcoming_events %} +
+ {% include "training_events_dashboard" %} +
+ {% endif %} +
+
+{% include "footer" %} \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/learning_paths.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/learning_paths.html.liquid new file mode 100644 index 00000000..adaa84df --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/learning_paths.html.liquid @@ -0,0 +1,14 @@ +{% include "header" %} +{% include "sub_navigation" %} +
+
+
+ {% t shared.learning_paths %} +
+
+ {% t .subtitle %} +
+ {% include "learning_paths_index", items: learning_paths.available %} +
+
+{% include "footer" %} diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/master.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/master.html.liquid new file mode 100644 index 00000000..f4a68a10 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/master.html.liquid @@ -0,0 +1,5 @@ +{% body %} + +{% if current_person.signed_in? %} + {% include "mcdonalds_theme" %} +{% endif %} diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/styles.css.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/styles.css.liquid new file mode 100644 index 00000000..3fa296f6 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/styles.css.liquid @@ -0,0 +1,38 @@ + /* + 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 }} +*/ + +.red-bar{ + background: red; +} + +.red-text, +.red-status{ + color: red; +} + +.yellow-bar{ + background: yellow; +} + +.yellow-text, +.yellow-status{ + color: yellow; +} + +.green-bar{ + background: green; +} + +.green-text, +.green-status{ + color: green; +} \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Harri-McDonalds/training_events.html.liquid b/Custom_Templates/customer_templates/Harri-McDonalds/training_events.html.liquid new file mode 100644 index 00000000..239ef9e5 --- /dev/null +++ b/Custom_Templates/customer_templates/Harri-McDonalds/training_events.html.liquid @@ -0,0 +1,19 @@ +{% include "header" %} +{% include "sub_navigation" %} +
+
+
+
+ {% t .title %} +
+
+ {% t .subtitle %} +
+
+
+ {% include "training_events_filter" %} +
+
+ {% include "training_events_index" %} +
+{% include "footer" %} diff --git a/CustomerNotes/Artera.md b/CustomerNotes/Artera.md index a60179e8..59aa2e05 100644 --- a/CustomerNotes/Artera.md +++ b/CustomerNotes/Artera.md @@ -76,5 +76,18 @@ Questions from Emily: * Jackie's question, if you keep the group the same but add courses, does everyone get the course? * Manager permissions, no "select all" for course assignments. * FIX: If a manager creates a group, they don't OWN the group. The Admin needs to go in and assign that created group. -* TODO: Is there a way to programmatically assign a manager courses, groups, etc? +* FIX:: Is there a way to programmatically assign a manager courses, groups, etc? - NO. * TODO: embed calendar into events page and sidebar of My Courses: 'https://calendar.google.com/calendar/u/0/embed?height=800&wkst=1&bgcolor=%23ecf0f9&ctz=America/Los_Angeles&showTabs=1&mode=AGENDA&title=WELL+Customer+Training+Workshops&showCalendars=1&showNav=1&showTitle=0&showDate=1&showPrint=1&src=Y184ZXM5aGp2Y2g4YnJnZTU2b3VsZXY0NGgzc0Bncm91cC5jYWxlbmRhci5nb29nbGUuY29t&color=%23B39DDB' + +## 03/23/2023 + +### Moving to Prod + +Monday 27th. +Some H1s hiding behind banner. +If it is done on Monday Jackie can then record the video. + +Wrap categories if too long. +Each box is the same height. + +Emily due April 19th. Will then be on parental leave. diff --git a/CustomerNotes/LarsonTexts.md b/CustomerNotes/LarsonTexts.md index d4b94756..fded5ea2 100644 --- a/CustomerNotes/LarsonTexts.md +++ b/CustomerNotes/LarsonTexts.md @@ -202,3 +202,11 @@ UN: smontiel@larsontexts.com PW: BigIdeas! Redesign. + +## 03/23/2023 + +### Design Update + +She gave me her login again to the app. Gave Hubert assets. +Sophia is training 8 people across two teams on how to use Northpass and Best Practices. +Offered to join her if she needed help. diff --git a/Scripts/API_Tests/Apikeys.py b/Scripts/API_Tests/Apikeys.py index 9654e60a..837a93b6 100644 --- a/Scripts/API_Tests/Apikeys.py +++ b/Scripts/API_Tests/Apikeys.py @@ -4,3 +4,4 @@ forcemanager = "3ia7mWFkdeALYQFYoB51yh6Ov" talkspace_core = "2vfHw6ksqGfT1gUhPM8pXx2wW" wildhealth = "HWxj6VTNPwbc3WghFTPzr7SjE" normsandbox = "SlpQlju219WnWogn94dQUT6Yt" +walmartprod = "6hUfJdAartHTHhHc0WIRZYPWe" diff --git a/Scripts/API_Tests/__pycache__/Apikeys.cpython-311.pyc b/Scripts/API_Tests/__pycache__/Apikeys.cpython-311.pyc index 19501d27..52fe5958 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/api_test.py b/Scripts/API_Tests/api_test.py index 59551267..9eee5aff 100644 --- a/Scripts/API_Tests/api_test.py +++ b/Scripts/API_Tests/api_test.py @@ -5,10 +5,12 @@ import Apikeys # url ="https://api.northpass.com/v2/groups/e6ef3e5f-b5a2-4b10-868b-8c165d76d263/learning_paths" # url = "https://api.northpass.com/v1/media?limit=1" -url = "https://api.northpass.com/v1/learning_paths" +# url = "https://api.northpass.com/v1/learning_paths" +url = "https://api2.northpass.com/v2/courses" + # function = sys.argv[1] -apiKey = Apikeys.normsandbox -normuuid = "0b31c435-c18b-4573-984e-32cda57045b4" +apiKey = Apikeys.walmartprod +# normuuid = "0b31c435-c18b-4573-984e-32cda57045b4" # Get Group Memberships: # url = "https://api.northpass.com/v2/groups/504c4771-223a-447f-9ec6-08e51bc9ca23/memberships" @@ -17,7 +19,7 @@ normuuid = "0b31c435-c18b-4573-984e-32cda57045b4" # url = "https://api.northpass.com/v2/people/person_uuid/relationships/courses" # Associate a person with a Learning Path (Test): -url = f"https://api.northpass.com/v1/people/{normuuid}/relationships/learning_paths" +# url = f"https://api.northpass.com/v1/people/{normuuid}/relationships/learning_paths" def putTest(apiKey, url): @@ -69,6 +71,6 @@ def postTest(apiKey, url): if __name__ == "__main__": - # getTest(apiKey, url) + getTest(apiKey, url) # putTest(apiKey, url) - postTest(apiKey, url) + # postTest(apiKey, url) diff --git a/Scripts/API_Tests/get_courses.py b/Scripts/API_Tests/get_courses.py new file mode 100644 index 00000000..1e35f698 --- /dev/null +++ b/Scripts/API_Tests/get_courses.py @@ -0,0 +1,38 @@ +import requests +import json +import Apikeys + + +def get_course(): + count = 0 + apiKey = Apikeys.walmartprod + live_courses = [] + + while True: + count += 1 + url = f"https://api2.northpass.com/v2/courses?page={count}" + headers = {"accept": "application/json", "X-Api-Key": apiKey} + response = requests.get(url, headers=headers) + data = response.json() + nextlink = data["links"] + + jsonResponse = response.json() + jsonResponse = json.dumps(jsonResponse, indent=2) + + for response in data["data"]: + status = response["attributes"]["status"] + if status == "live": + name = response["attributes"]["name"] + live_courses.append(name) + with open("/Users/normrasmussen/Downloads/courses.txt", "a") as write: + write.write("\n") + write.write(name) + + if "next" not in nextlink: + break + + print(live_courses) + + +if __name__ == "__main__": + get_course()