diff --git a/Custom_Templates/customer_templates/.DS_Store b/Custom_Templates/customer_templates/.DS_Store index cb1aae6a..7ac9f4c7 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/Cin7 Customers/_account_avatar.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_account_avatar.html.liquid new file mode 100644 index 00000000..d952af93 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_account_avatar.html.liquid @@ -0,0 +1,66 @@ +
+

{% t .description %}

+

{% t .requirements %}

+
+ + + + +
+
+ +
+ +
+ +
+
+ +
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_account_desktop_view.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_account_desktop_view.html.liquid new file mode 100644 index 00000000..8ae8599d --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_account_desktop_view.html.liquid @@ -0,0 +1,19 @@ +
+ + {% form_authenticity_token %} +
+
+
+ + +
+
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_account_form.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_account_form.html.liquid new file mode 100644 index 00000000..ddd264c2 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_account_form.html.liquid @@ -0,0 +1,139 @@ +
+ {% t .header %} +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +{% unless form.options.invite? %} +
+ + +
+ +
+ + +
+ +
+ + +
+{% endunless %} + +{% if form.options.invite? %} +
+ + +
+ + {% if form.terms_of_service_required? %} +
+ +
+ {% t .terms_of_service %} + + {% t .terms_link %} + +
+
+ {% else %} +
+ + {% t .terms %} + + {% t .terms_link %} + + +
+ {% endif %} + + +{% endif %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_account_mobile_view.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_account_mobile_view.html.liquid new file mode 100644 index 00000000..6ac8c007 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_account_mobile_view.html.liquid @@ -0,0 +1,17 @@ +
+ + {% form_authenticity_token %} +
+
+ {% render "account_form", form: form, version: "mobile" %} +
+
+
+
+ {% include "account_avatar", version: "mobile" %} +
+
+ +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_cards_course.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_cards_course.html.liquid new file mode 100644 index 00000000..366e26a9 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_cards_course.html.liquid @@ -0,0 +1,28 @@ +
+{% capture course_path %}{% route course, id: course.id %}{% endcapture %} + +
+ {{ course.name }} +
+
+

+ {% assign course_name = course.name | split: "]" %} + {{ course_name.last }} +

+
+ {{ course.short_description }} +
+ {% if course.properties.course_duration %} +
+ + {{course.properties.course_duration}} min +
+ {% endif %} +
+
+
+ diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_cards_learning_path.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_cards_learning_path.html.liquid new file mode 100644 index 00000000..f0d63acb --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_cards_learning_path.html.liquid @@ -0,0 +1,66 @@ +
+
+
+ {{ 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 }} +
+ +
+ {% t shared.progress, count: learning_path.progress %} +
+ +
+
+
+
+ + +
+
+
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_cards_learning_path_homepage.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_cards_learning_path_homepage.html.liquid new file mode 100644 index 00000000..a29384a4 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_cards_learning_path_homepage.html.liquid @@ -0,0 +1,17 @@ +
+ +
+ {{ learning_path.name }} +
+
+

+ {{ learning_path.name }} +

+
+
+
+ diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_cards_training_event.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_cards_training_event.html.liquid new file mode 100644 index 00000000..e797417c --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_cards_training_event.html.liquid @@ -0,0 +1,38 @@ +
+ +
+

+ {{ training_event.title }} +

+
+ {% t shared.event_types, key: training_event.event_type %} +
+
+ +
+
+ {{ training_event.sessions.first.day }} +
+
+
+ {{ training_event.sessions.first.month }} +
+
+ {{ training_event.sessions.first.year }} +
+
+
+
+
+
+
+ + + {% t .sessions, count: training_event.sessions.size %} + +
+
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_category_cards.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_category_cards.html.liquid new file mode 100644 index 00000000..821a2f7f --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_category_cards.html.liquid @@ -0,0 +1,7 @@ + +
+

{{category.name}}

+
See all courses related to managing products in Cin7 Omni.
+
+
+ diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_category_carousel.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_category_carousel.html.liquid new file mode 100644 index 00000000..ef9b967f --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_category_carousel.html.liquid @@ -0,0 +1,40 @@ +{% assign unique_category = "" %} + + + + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_certificates_info_column.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_certificates_info_column.html.liquid new file mode 100644 index 00000000..61adfaba --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_certificates_info_column.html.liquid @@ -0,0 +1,4 @@ +
+ {% include "certificates_verification" %} + {% include "certificates_metadata" %} +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_certificates_metadata.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_certificates_metadata.html.liquid new file mode 100644 index 00000000..9f4a1dba --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_certificates_metadata.html.liquid @@ -0,0 +1,59 @@ +
+
+ +
+ + {% if certificate.issuer_name_enabled? %} + +
+ {% endif %} + + +
+ +
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_certificates_preview.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_certificates_preview.html.liquid new file mode 100644 index 00000000..6357b621 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_certificates_preview.html.liquid @@ -0,0 +1,35 @@ + + +
+
+
+ +
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_certificates_top_bar.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_certificates_top_bar.html.liquid new file mode 100644 index 00000000..74a7ae41 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_certificates_top_bar.html.liquid @@ -0,0 +1,44 @@ +
+
+
+

+ {{certificate.certificate_name}} +

+
+
+ {% if certificate.linkedin_sharing_enabled and current_person.signed_in? and certificate.learner_uuid == current_person.id %} + + + {% t .share %} + + {% endif %} + + {% if certificate.generating_pdf %} +
+ +
+ {% else %} + + {% t .download %} + + {% endif %} +
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_certificates_verification.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_certificates_verification.html.liquid new file mode 100644 index 00000000..4fc19415 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_certificates_verification.html.liquid @@ -0,0 +1,15 @@ +
+
+
+ +
+
+

+ {{certificate.verification_title}} +

+

+ {{certificate.verification_description}} +

+
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_course_activity_locked.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_course_activity_locked.html.liquid new file mode 100644 index 00000000..386393d5 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_course_activity_locked.html.liquid @@ -0,0 +1,4 @@ + + + {{ activity.title }} + diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_course_activity_unlocked.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_course_activity_unlocked.html.liquid new file mode 100644 index 00000000..30c03305 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_course_activity_unlocked.html.liquid @@ -0,0 +1,15 @@ +{% if course.enrolled? %} + + {{ activity.title }} + +{% else%} + + {{ activity.title }} + +{% endif %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_course_categories.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_course_categories.html.liquid new file mode 100644 index 00000000..6cfe9010 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_course_categories.html.liquid @@ -0,0 +1,10 @@ +

+ {% t .header %} +

+
+ {% for category in course.categories %} +
+ {{ category.name }} +
+ {% endfor %} +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_course_description.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_course_description.html.liquid new file mode 100644 index 00000000..269f9216 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_course_description.html.liquid @@ -0,0 +1,6 @@ +

+ {% t .header, key: current_school.course_vocabulary %} +

+
+ {{ course.full_description }} +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_course_desktop_view.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_course_desktop_view.html.liquid new file mode 100644 index 00000000..67cf0072 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_course_desktop_view.html.liquid @@ -0,0 +1,43 @@ +
+
+ {% assign course_name = course.name | split: "]" %} +
{{ course_name.last }}
+
+ +
+
+
+ {{ course_name.last }} + {% include "course_description" %} + + {% if course.categories.any? %} +
+ {% include "course_categories" %} +
+ {% endif %} + + {% if course.instructors.any? %} +
+ {% include "course_instructors" %} +
+ {% endif %} + + {% if course.events.any? %} +
+ {% include "course_events" %} +
+ {% endif %} +
+
+
+ {% include "course_progress_and_cta" %} +
+ {% include "course_outline" %} +
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_course_events.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_course_events.html.liquid new file mode 100644 index 00000000..5fa80eef --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_course_events.html.liquid @@ -0,0 +1,28 @@ +

+ {% t .header %} +

+
+ {% for event in course.events %} +
+ +
+
+ {{ event.title }} +
+
+ {% t shared.event_types, key: event.event_type %} +
+
+ {{ event.sessions.first.time_period }} {{ event.sessions.first.time_zone }} +
+
+
+ {% endfor %} +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_course_header.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_course_header.html.liquid new file mode 100644 index 00000000..46268a22 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_course_header.html.liquid @@ -0,0 +1,17 @@ +
+ {{ current_school.course_vocabulary }} + + +
+
+ + + + {% assign course_name = course.name | split: "]" %} + {{ course_name.last }} +
+{{ course_name.last }} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_course_instructors.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_course_instructors.html.liquid new file mode 100644 index 00000000..8b608928 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_course_instructors.html.liquid @@ -0,0 +1,22 @@ +

+ {% t .header %} +

+
+ {% for instructor in course.instructors %} +
+ {{ instructor.name }} +
+
+ {{ instructor.name }} +
+ +
+
+ {% endfor %} +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_course_mobile_view.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_course_mobile_view.html.liquid new file mode 100644 index 00000000..7f31ff35 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_course_mobile_view.html.liquid @@ -0,0 +1,40 @@ +
+ {% include "course_header" %} +
+ {% include "course_progress_and_cta" %} +
+
+ +{% if course.progress == 0 %} +
+ {% include "course_description" %} +
+
+ {% include "course_outline" %} +
+{% else %} +
+ {% include "course_outline" %} +
+
+ {% include "course_description" %} +
+{% endif %} + +{% if course.categories.any? %} +
+ {% include "course_categories" %} +
+{% endif %} + +{% if course.instructors.any? %} +
+ {% include "course_instructors" %} +
+{% endif %} + +{% if course.events.any? %} +
+ {% include "course_events" %} +
+{% endif %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_course_outline.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_course_outline.html.liquid new file mode 100644 index 00000000..72f97e79 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_course_outline.html.liquid @@ -0,0 +1,40 @@ +
+
+ {% t .header, key: current_school.course_vocabulary %} +
+
+
    + {% for section in course.sections %} +
  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. + {% endfor %} +
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_course_progress_and_cta.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_course_progress_and_cta.html.liquid new file mode 100644 index 00000000..1c3db9fa --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_course_progress_and_cta.html.liquid @@ -0,0 +1,46 @@ +
+
+ {% 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/Cin7 Customers/_course_version_outdated_alert.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_course_version_outdated_alert.html.liquid new file mode 100644 index 00000000..03e245ab --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_course_version_outdated_alert.html.liquid @@ -0,0 +1,7 @@ +{% if courses.include_courses_to_restart? %} + +{% endif %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_course_version_outdated_popup.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_course_version_outdated_popup.html.liquid new file mode 100644 index 00000000..71795884 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_course_version_outdated_popup.html.liquid @@ -0,0 +1,33 @@ +
+
+ + +
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_courses_catalog.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_courses_catalog.html.liquid new file mode 100644 index 00000000..f4b74c81 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_courses_catalog.html.liquid @@ -0,0 +1,16 @@ +{% if courses.in_catalog.any? %} +
+ {% for course in courses.in_catalog %} +
+ {% include "cards_course" with course %} +
+ {% 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/Cin7 Customers/_courses_index.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_courses_index.html.liquid new file mode 100644 index 00000000..19e7671b --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_courses_index.html.liquid @@ -0,0 +1,16 @@ +{% if courses.enrolled.any? %} +
+ {% for course in courses.enrolled %} +
+ {% include "cards_course" with course %} +
+ {% endfor %} +
+{% else %} + {% capture message %} + {% t shared.zero_state.courses.index, + key: current_school.course_vocabulary + %} + {% endcapture %} + {% include "courses_zero_state", message: message %} +{% endif %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_courses_zero_state.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_courses_zero_state.html.liquid new file mode 100644 index 00000000..26e371f7 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_courses_zero_state.html.liquid @@ -0,0 +1,6 @@ +
+
+ {{ message }} +
+ {{ message }} +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_featured_courses.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_featured_courses.html.liquid new file mode 100644 index 00000000..438f3aaa --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_featured_courses.html.liquid @@ -0,0 +1,37 @@ + + + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_filter_checkbox.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_filter_checkbox.html.liquid new file mode 100644 index 00000000..5cbcbd07 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_filter_checkbox.html.liquid @@ -0,0 +1,10 @@ + + diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_filter_dropdown.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_filter_dropdown.html.liquid new file mode 100644 index 00000000..e7a954bb --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_filter_dropdown.html.liquid @@ -0,0 +1,33 @@ +
+ +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_filter_select.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_filter_select.html.liquid new file mode 100644 index 00000000..d006c0df --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_filter_select.html.liquid @@ -0,0 +1,22 @@ +{% if params.q %} + +{% endif %} + + + + diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_footer.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_footer.html.liquid new file mode 100644 index 00000000..c10d8870 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_footer.html.liquid @@ -0,0 +1,38 @@ + diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_head.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_head.html.liquid new file mode 100644 index 00000000..c6d39351 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_head.html.liquid @@ -0,0 +1,18 @@ +{% styles default %} +{% styles colors %} +{% styles custom %} + + + + + + + + + + + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_header.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_header.html.liquid new file mode 100644 index 00000000..8b6cbe04 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_header.html.liquid @@ -0,0 +1,209 @@ +
+
+
+ {% if current_person.signed_in? %} + + + {% endif %} +
+ {% if current_school.logo_url %} +

+ + {{ current_school.name }} + +

+ {% else %} + + {{ current_school.name }} + + {% endif %} + + + + {% if current_person.signed_in? %} + +
+ + +
+ {% else %} + + {% endif %} +
+
+ +
+
+ {% if current_person.signed_in? %} + {{ current_person.name }} +
+ {{ current_person.name }} +
+ {% endif %} +
+ + {% for website_navigation in navigations.header_navigations %} + + {{ website_navigation.name }} + + {% endfor %} +
+ {% unless current_school.sso_active? %} + + {% t .profile_settings %} + + {% endunless %} + + {% t .sign_out %} + +
+
+
+ +{% include "messages" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_header_minimal.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_header_minimal.html.liquid new file mode 100644 index 00000000..6b72cdb2 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_header_minimal.html.liquid @@ -0,0 +1,17 @@ +
+ + {% if current_school.logo_url %} + + {% else %} + + {{ current_school.name }} + + {% endif %} + +
+ +{% include "messages" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_banners.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_banners.html.liquid new file mode 100644 index 00000000..11a1810c --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_banners.html.liquid @@ -0,0 +1,5 @@ +{% if learning_path.new_content_available? %} + {% include "learning_path_new_content_banner" %} +{% else %} + {% include "learning_path_completed_banner" %} +{% endif %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_certificate.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_certificate.html.liquid new file mode 100644 index 00000000..3a282c5e --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_certificate.html.liquid @@ -0,0 +1,17 @@ +{% if learning_path.has_certificate? %} + {% if learning_path.certificate_completed? %} +
+ +
+ {% include "learning_path_certificate_content" %} +
+
+ {% else %} +
+ {% include "learning_path_certificate_content" %} +
+ {% endif %} +{% endif %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_certificate_content.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_certificate_content.html.liquid new file mode 100644 index 00000000..3feafd59 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_certificate_content.html.liquid @@ -0,0 +1,19 @@ +
+ +

+ {{ learning_path.certificate_name }} +

+ {% if learning_path.certificate_completed? %} + + {% endif %} +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_completed_banner.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_completed_banner.html.liquid new file mode 100644 index 00000000..1c146f6e --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_completed_banner.html.liquid @@ -0,0 +1,13 @@ +
+ +
+

{% t .headline %}

+

{% t .description %}

+
+ {% if learning_path.certificate_link %} + {% t .actions.certificate %} + {% endif %} + {% t .actions.more_courses %} +
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_course.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_course.html.liquid new file mode 100644 index 00000000..e97e59ef --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_course.html.liquid @@ -0,0 +1,39 @@ +{% if learning_path.enrolled? and course.unlocked? %} + +
+
+
+ {{ course.name }} +
+
+ {% t shared.progress, count: course.progress %} +
+
+ {% if course.optional? %} +
+ {% t shared.optional %} +
+ {% endif %} +
+
+{% else %} +
+
+
+
+ {{ course.name }} +
+
+ {% if course.optional? %} +
+ {% t shared.optional %} +
+ {% endif %} +
+
+{% endif %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_description.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_description.html.liquid new file mode 100644 index 00000000..6b1fb3a0 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_description.html.liquid @@ -0,0 +1,6 @@ +

+ {% t .about %} +

+
+ {{ learning_path.description }} +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_desktop_content.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_desktop_content.html.liquid new file mode 100644 index 00000000..60e1525e --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_desktop_content.html.liquid @@ -0,0 +1,23 @@ +
+
+
+
+ {{ learning_path.name }} +
+ {% include "learning_path_description" %} + {% include "learning_path_instructors" %} +
+
+
+
+
+ {% include "learning_path_progress_and_cta" %} +
+ {% include "learning_path_outline" %} +
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_desktop_header.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_desktop_header.html.liquid new file mode 100644 index 00000000..3ff44242 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_desktop_header.html.liquid @@ -0,0 +1,17 @@ +
+
+ Learning Path: {{ learning_path.name }} +
+
+ + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_desktop_view.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_desktop_view.html.liquid new file mode 100644 index 00000000..8447443e --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_desktop_view.html.liquid @@ -0,0 +1,2 @@ +{% include "learning_path_desktop_header" %} +{% include "learning_path_desktop_content" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_instructors.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_instructors.html.liquid new file mode 100644 index 00000000..a8342301 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_instructors.html.liquid @@ -0,0 +1,26 @@ +{% if learning_path.instructors.any? %} +
+

+ {% t shared.instructors %} +

+
+ {% for instructor in learning_path.instructors %} +
+ {{ instructor.name }} +
+
+ {{ instructor.name }} +
+ +
+
+ {% endfor %} +
+
+{% endif %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_mobile_content.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_mobile_content.html.liquid new file mode 100644 index 00000000..92ffd4c8 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_mobile_content.html.liquid @@ -0,0 +1,19 @@ +{% if learning_path.in_progress? %} + {% include "learning_path_outline" %} +
+ {% include "learning_path_description" %} +
+{% else %} +
+ {% include "learning_path_description" %} +
+
+ {% include "learning_path_outline" %} +
+{% endif %} + +{% if learning_path.instructors.any? %} +
+ {% include "learning_path_instructors" %} +
+{% endif %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_mobile_header.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_mobile_header.html.liquid new file mode 100644 index 00000000..2bf66a5a --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_mobile_header.html.liquid @@ -0,0 +1,17 @@ +
+
+ {% t shared.learning_path.title %} + +
+
+ {{ learning_path.name }} +
+ {{ learning_path.name }} +
+ {% include "learning_path_progress_and_cta" %} +
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_mobile_view.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_mobile_view.html.liquid new file mode 100644 index 00000000..0e22feb9 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_mobile_view.html.liquid @@ -0,0 +1,2 @@ +{% include "learning_path_mobile_header" %} +{% include "learning_path_mobile_content" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_new_content_banner.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_new_content_banner.html.liquid new file mode 100644 index 00000000..2bc02d46 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_new_content_banner.html.liquid @@ -0,0 +1,12 @@ +
+
+

{% t .headline %}

+

{% t .description %}

+
+ {% learning_path_next_step_button learning_path, class: "np-learning-path-banner-action np-learning-path-banner-action--primary" %} + {% if learning_path.certificate_link %} + {% t .actions.view_certificate %} + {% endif %} +
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_outline.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_outline.html.liquid new file mode 100644 index 00000000..22ddd573 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_outline.html.liquid @@ -0,0 +1,10 @@ +
+ {% for item in learning_path.items %} + {% if item.course? %} + {% include "learning_path_course", course: item %} + {% elsif item.training_event? %} + {% include "learning_path_training_session", training_session: item %} + {% endif %} + {% endfor %} + {% include "learning_path_certificate" %} +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_progress_and_cta.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_progress_and_cta.html.liquid new file mode 100644 index 00000000..2d180ca2 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_progress_and_cta.html.liquid @@ -0,0 +1,11 @@ +{% if learning_path.enrolled? %} +
+
+ {% t shared.progress, count: learning_path.progress %} +
+
+{% endif %} + +{% learning_path_next_step_button learning_path, class: "lp-button" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_summary_desktop_view.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_summary_desktop_view.html.liquid new file mode 100644 index 00000000..05961c52 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_summary_desktop_view.html.liquid @@ -0,0 +1,3 @@ +{% include "learning_path_desktop_header" %} +{% include "learning_path_banners" %} +{% include "learning_path_desktop_content" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_summary_mobile_view.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_summary_mobile_view.html.liquid new file mode 100644 index 00000000..f30a09eb --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_summary_mobile_view.html.liquid @@ -0,0 +1,5 @@ +
+ {% include "learning_path_banners" %} +
+{% include "learning_path_mobile_header" %} +{% include "learning_path_mobile_content" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_training_session.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_training_session.html.liquid new file mode 100644 index 00000000..ba599f95 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_path_training_session.html.liquid @@ -0,0 +1,50 @@ +{% if learning_path.enrolled? and training_session.unlocked? %} +
+ +
+ +
+
{{ training_session.name }}
+
+ {{ training_session.time }} {{ training_session.time_zone }} +
+
+ {% if training_session.optional? %} +
+ {% t shared.optional %} +
+ {% endif %} +
+
+{% else %} +
+
+ +
+
{{ training_session.name }}
+
+ {% if training_session.optional? %} +
+ {% t shared.optional %} +
+ {% endif %} +
+
+{% endif %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_learning_paths_index.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_learning_paths_index.html.liquid new file mode 100644 index 00000000..a4681210 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_learning_paths_index.html.liquid @@ -0,0 +1,14 @@ +
+ {% if items.any? %} + {% for learning_path in items %} + {% include "cards_learning_path" with learning_path %} + {% endfor %} + {% else %} +
+
+ {% t .empty %} +
+ {% t .empty %} +
+ {% endif %} +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_messages.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_messages.html.liquid new file mode 100644 index 00000000..059fc568 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_messages.html.liquid @@ -0,0 +1,19 @@ +{% if messages.alert.size > 0 %} +
+
+ {% for message in messages.alert %} +
{{ message }}
+ {% endfor %} +
+
+{% endif %} + +{% if messages.notice.size > 0 %} +
+
+ {% for message in messages.notice %} +
{{ message }}
+ {% endfor %} +
+
+{% endif %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_my_courses_carousel.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_my_courses_carousel.html.liquid new file mode 100644 index 00000000..3d1c54e6 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_my_courses_carousel.html.liquid @@ -0,0 +1,35 @@ + + + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_my_learning_paths.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_my_learning_paths.html.liquid new file mode 100644 index 00000000..1ccb94da --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_my_learning_paths.html.liquid @@ -0,0 +1,35 @@ + + + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_my_learning_paths_carousel.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_my_learning_paths_carousel.html.liquid new file mode 100644 index 00000000..e6c35553 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_my_learning_paths_carousel.html.liquid @@ -0,0 +1,35 @@ + + + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_search_result.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_search_result.html.liquid new file mode 100644 index 00000000..5c2a4991 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_search_result.html.liquid @@ -0,0 +1,19 @@ +
+
+
+ {{ result.name }} +
+
+ + {{ result.name }} + +
+
{{ result.description }}
+
+
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_search_zero_state.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_search_zero_state.html.liquid new file mode 100644 index 00000000..4e52c6fb --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_search_zero_state.html.liquid @@ -0,0 +1,13 @@ +
+
+
+

+ {% t .nothing_found %} +

+
+ {% t .empty %} +
+
+
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_starting_learning_paths.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_starting_learning_paths.html.liquid new file mode 100644 index 00000000..17c4fdea --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_starting_learning_paths.html.liquid @@ -0,0 +1,11 @@ + +{% for learning_path in learning_paths.enrolled %} + {% for category in learning_path.categories %} + {% if category.name contains 'B2B: Core' %} +
+ {% include "cards_learning_path_homepage" with learning_path %} +
+ {% endif %} + {% endfor %} +{% endfor %} + diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_sub_navigation.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_sub_navigation.html.liquid new file mode 100644 index 00000000..46af698b --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_sub_navigation.html.liquid @@ -0,0 +1,30 @@ + + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_training_events_dashboard.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_training_events_dashboard.html.liquid new file mode 100644 index 00000000..ee206cc1 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_training_events_dashboard.html.liquid @@ -0,0 +1,7 @@ +
+ {% if training_events.enrolled.any? %} + {% for training_event in training_events.enrolled %} + {% include "cards_training_event" with training_event %} + {% endfor %} + {% endif %} +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_training_events_filter.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_training_events_filter.html.liquid new file mode 100644 index 00000000..d4892278 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_training_events_filter.html.liquid @@ -0,0 +1,53 @@ +
+ +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_training_events_index.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_training_events_index.html.liquid new file mode 100644 index 00000000..643445e6 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_training_events_index.html.liquid @@ -0,0 +1,11 @@ +
+ {% if training_events.available.any? %} +
+ {% for training_event in training_events.available %} +
+ {% include "cards_training_event" with training_event %} +
+ {% endfor %} +
+ {% endif %} +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_training_events_zero_state.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_training_events_zero_state.html.liquid new file mode 100644 index 00000000..076b789e --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_training_events_zero_state.html.liquid @@ -0,0 +1,9 @@ +
+
+ {% t .empty %} +
+ {% t .empty %} +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_training_session_calendars.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_calendars.html.liquid new file mode 100644 index 00000000..6c758b73 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_calendars.html.liquid @@ -0,0 +1,52 @@ + diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_training_session_cta.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_cta.html.liquid new file mode 100644 index 00000000..d777c5f6 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_cta.html.liquid @@ -0,0 +1,53 @@ +{% if training_session.approved? %} +
+ + {% t .registered %} +
+{% elsif training_session.pending? %} +
+ {% t .pending %} +
+{% elsif training_session.denied? %} +
+ {% t .denied %} +
+{% elsif training_session.too_late? %} +
+ {% t .too_late %} +
+{% elsif training_session.no_seats? %} +
+ {% t .no_seats %} +
+{% endif %} +
+
+
+ {% form_authenticity_token %} + + {% if training_session.internal? and training_session.approved? %} + {% if features.training_events_google_calendar? %} + {% include "training_session_calendars" %} + + {% else %} + + {% endif %} + + + {% endif %} + + {% if training_session.not_registered? %} + + {% endif %} +
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_training_session_date.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_date.html.liquid new file mode 100644 index 00000000..48694035 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_date.html.liquid @@ -0,0 +1,14 @@ +
+
+
+ {{ training_session.day }} +
+
+
+ {{ training_session.month }} +
+
+ {{ training_session.year }} +
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_training_session_description.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_description.html.liquid new file mode 100644 index 00000000..73be4cf4 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_description.html.liquid @@ -0,0 +1,6 @@ +

+ {% t .header %} +

+
+ {{ training_event.description }} +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_training_session_desktop_view.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_desktop_view.html.liquid new file mode 100644 index 00000000..5c1abfec --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_desktop_view.html.liquid @@ -0,0 +1,40 @@ +
+ {% include "training_session_header" %} +
+
+
+
+
+
+ {% include "training_session_details" %} +
+
+ {% include "training_session_cta" %} +
+
+
+
+ {% include "training_session_description" %} +
+
+
+
+
+
+ {% t shared.more_sessions %} +
+ {% if training_event.sessions.size > 1 %} + {% include "training_session_more_sessions" %} + {% else %} +
+ {% t .empty %} +
+ {% t .empty %} +
+
+ {% endif %} +
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_training_session_details.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_details.html.liquid new file mode 100644 index 00000000..ae23b7ac --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_details.html.liquid @@ -0,0 +1,24 @@ +
+ {% include "training_session_date" %} + +
+ + {{ training_session.time_period }} {{ training_session.time_zone }} +
+ + {% if training_session.location %} +
+ + {{ training_session.location }} +
+ {% endif %} + + {% if training_session.session_url %} +
+ + + {{ training_session.session_url }} + +
+ {% endif %} +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_training_session_header.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_header.html.liquid new file mode 100644 index 00000000..10434cfa --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_header.html.liquid @@ -0,0 +1,10 @@ +
+ {% t shared.event_types, key: training_event.event_type %} + +
+
+ + + + {{ training_event.title }} +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_training_session_mobile_view.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_mobile_view.html.liquid new file mode 100644 index 00000000..00455d4e --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_mobile_view.html.liquid @@ -0,0 +1,22 @@ +
+
+ {% include "training_session_header" %} +
+ {% include "training_session_details" %} +
+ {% include "training_session_cta" %} +
+
+ +
+ {% include "training_session_description" %} +
+ +{% if training_event.sessions.size > 1 %} +
+
+ {% t shared.more_sessions %} +
+ {% include "training_session_more_sessions" %} +
+{% endif %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_training_session_more_sessions.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_more_sessions.html.liquid new file mode 100644 index 00000000..6cfafa87 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_more_sessions.html.liquid @@ -0,0 +1,3 @@ +{% for session in training_event.sessions %} + {% include "training_session_tile", current_session: training_session %} +{% endfor %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/_training_session_tile.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_tile.html.liquid new file mode 100644 index 00000000..e5ad8714 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/_training_session_tile.html.liquid @@ -0,0 +1,17 @@ +{% if current_session.id != session.id %} + + +
+
+ {{ session.month }} {{ session.day }}, {{ session.year }} +
+
+ {{ session.time_period }} {{ session.time_zone }} +
+
+ +
+{% endif %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/account.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/account.html.liquid new file mode 100644 index 00000000..2ad5d917 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/account.html.liquid @@ -0,0 +1,14 @@ +{% include "header" %} + +
+
+ {% include "account_mobile_view", form: form %} +
+ +
+ {% include "account_desktop_view", form: form %} +
+
+ +{% include "footer" %} + diff --git a/Custom_Templates/customer_templates/Cin7 Customers/auth_url_email.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/auth_url_email.html.liquid new file mode 100644 index 00000000..a413959c --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/auth_url_email.html.liquid @@ -0,0 +1,59 @@ +
+
+ {% include "header_minimal" %} +
+
+ {% form_authenticity_token %} +
+ {% t shared.welcome_to_school, school_name: current_school.name %} +
+
+ {% t .headline, key: current_school.course_vocabulary %} +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/auth_url_employee.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/auth_url_employee.html.liquid new file mode 100644 index 00000000..c8d8adf7 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/auth_url_employee.html.liquid @@ -0,0 +1,59 @@ +
+
+ {% include "header_minimal" %} +
+
+ {% form_authenticity_token %} +
+ {% t shared.welcome_to_school, school_name: current_school.name %} +
+
+ {% t .headline, key: current_school.course_vocabulary %} +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/auth_url_phone_number.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/auth_url_phone_number.html.liquid new file mode 100644 index 00000000..aafae119 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/auth_url_phone_number.html.liquid @@ -0,0 +1,40 @@ +
+
+ {% include "header_minimal" %} +
+
+
{% t shared.welcome_to_school, school_name: current_school.name %}
+
{% t .headline, key: current_school.course_vocabulary %}
+ {% form_authenticity_token %} +
+ + +
+
+ + +
+ +
+
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/auth_url_terms.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/auth_url_terms.html.liquid new file mode 100644 index 00000000..a7087db2 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/auth_url_terms.html.liquid @@ -0,0 +1,74 @@ +
+
+ {% include "header_minimal" %} +
+
+
{% t shared.welcome_to_school, school_name: current_school.name %}
+
{% t .headline, key: current_school.course_vocabulary %}
+ {% form_authenticity_token %} +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + +
+ +
+
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/catalog.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/catalog.html.liquid new file mode 100644 index 00000000..5c4b42ae --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/catalog.html.liquid @@ -0,0 +1,39 @@ +{% include "header" %} +{% include "course_version_outdated_alert", courses: courses.in_catalog %} + +
+
Courses
+{% 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" %} + + diff --git a/Custom_Templates/customer_templates/Cin7 Customers/course.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/course.html.liquid new file mode 100644 index 00000000..a6666a70 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/course.html.liquid @@ -0,0 +1,10 @@ +{% include "header" %} +
+
+ {% include "course_desktop_view" %} +
+
+ {% include "course_mobile_view" %} +
+
+{% include "footer" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/courses-category.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/courses-category.html.liquid new file mode 100644 index 00000000..59de387b --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/courses-category.html.liquid @@ -0,0 +1,16 @@ +{% include "header" %} +{% include "course_version_outdated_alert", courses: courses.in_catalog %} + +
+
Course Catalog
+
+ Browse All Courses +
+
+
+ {% include 'category_cards' %} +
+
+ +
+{% include "footer" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/courses.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/courses.html.liquid new file mode 100644 index 00000000..a6e036af --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/courses.html.liquid @@ -0,0 +1,23 @@ +{% include "header" %} +{% include "course_version_outdated_alert", courses: courses.in_catalog %} + +
+
+
+
{{ 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" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/dashboard.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/dashboard.html.liquid new file mode 100644 index 00000000..56f91ff0 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/dashboard.html.liquid @@ -0,0 +1,26 @@ +{% include "header" %} +{% include "course_version_outdated_alert", courses: courses.enrolled %} + + +
+
My Dashboard & Progress
+
+
+
My Courses
+
+ {% include 'my_courses_carousel' %} +
+
+
+
My Learning Paths
+
+ {% include 'my_learning_paths_carousel' %} +
+
+
+
My Events
+
+ {% include "training_events_dashboard" %} +
+
+{% include "footer" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/forgot_password.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/forgot_password.html.liquid new file mode 100644 index 00000000..3d65513f --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/forgot_password.html.liquid @@ -0,0 +1,25 @@ +
+
+ {% include "header_minimal" %} +
+
+ {% form_authenticity_token %} +
+ + +
+ +
+
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/homepage.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/homepage.html.liquid new file mode 100644 index 00000000..a00d1f74 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/homepage.html.liquid @@ -0,0 +1,57 @@ +{% include "header" %} +{% include "course_version_outdated_alert", courses: courses.featured %} +
+
+
+
Welcome to Cin7 Omni Academy
+
Learn to create and manage a best-in-class inventory operation for your business.
+
+
+ +
+
+
New to Cin7 Core? Start learning here!
+
+ {% include "category_carousel"%} +
+
+
+
Featured Courses: Integrations
+
+ {% include 'featured_courses' %} +
+
+ + +
+
+{% include "footer" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/learning_path.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/learning_path.html.liquid new file mode 100644 index 00000000..b48024ad --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/learning_path.html.liquid @@ -0,0 +1,10 @@ +{% include "header" %} +
+
+ {% include "learning_path_desktop_view" %} +
+
+ {% include "learning_path_mobile_view" %} +
+
+{% include "footer" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/learning_path_summary.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/learning_path_summary.html.liquid new file mode 100644 index 00000000..99ae32ed --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/learning_path_summary.html.liquid @@ -0,0 +1,10 @@ +{% include "header" %} +
+
+ {% include "learning_path_summary_desktop_view" %} +
+
+ {% include "learning_path_summary_mobile_view" %} +
+
+{% include "footer" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/learning_paths.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/learning_paths.html.liquid new file mode 100644 index 00000000..e708cf43 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/learning_paths.html.liquid @@ -0,0 +1,10 @@ +{% include "header" %} +
+
Learning Paths
+
+
+
+ {% include "learning_paths_index", items: learning_paths.available %} +
+
+{% include "footer" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/login.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/login.html.liquid new file mode 100644 index 00000000..bde185dd --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/login.html.liquid @@ -0,0 +1,53 @@ +
+
+ {% include "header_minimal" %} +
+
+ {% form_authenticity_token %} +
+ + +
+
+ + +
+ + + {% t .forgot_password %} + + {% if features.account_creation? %} + + {% t shared.sign_up %} + + {% endif %} + {% if features.request_access? %} + + {{ current_school.request_access_label }} + + {% endif %} +
+
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/master.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/master.html.liquid new file mode 100644 index 00000000..63345068 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/master.html.liquid @@ -0,0 +1 @@ +{% body %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/not_found.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/not_found.html.liquid new file mode 100644 index 00000000..91c76e4b --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/not_found.html.liquid @@ -0,0 +1,10 @@ +
+ + +
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/private_certificate.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/private_certificate.html.liquid new file mode 100644 index 00000000..15d05419 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/private_certificate.html.liquid @@ -0,0 +1,10 @@ +{% include "header" %} +{% include "certificates_top_bar" %} +
+
+
+ {% include "certificates_preview" %} + {% include "certificates_info_column" %} +
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/public_certificate.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/public_certificate.html.liquid new file mode 100644 index 00000000..15d05419 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/public_certificate.html.liquid @@ -0,0 +1,10 @@ +{% include "header" %} +{% include "certificates_top_bar" %} +
+
+
+ {% include "certificates_preview" %} + {% include "certificates_info_column" %} +
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/reset_password.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/reset_password.html.liquid new file mode 100644 index 00000000..281c6eaa --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/reset_password.html.liquid @@ -0,0 +1,43 @@ +
+
+ {% include "header_minimal" %} +
+
+ + + {% form_authenticity_token %} +
+ + +
+
+ + +
+ +
+
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/search.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/search.html.liquid new file mode 100644 index 00000000..01684399 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/search.html.liquid @@ -0,0 +1,27 @@ +{% include "header" %} +
+
+ {% t .title %} +
+
+
+ {% t .showing %} + {{ results.count }} + {% t .results_for %} + "{{ results.term }}" +
+ {% capture label %}{% t shared.filters.by_type %}{% endcapture %} + {% + include "filter_dropdown", + filters: results.filters, + key: "type", + label: label + %} +
+ {% if results.items.any? %} + {% render "search_result" for results.items as result %} + {% else %} + {% include "search_zero_state" %} + {% endif %} +
+{% include "footer" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/sign_up.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/sign_up.html.liquid new file mode 100644 index 00000000..7a903da4 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/sign_up.html.liquid @@ -0,0 +1,72 @@ +
+
+ {% include "header_minimal" %} +
+
+
{% t .create_account %}
+ {% form_authenticity_token %} +
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+ + + {% t .terms %} + + {% t .terms_link %} + + +
+
+
+
diff --git a/Custom_Templates/customer_templates/Cin7 Customers/styles.css.liquid b/Custom_Templates/customer_templates/Cin7 Customers/styles.css.liquid new file mode 100644 index 00000000..7bd45fcf --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/styles.css.liquid @@ -0,0 +1,375 @@ + /* + 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 }} +*/ +body { + font-family: "Inter", sans-serif; + background: #fff; +} + +.lora { + font-family: 'Lora'; +} +.hero-text { + font-family: 'Lora'; +} +.np-header-desktop-nav-link { + font-weight: 700; +} +.header-search-input { + border: 3px solid #002e6e; + border-radius: 8px; + max-width: 150px; +} +.note-desc { + font-size: 1vw +} +.hero-text { + font-size: 3.5rem; + font-weight: 400; +} +.hero-homepage { + background: url('https://s3.amazonaws.com/static.northpass.com/Cin7/Hero+banner.png'); + background-position: center; + background-size: cover; + padding: 5%; + color: #002f6f; +} +.hero-subheading { + margin-top: 2%; +} +.np-sub-navigation-content-item-active { + background: #002f6f !important; +} +.np-sub-navigation-content-item-link { + display: flex; + justify-content: center; + background: #05cbbf; + color: #fff; + padding: 15px; + border-radius: 8px; + font-weight: 700; +} +.sub-navigation { + background: #fff; + padding: 1rem 0; +} +.np-sub-navigation-content-item { + margin: 0 15px; +} +.info-icon { + width: 125px; + object-fit: cover; +} +.card { + border-radius: 25px; + background: #fff; + box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; +} +.learning-path-card-image { + width: 100%; + border-radius: 20px 20px 0 0; +} +.card-content-title { + color: #002f6f; + font-size: 1.25rem; + margin: 0; +} +.course-time { + margin-top: 15px; + color: #000000b5; + display: flex; + align-items: center; + gap: 10px +} +.course-desc { + margin-top: 15px; + color: #002f6f; +} +.lp-link { + text-decoration: none; +} +.slick-track { + margin-left: 0 !important; + margin-right: 0 !important; +} + +.section-lp { + background: #dde9fe; +} +.heading { + font-size: 2.5rem; + color: #002f6f; + padding: 2rem 0; + font-weight: 400; +} +.section { + padding-bottom: 3rem; +} +.section-featured { + background: #fff; +} + +.np-top-cta { + background: #fff; + border: 3px solid #002e6e; + border-radius: 20px; +} + +.lp-progress-text { + font-weight: 700; + font-size: 1.5rem; +} +.lp-button { + background: #05cbbf; + color: #fff; + text-decoration: none; + font-weight: 700; + padding: 10px 25px; + display: flex; + border-radius: 8px; + white-space: nowrap; +} +.lp-course-card { + margin: 15px 0; + background: #fff; + border: 3px solid #002e6e; + border-radius: 20px; + } +.learning-path-outline-content { + display: flex; + justify-content: center; + width: 100%; + align-items: center; + } + .lp-desktop-wrapper { + padding: 15px 25px; + background: #fff; + } + .lp-progress-and-cta-wrapper { + margin-top: 20px; + } + .card { + margin: 10px; + } + + .right-arrow { + position: absolute; + bottom: -30px; + padding-left: 50px; + cursor: pointer; + right: 10px; + } + .left-arrow { + position: absolute; + bottom: -30px; + z-index: 1; + padding-left: 10px; + cursor: pointer; + right: 40px; + } + .heading-dashboard { + text-align: left; + font-size: 2.5rem; + color: #002f6f; + padding: 2rem 0; + font-weight: 700; + margin-left: 2rem; + } + + .my-learning-paths { + background: #fff; + } + + .my-courses { + background: #dde9fe; + } + + .my-events { + background: #4d98ff; + } + + .events { + background: #fff; + } + .card-container { + text-decoration: none; + } + .events-container { + margin: 0 20px; + } + + .catalog-button { + display: flex; + justify-content: center; + background: #002f6f; + color: #fff; + padding: 15px; + border-radius: 8px; + font-weight: 700; + text-decoration: none; + } + .catalog-button-container { + display: flex; + justify-content: flex-end; + } + .hero-catalog-category { + background: #f2ede8; + padding: 5% 20px; + } + .hero-text-catalog-category { + color: #002f6f; + font-size: 3.5rem; + font-weight: 700; + } + .card-learning-path-desktop { + border-radius: 40px; + } + .image-learning-path-desktop { + border-radius: 40px; + } + .category-wrapper { + + } + .category-container { + display: flex; + justify-content: center; + flex-direction: column; + align-items: center; + } + .category-link { + text-decoration: none; + font-size: 1.5rem; + font-weight: 500; + color: #002f6f; + background: #fff; + border: 3px solid; + border-radius: 20px; + padding: 2rem; + max-width: 1000px; + width: 100%; + margin: 10px 0; + } + .category-container { + margin: 20px 0; + } + .np-card-container { + border-radius: 25px; + box-shadow: none; + } + .np-learning-path-image { + border-bottom-left-radius: 20px; + border-top-left-radius: 20px; + } + .card-content { + background: #fff; + border-radius: 0 0 25px 25px; + padding: 1.5rem; + } + .catalog-btn { + background: #002f6f; + color: #fff; + padding: 15px 25px; + border-radius: 25px; + text-decoration: none; + font-weight: 700; + } + .button-wrapper { + display: flex; + justify-content: center; + } + .info { + display: flex; + align-items: center; + max-width: 350px; + } + .info-wrapper { + display: flex; + gap: 20px; + justify-content: space-between; + flex-wrap: wrap; + } + .info-heading { + color: #002f6f; + font-weight: 600; + font-size: 1.25rem; + } + .info-desc { + color: #002f6f; + font-size: 1rem; + margin-top: 5px; + } + + .np-footer-logo-image { + filter: none; + opacity: 1; + } + + .np-footer { + background: #0f3a76; + } + .np-footer-navigation-link { + color: #fff; + } + + .np-footer-navigation-list { + flex-direction: column; + gap: 10px; + } + .np-footer-navigation { + min-height: 52px; + display: flex; + width: 100%; + justify-content: end; + } + + .np-learning-path-outline-inactive-item { + border: 3px solid #002e6e; + } + + .np-top-image { + max-width: 500px; + border-radius: 25px; + } + + .content-lp-card-padding { + padding: 25px; + } + .np-card-heading, .np-learning-path-outline-name { + color: #002f6f; + } + .np-card-text { + color: #002f6f; + } + + .np-learning-paths { + background: #dde9fe; + } + + .np-learning-path { + border: 3px solid #002e6e; + border-radius: 25px; + } + .lp-header-container { + background: #f2ede7; + } + .lp-heading { + font-size: 2.5rem; + color: #002f6f; + padding: 3rem 2rem; + font-weight: 700; + } +.category-card { + text-decoration: none; +} + +.page-content { + margin: 20px; +} \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Cin7 Customers/training_events.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/training_events.html.liquid new file mode 100644 index 00000000..b9a25986 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/training_events.html.liquid @@ -0,0 +1,11 @@ +{% include "header" %} + +
+
Events
+
+
+
+ {% include "training_events_index" %} +
+
+{% include "footer" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/training_session.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/training_session.html.liquid new file mode 100644 index 00000000..5b78b834 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/training_session.html.liquid @@ -0,0 +1,10 @@ +{% include "header" %} +
+
+ {% include "training_session_desktop_view" %} +
+
+ {% include "training_session_mobile_view" %} +
+
+{% include "footer" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/training_session_attendance.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/training_session_attendance.html.liquid new file mode 100644 index 00000000..71bb6119 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/training_session_attendance.html.liquid @@ -0,0 +1,43 @@ +{% include "header" %} +
+
+ {% if token %} + +
+ {{ training_session.title }} +
+
+ {% t .info, + event_name: training_session.title, + session_date: training_session.date, + session_time: training_session.time + %} +
+
+ {% t .question %} +
+
+ {% form_authenticity_token %} + + + +
+
+ {% t .salutation %} +
+
+ {{ current_school.name }} +
+ {% else %} + +
+ {% t .success.response_text %} +
+ +
+{% include "footer" %} diff --git a/Custom_Templates/customer_templates/Cin7 Customers/unsubscribe.html.liquid b/Custom_Templates/customer_templates/Cin7 Customers/unsubscribe.html.liquid new file mode 100644 index 00000000..69a54028 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customers/unsubscribe.html.liquid @@ -0,0 +1,30 @@ +{% include "header" %} +
+
+ {% if token %} + +
+ {% t .unsubscribe_text %} +
+
+ {% t .resubscribe_text %} +
+
+ {% form_authenticity_token %} + + +
+ {% else %} + +
+ {% t .resubscribed_text %} +
+ {% endif %} +
+
+{% include "footer" %} diff --git a/CustomerNotes/Anthology/anthology-parse-csv-test.csv b/CustomerNotes/Anthology/anthology-parse-csv-test.csv new file mode 100644 index 00000000..9815ec58 --- /dev/null +++ b/CustomerNotes/Anthology/anthology-parse-csv-test.csv @@ -0,0 +1,3 @@ +domain,group_1,group_2,group_3 +scad.edu,Learn - (T1),Accreditation - (T1),Anthology 101 - (T1),Outcomes - (T1),Planning - (T1) +uoregon.edu,Anthology 101 - (T1),Encompass - (T1),Encompass - (T2),Engage - (T1) diff --git a/CustomerNotes/Anthology/mappingsdict.py b/CustomerNotes/Anthology/mappingsdict.py index 7aab68ab..6189a8c4 100644 --- a/CustomerNotes/Anthology/mappingsdict.py +++ b/CustomerNotes/Anthology/mappingsdict.py @@ -413,6 +413,8 @@ mappings = [ { "uuid": "2b5267b2-ce87-4e77-ad88-5cfec80496b9", "domains": [ + "@nypcls.org", + "@cahe.edu", "@nevadastate.edu", "@statealum.com", "@dot.gov", @@ -3860,6 +3862,7 @@ mappings = [ { "uuid": "f02032d3-3d60-4cb1-acac-855c229646c3", "domains": [ + "@uoregon.edu", "@caltech.edu", "@sbu.edu", "@tamuct.edu", @@ -4971,7 +4974,6 @@ mappings = [ "@kingsu.ca", "@eac.edu", "@url.edu.gt", - "@citycollege.edu", "@frontier.edu", "@pccc.edu", "@highlandscollege.edu", @@ -5013,7 +5015,6 @@ mappings = [ "@oregoncoast.edu", "@senmc.edu", "@kingsu.ca", - "@citycollege.edu", "@frontier.edu", "@pccc.edu", "@oakpoint.edu", @@ -6205,6 +6206,7 @@ mappings = [ { "uuid": "604dd8b8-175a-4a74-93d2-28760f1d1835", "domains": [ + "@scad.edu", "@lifedemo.edu", "@npc.edu", "@cochise.edu", @@ -6597,7 +6599,6 @@ mappings = [ "@carlsbad.nmsu.edu", "@kingsu.ca", "@eac.edu", - "@citycollege.edu", "@oakpoint.edu", "@westmoreland.edu", "@nightingale.edu", @@ -6615,7 +6616,6 @@ mappings = [ "@rcc.edu", "@stchas.edu", "@kingsu.ca", - "@citycollege.edu", ], "props": "Anthology Payroll: Enhanced", }, @@ -7124,6 +7124,8 @@ mappings = [ { "uuid": "5f35e542-a8cf-4422-8e87-466cdca62864", "domains": [ + "@nypcls.org", + "@cahe.edu", "@sherman.edu", "@evanza.com.mx", "@nu.edu", @@ -7934,7 +7936,6 @@ mappings = [ "@durham.ac.uk", "@royalroads.ca", "@url.edu.gt", - "@citycollege.edu", "@allencollege.edu", "@stlukescollege.edu", "@trinitycollegeqc.edu", @@ -8006,7 +8007,6 @@ mappings = [ "@spartan.edu", "@clarksoncollege.edu", "@bshsi.org", - "@citycollege.edu", "@allencollege.edu", "@waldorf.edu", "@frontier.edu", @@ -8071,6 +8071,8 @@ mappings = [ { "uuid": "106775db-a00d-4956-bf27-97ea269bb001", "domains": [ + "@nypcls.org", + "@cahe.edu", "@evanza.com.mx", "@nu.edu", "@ciaml.com", @@ -8481,7 +8483,6 @@ mappings = [ "@clarksoncollege.edu", "@theuniversityofeducation.org", "@claremont.edu", - "@citycollege.edu", "@cffp.edu", "@waldorf.edu", "@frontier.edu", diff --git a/Scripts/GAS_GS/AnthologyCSV-Parse/parseCSV.js b/Scripts/GAS_GS/AnthologyCSV-Parse/parseCSV.js index e8e4ef1a..18cc88b4 100644 --- a/Scripts/GAS_GS/AnthologyCSV-Parse/parseCSV.js +++ b/Scripts/GAS_GS/AnthologyCSV-Parse/parseCSV.js @@ -1,15 +1,10 @@ const apiKey = '8ALsk8jDOlynEwn8ScMBSnG87'; -let indexRange = (arr, start, end) => { - return arr.slice(start, end) -} - function main() { var folder = DriveApp.getFolderById("15p4vXVQd6hhcMl73VOxD8VctL2gR-q43") var files = folder.getFiles() while (files.hasNext()) { var file = files.next(); - //var date = "Wed Jan 10 2024 15:01:58 GMT-0500 (Eastern Standard Time)" var getDate = new Date(); var date = Utilities.formatDate(getDate, 'America/New_York', 'MM/dd/yyyy'); var fileDate = file.getLastUpdated(); @@ -20,17 +15,27 @@ function main() { var updated_data = Utilities.parseCsv(updated_blob, ','); } } - quickParse(updated_data); - //parseCSV(outdated_data, updated_data) + //quickParse(updated_data); + writeDataToSheet(updated_data); } +//Inserts a new sheet and writes a 2D array of data in it +function writeDataToSheet(updated_data) { + var ss = SpreadsheetApp.openByUrl('https://docs.google.com/spreadsheets/d/1Kck1UUOkVIU4kbBC8b_bl77fNaCTSFStiv0I5Gg-kIc/'); + sheet = ss.insertSheet(); + sheet.getRange(1, 1, updated_data.length, updated_data[0].length).setValues(updated_data); + Logger.log(sheet.getName()); +} + + function quickParse(updated_data) { for (var x = 1; x < updated_data.length; x++) { var array = updated_data[x]; for (var i = 1; i < array.length; i++) { var item = array[i] if (item != "") { - var api_url = 'https://api.northpass.com/v2/groups/?filter[name][eq]='+item; + var api_url = 'https://api.northpass.com/v2/groups/?filter[name][eq]='+encodeURIComponent(item); + Logger.log(api_url) const settings = { async: true, crossDomain: true, @@ -52,8 +57,18 @@ function quickParse(updated_data) { } const dom = array.shift(); const groups = array; - Logger.log(groups) - const domain_to_update = { domain: dom, group_ids: groups } - Logger.log(domain_to_update) + //const domain_to_update : { domain: dom, group_ids: groups } + sendWebhook({domain_to_update : { domain: dom, group_ids: groups }}) } } + +function sendWebhook(domain_to_update){ + var payload = domain_to_update + //Logger.log(JSON.stringify(payload)) + var options = { + 'method': 'post', + 'payload': JSON.stringify(payload) + }; + //UrlFetchApp.fetch('https://webhooks.workato.com/webhooks/rest/604b4fc0-fcd9-4f3b-b715-b42d7f740ba6/domains-updated', options); + +}