From da2e0d2c3857331e25560439cae1d1352874ca26 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Fri, 19 Jul 2024 16:29:00 -0400 Subject: [PATCH] New script for getting everyone who is in each group and export to CSV. Skan templates. A few other small things --- .../_header.html.liquid | 2 +- .../Skan/_account_avatar.html.liquid | 66 +++++ .../Skan/_account_desktop_view.html.liquid | 19 ++ .../Skan/_account_form.html.liquid | 140 +++++++++++ .../Skan/_account_mobile_view.html.liquid | 17 ++ .../Skan/_cards_course.html.liquid | 34 +++ .../Skan/_cards_featured_course.html.liquid | 190 +++++++++++++++ .../Skan/_cards_learning_path.html.liquid | 70 ++++++ .../Skan/_cards_training_event.html.liquid | 45 ++++ .../_certificates_info_column.html.liquid | 4 + .../Skan/_certificates_metadata.html.liquid | 59 +++++ .../Skan/_certificates_preview.html.liquid | 35 +++ .../Skan/_certificates_top_bar.html.liquid | 44 ++++ .../_certificates_verification.html.liquid | 15 ++ .../Skan/_course_activity_locked.html.liquid | 4 + .../_course_activity_unlocked.html.liquid | 15 ++ .../Skan/_course_categories.html.liquid | 10 + .../Skan/_course_description.html.liquid | 6 + .../Skan/_course_desktop_view.html.liquid | 40 +++ .../Skan/_course_details.html.liquid | 31 +++ .../Skan/_course_events.html.liquid | 28 +++ .../Skan/_course_header.html.liquid | 24 ++ .../Skan/_course_instructors.html.liquid | 22 ++ .../Skan/_course_mobile_view.html.liquid | 40 +++ .../Skan/_course_outline.html.liquid | 40 +++ .../Skan/_course_progress_and_cta.html.liquid | 46 ++++ ..._course_version_outdated_alert.html.liquid | 7 + ..._course_version_outdated_popup.html.liquid | 33 +++ .../Skan/_courses_catalog.html.liquid | 16 ++ .../Skan/_courses_index.html.liquid | 16 ++ .../Skan/_courses_zero_state.html.liquid | 6 + .../Skan/_filter_checkbox.html.liquid | 10 + .../Skan/_filter_dropdown.html.liquid | 51 ++++ .../Skan/_filter_select.html.liquid | 22 ++ .../Skan/_footer.html.liquid | 69 ++++++ .../customer_templates/Skan/_head.html.liquid | 3 + .../Skan/_header.html.liquid | 157 ++++++++++++ .../Skan/_header_minimal.html.liquid | 17 ++ .../Skan/_learning_path_banners.html.liquid | 5 + .../_learning_path_certificate.html.liquid | 17 ++ ...rning_path_certificate_content.html.liquid | 19 ++ ...learning_path_completed_banner.html.liquid | 13 + .../Skan/_learning_path_course.html.liquid | 58 +++++ .../_learning_path_description.html.liquid | 10 + ..._learning_path_desktop_content.html.liquid | 21 ++ .../_learning_path_desktop_header.html.liquid | 12 + .../_learning_path_desktop_view.html.liquid | 40 +++ .../_learning_path_instructors.html.liquid | 26 ++ .../_learning_path_mobile_content.html.liquid | 19 ++ .../_learning_path_mobile_header.html.liquid | 17 ++ .../_learning_path_mobile_view.html.liquid | 2 + ...arning_path_new_content_banner.html.liquid | 12 + .../Skan/_learning_path_outline.html.liquid | 10 + ...learning_path_progress_and_cta.html.liquid | 21 ++ ...ning_path_summary_desktop_view.html.liquid | 3 + ...rning_path_summary_mobile_view.html.liquid | 5 + ...learning_path_training_session.html.liquid | 53 ++++ .../Skan/_learning_paths_index.html.liquid | 14 ++ .../Skan/_messages.html.liquid | 23 ++ .../Skan/_search_result.html.liquid | 19 ++ .../Skan/_search_zero_state.html.liquid | 13 + .../Skan/_sub_navigation.html.liquid | 102 ++++++++ .../_training_events_dashboard.html.liquid | 9 + .../Skan/_training_events_filter.html.liquid | 53 ++++ .../Skan/_training_events_index.html.liquid | 13 + .../_training_events_zero_state.html.liquid | 9 + .../_training_session_calendars.html.liquid | 52 ++++ .../Skan/_training_session_cta.html.liquid | 53 ++++ .../Skan/_training_session_date.html.liquid | 14 ++ .../_training_session_description.html.liquid | 6 + ..._training_session_desktop_view.html.liquid | 40 +++ .../_training_session_details.html.liquid | 24 ++ .../Skan/_training_session_header.html.liquid | 10 + .../_training_session_mobile_view.html.liquid | 22 ++ ...training_session_more_sessions.html.liquid | 3 + .../Skan/_training_session_tile.html.liquid | 17 ++ .../Skan/account.html.liquid | 14 ++ .../Skan/auth_url_email.html.liquid | 59 +++++ .../Skan/auth_url_employee.html.liquid | 59 +++++ .../Skan/auth_url_phone_number.html.liquid | 40 +++ .../Skan/auth_url_terms.html.liquid | 74 ++++++ .../Skan/catalog.html.liquid | 21 ++ .../Skan/course.html.liquid | 39 +++ .../Skan/courses.html.liquid | 11 + .../Skan/dashboard.html.liquid | 27 ++ .../Skan/forgot_password.html.liquid | 25 ++ .../Skan/homepage.html.liquid | 108 ++++++++ .../Skan/learning_path.html.liquid | 27 ++ .../Skan/learning_path_summary.html.liquid | 10 + .../Skan/learning_paths.html.liquid | 14 ++ .../customer_templates/Skan/login.html.liquid | 53 ++++ .../Skan/master.html.liquid | 1 + .../Skan/not_found.html.liquid | 10 + .../Skan/private_certificate.html.liquid | 10 + .../Skan/public_certificate.html.liquid | 10 + .../Skan/reset_password.html.liquid | 43 ++++ .../Skan/search.html.liquid | 27 ++ .../Skan/sign_up.html.liquid | 72 ++++++ .../customer_templates/Skan/styles.css.liquid | 230 ++++++++++++++++++ .../Skan/training_events.html.liquid | 18 ++ .../Skan/training_session.html.liquid | 10 + .../training_session_attendance.html.liquid | 43 ++++ .../Skan/unsubscribe.html.liquid | 30 +++ Scripts/API_Tests/Apikeys.py | 1 + .../__pycache__/Apikeys.cpython-310.pyc | Bin 1331 -> 1370 bytes Scripts/API_Tests/get_groups_and_learners.py | 60 +++++ .../MasterCSV_Parser.js | 13 +- tmp.md | 17 ++ 108 files changed, 3481 insertions(+), 7 deletions(-) create mode 100644 Custom_Templates/customer_templates/Skan/_account_avatar.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_account_desktop_view.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_account_form.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_account_mobile_view.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_cards_course.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_cards_featured_course.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_cards_learning_path.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_cards_training_event.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_certificates_info_column.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_certificates_metadata.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_certificates_preview.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_certificates_top_bar.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_certificates_verification.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_course_activity_locked.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_course_activity_unlocked.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_course_categories.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_course_description.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_course_desktop_view.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_course_details.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_course_events.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_course_header.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_course_instructors.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_course_mobile_view.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_course_outline.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_course_progress_and_cta.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_course_version_outdated_alert.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_course_version_outdated_popup.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_courses_catalog.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_courses_index.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_courses_zero_state.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_filter_checkbox.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_filter_dropdown.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_filter_select.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_footer.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_head.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_header.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_header_minimal.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_banners.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_certificate.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_certificate_content.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_completed_banner.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_course.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_description.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_desktop_content.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_desktop_header.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_desktop_view.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_instructors.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_mobile_content.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_mobile_header.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_mobile_view.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_new_content_banner.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_outline.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_progress_and_cta.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_summary_desktop_view.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_summary_mobile_view.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_path_training_session.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_learning_paths_index.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_messages.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_search_result.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_search_zero_state.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_sub_navigation.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_training_events_dashboard.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_training_events_filter.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_training_events_index.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_training_events_zero_state.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_training_session_calendars.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_training_session_cta.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_training_session_date.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_training_session_description.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_training_session_desktop_view.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_training_session_details.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_training_session_header.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_training_session_mobile_view.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_training_session_more_sessions.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/_training_session_tile.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/account.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/auth_url_email.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/auth_url_employee.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/auth_url_phone_number.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/auth_url_terms.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/catalog.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/course.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/courses.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/dashboard.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/forgot_password.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/homepage.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/learning_path.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/learning_path_summary.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/learning_paths.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/login.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/master.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/not_found.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/private_certificate.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/public_certificate.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/reset_password.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/search.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/sign_up.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/styles.css.liquid create mode 100644 Custom_Templates/customer_templates/Skan/training_events.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/training_session.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/training_session_attendance.html.liquid create mode 100644 Custom_Templates/customer_templates/Skan/unsubscribe.html.liquid create mode 100644 Scripts/API_Tests/get_groups_and_learners.py create mode 100644 tmp.md diff --git a/Custom_Templates/customer_templates/DoubleVerify University/_header.html.liquid b/Custom_Templates/customer_templates/DoubleVerify University/_header.html.liquid index 4effe052..c509a5a5 100644 --- a/Custom_Templates/customer_templates/DoubleVerify University/_header.html.liquid +++ b/Custom_Templates/customer_templates/DoubleVerify University/_header.html.liquid @@ -58,7 +58,7 @@
  • Spanish (EspaƱol)
  • German (Deutsch)
  • - + {% else %} diff --git a/Custom_Templates/customer_templates/Skan/_account_avatar.html.liquid b/Custom_Templates/customer_templates/Skan/_account_avatar.html.liquid new file mode 100644 index 00000000..d952af93 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_account_avatar.html.liquid @@ -0,0 +1,66 @@ +
    +

    {% t .description %}

    +

    {% t .requirements %}

    +
    + + + + +
    +
    + +
    + +
    + +
    +
    + +
    +
    diff --git a/Custom_Templates/customer_templates/Skan/_account_desktop_view.html.liquid b/Custom_Templates/customer_templates/Skan/_account_desktop_view.html.liquid new file mode 100644 index 00000000..8ae8599d --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_account_desktop_view.html.liquid @@ -0,0 +1,19 @@ +
    + + {% form_authenticity_token %} +
    +
    +
    + + +
    +
    +
    +
    diff --git a/Custom_Templates/customer_templates/Skan/_account_form.html.liquid b/Custom_Templates/customer_templates/Skan/_account_form.html.liquid new file mode 100644 index 00000000..322af7ab --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_account_form.html.liquid @@ -0,0 +1,140 @@ +
    + {% 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/Skan/_account_mobile_view.html.liquid b/Custom_Templates/customer_templates/Skan/_account_mobile_view.html.liquid new file mode 100644 index 00000000..6ac8c007 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_account_mobile_view.html.liquid @@ -0,0 +1,17 @@ +
    + + {% form_authenticity_token %} + + + +
    diff --git a/Custom_Templates/customer_templates/Skan/_cards_course.html.liquid b/Custom_Templates/customer_templates/Skan/_cards_course.html.liquid new file mode 100644 index 00000000..43c2aca9 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_cards_course.html.liquid @@ -0,0 +1,34 @@ +
    +
    + {% if course.ribbon %} +
    + {{ course.ribbon }} +
    + {% endif %} + {{ course.name }} +
    +

    + {{ course.name }} +

    +
    + {{ course.instructor_names }} +
    + +
    +
    +
    diff --git a/Custom_Templates/customer_templates/Skan/_cards_featured_course.html.liquid b/Custom_Templates/customer_templates/Skan/_cards_featured_course.html.liquid new file mode 100644 index 00000000..e76a91ea --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_cards_featured_course.html.liquid @@ -0,0 +1,190 @@ +{% comment %}
    + {% capture course_path %}{% route course, id: course.id %}{% endcapture %} + + + + +
    {% endcomment %} + +
    + +
    + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Skan/_cards_learning_path.html.liquid b/Custom_Templates/customer_templates/Skan/_cards_learning_path.html.liquid new file mode 100644 index 00000000..eb20e4d8 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_cards_learning_path.html.liquid @@ -0,0 +1,70 @@ +
    +
    +
    + {{ learning_path.name }} +
    +
    + +
    Certification
    +
    + {{ learning_path.items.count }} {% t .items %} +
    +
    +
    +
    Certification
    + +
    + +
    +

    + {{ learning_path.name }} +

    + +
    + {{ learning_path.instructor_names }} +
    + +
    + {{ learning_path.description }} +
    + +
    + {% t shared.progress, count: learning_path.progress %} +
    + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    +
    diff --git a/Custom_Templates/customer_templates/Skan/_cards_training_event.html.liquid b/Custom_Templates/customer_templates/Skan/_cards_training_event.html.liquid new file mode 100644 index 00000000..1176157e --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_cards_training_event.html.liquid @@ -0,0 +1,45 @@ +
    +
    +
    +

    + {{ 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 %} + + + {% t shared.view %} + +
    +
    +
    +
    diff --git a/Custom_Templates/customer_templates/Skan/_certificates_info_column.html.liquid b/Custom_Templates/customer_templates/Skan/_certificates_info_column.html.liquid new file mode 100644 index 00000000..61adfaba --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_certificates_info_column.html.liquid @@ -0,0 +1,4 @@ +
    + {% include "certificates_verification" %} + {% include "certificates_metadata" %} +
    diff --git a/Custom_Templates/customer_templates/Skan/_certificates_metadata.html.liquid b/Custom_Templates/customer_templates/Skan/_certificates_metadata.html.liquid new file mode 100644 index 00000000..9f4a1dba --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_certificates_metadata.html.liquid @@ -0,0 +1,59 @@ +
    +
    + +
    + + {% if certificate.issuer_name_enabled? %} + +
    + {% endif %} + + +
    + +
    +
    diff --git a/Custom_Templates/customer_templates/Skan/_certificates_preview.html.liquid b/Custom_Templates/customer_templates/Skan/_certificates_preview.html.liquid new file mode 100644 index 00000000..6357b621 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_certificates_preview.html.liquid @@ -0,0 +1,35 @@ + + +
    +
    +
    + +
    +
    +
    diff --git a/Custom_Templates/customer_templates/Skan/_certificates_top_bar.html.liquid b/Custom_Templates/customer_templates/Skan/_certificates_top_bar.html.liquid new file mode 100644 index 00000000..74a7ae41 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_certificates_verification.html.liquid b/Custom_Templates/customer_templates/Skan/_certificates_verification.html.liquid new file mode 100644 index 00000000..4fc19415 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_certificates_verification.html.liquid @@ -0,0 +1,15 @@ +
    +
    +
    + +
    +
    +

    + {{certificate.verification_title}} +

    +

    + {{certificate.verification_description}} +

    +
    +
    +
    diff --git a/Custom_Templates/customer_templates/Skan/_course_activity_locked.html.liquid b/Custom_Templates/customer_templates/Skan/_course_activity_locked.html.liquid new file mode 100644 index 00000000..386393d5 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_course_activity_locked.html.liquid @@ -0,0 +1,4 @@ + + + {{ activity.title }} + diff --git a/Custom_Templates/customer_templates/Skan/_course_activity_unlocked.html.liquid b/Custom_Templates/customer_templates/Skan/_course_activity_unlocked.html.liquid new file mode 100644 index 00000000..30c03305 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_course_categories.html.liquid b/Custom_Templates/customer_templates/Skan/_course_categories.html.liquid new file mode 100644 index 00000000..6cfe9010 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_course_description.html.liquid b/Custom_Templates/customer_templates/Skan/_course_description.html.liquid new file mode 100644 index 00000000..269f9216 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_course_desktop_view.html.liquid b/Custom_Templates/customer_templates/Skan/_course_desktop_view.html.liquid new file mode 100644 index 00000000..e16fee16 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_course_desktop_view.html.liquid @@ -0,0 +1,40 @@ +
    +
    + {% include "course_header" %} +
    +
    +
    +
    + {{ course.name }} + {% 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/Skan/_course_details.html.liquid b/Custom_Templates/customer_templates/Skan/_course_details.html.liquid new file mode 100644 index 00000000..92bebb59 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_course_details.html.liquid @@ -0,0 +1,31 @@ +{% assign activities_count = 0 %} +{% for course_section in course.sections %} + {% for course_activity in course_section.activities %} + {% assign activities_count = activities_count | plus: 1 %} + {% endfor %} +{% endfor %} + +
    +
    + {{ activities_count }} + + {% if activities_count == 1 %}Activity{% else %}Activities{% endif %} + +
    +
    + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Skan/_course_events.html.liquid b/Custom_Templates/customer_templates/Skan/_course_events.html.liquid new file mode 100644 index 00000000..5fa80eef --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_course_header.html.liquid b/Custom_Templates/customer_templates/Skan/_course_header.html.liquid new file mode 100644 index 00000000..fce09e1e --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_course_header.html.liquid @@ -0,0 +1,24 @@ +
    + {{ current_school.course_vocabulary }} + + +
    +
    + + + + {{ course.name }} +
    +{{ course.name }} + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Skan/_course_instructors.html.liquid b/Custom_Templates/customer_templates/Skan/_course_instructors.html.liquid new file mode 100644 index 00000000..8b608928 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_course_mobile_view.html.liquid b/Custom_Templates/customer_templates/Skan/_course_mobile_view.html.liquid new file mode 100644 index 00000000..7f31ff35 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_course_outline.html.liquid b/Custom_Templates/customer_templates/Skan/_course_outline.html.liquid new file mode 100644 index 00000000..38f87bd9 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_course_progress_and_cta.html.liquid b/Custom_Templates/customer_templates/Skan/_course_progress_and_cta.html.liquid new file mode 100644 index 00000000..732e25c0 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_course_version_outdated_alert.html.liquid b/Custom_Templates/customer_templates/Skan/_course_version_outdated_alert.html.liquid new file mode 100644 index 00000000..c7e9c023 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_course_version_outdated_alert.html.liquid @@ -0,0 +1,7 @@ +{% if courses.include_courses_to_restart? %} + +{% endif %} diff --git a/Custom_Templates/customer_templates/Skan/_course_version_outdated_popup.html.liquid b/Custom_Templates/customer_templates/Skan/_course_version_outdated_popup.html.liquid new file mode 100644 index 00000000..71795884 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_course_version_outdated_popup.html.liquid @@ -0,0 +1,33 @@ +
    +
    + + +
    +
    diff --git a/Custom_Templates/customer_templates/Skan/_courses_catalog.html.liquid b/Custom_Templates/customer_templates/Skan/_courses_catalog.html.liquid new file mode 100644 index 00000000..ea1e9ea4 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_courses_index.html.liquid b/Custom_Templates/customer_templates/Skan/_courses_index.html.liquid new file mode 100644 index 00000000..19e7671b --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_courses_zero_state.html.liquid b/Custom_Templates/customer_templates/Skan/_courses_zero_state.html.liquid new file mode 100644 index 00000000..26e371f7 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_courses_zero_state.html.liquid @@ -0,0 +1,6 @@ +
    +
    + {{ message }} +
    + {{ message }} +
    diff --git a/Custom_Templates/customer_templates/Skan/_filter_checkbox.html.liquid b/Custom_Templates/customer_templates/Skan/_filter_checkbox.html.liquid new file mode 100644 index 00000000..5cbcbd07 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_filter_checkbox.html.liquid @@ -0,0 +1,10 @@ + + diff --git a/Custom_Templates/customer_templates/Skan/_filter_dropdown.html.liquid b/Custom_Templates/customer_templates/Skan/_filter_dropdown.html.liquid new file mode 100644 index 00000000..ad8ed91f --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_filter_dropdown.html.liquid @@ -0,0 +1,51 @@ +
    + +
    + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Skan/_filter_select.html.liquid b/Custom_Templates/customer_templates/Skan/_filter_select.html.liquid new file mode 100644 index 00000000..d006c0df --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_filter_select.html.liquid @@ -0,0 +1,22 @@ +{% if params.q %} + +{% endif %} + + + + diff --git a/Custom_Templates/customer_templates/Skan/_footer.html.liquid b/Custom_Templates/customer_templates/Skan/_footer.html.liquid new file mode 100644 index 00000000..5ab96225 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_footer.html.liquid @@ -0,0 +1,69 @@ + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Skan/_head.html.liquid b/Custom_Templates/customer_templates/Skan/_head.html.liquid new file mode 100644 index 00000000..beab5b4a --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_head.html.liquid @@ -0,0 +1,3 @@ +{% styles default %} +{% styles colors %} +{% styles custom %} diff --git a/Custom_Templates/customer_templates/Skan/_header.html.liquid b/Custom_Templates/customer_templates/Skan/_header.html.liquid new file mode 100644 index 00000000..a336f998 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_header.html.liquid @@ -0,0 +1,157 @@ +{% comment %}--------------------------------------- MOBILE HEADER ---------------------------------------{% endcomment %} +
    +
    +{% comment %}--------------------------------------- SCHOOL LOGO AND ROUTE ---------------------------------------{% endcomment %} + {% if current_school.logo_url %} +

    + + {{ current_school.name }} + +

    + {% else %} + + {{ current_school.name }} + + {% endif %} +{% comment %}--------------------------------------- DESKTOP HEADER ITEMS ---------------------------------------{% endcomment %} + {% comment %} NAV LINKS {% endcomment %} + {% include "sub_navigation" %} + {%- comment -%}
    + +
    + + {% if current_person.signed_in? %} + + COURSE CATALOG + + {% else %} +
    + +{% comment %}--------------------------------------- MOBILE HEADER ---------------------------------------{% endcomment %} +
    +
    +
    +{% include "messages" %} + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Skan/_header_minimal.html.liquid b/Custom_Templates/customer_templates/Skan/_header_minimal.html.liquid new file mode 100644 index 00000000..c1ec44f6 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_learning_path_banners.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_banners.html.liquid new file mode 100644 index 00000000..11a1810c --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_learning_path_certificate.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_certificate.html.liquid new file mode 100644 index 00000000..3a282c5e --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_learning_path_certificate_content.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_certificate_content.html.liquid new file mode 100644 index 00000000..3feafd59 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_learning_path_completed_banner.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_completed_banner.html.liquid new file mode 100644 index 00000000..1c146f6e --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_learning_path_course.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_course.html.liquid new file mode 100644 index 00000000..70a72afe --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_learning_path_course.html.liquid @@ -0,0 +1,58 @@ +{% if learning_path.enrolled? and course.unlocked? %} +
    + +
    + {{ course.name }} +
    +
    + {{ course.name }} +
    + {% if course.instructors %} +
    + {{ course.instructors }} +
    + {% endif %} +
    + {% t shared.progress, count: course.progress %} +
    +
    + + {% if course.optional? %} +
    + {% t shared.optional %} +
    + {% endif %} +
    +
    +{% else %} + +
    +
    + + {{ course.name }} +
    +
    + {{ course.name }} +
    +
    + {% if course.optional? %} +
    + {% t shared.optional %} +
    + {% endif %} +
    +
    +{% endif %} diff --git a/Custom_Templates/customer_templates/Skan/_learning_path_description.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_description.html.liquid new file mode 100644 index 00000000..f95b590a --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_learning_path_description.html.liquid @@ -0,0 +1,10 @@ +

    + {% if learning_path.id == '322533f2-4dbc-48ca-857a-43f869ad9b7b' or learning_path.id == 'ccf0084a-4d3f-4239-a2f8-6c6d52bf2480' %} + About this Training Program + {% else %} + About This Certification + {% endif %} +

    +
    + {{ learning_path.description }} +
    diff --git a/Custom_Templates/customer_templates/Skan/_learning_path_desktop_content.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_desktop_content.html.liquid new file mode 100644 index 00000000..e9ca85d9 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_learning_path_desktop_content.html.liquid @@ -0,0 +1,21 @@ +
    +
    +
    + {{ 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/Skan/_learning_path_desktop_header.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_desktop_header.html.liquid new file mode 100644 index 00000000..f574a509 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_learning_path_desktop_header.html.liquid @@ -0,0 +1,12 @@ +
    +
    + {% t shared.learning_path.title %} + +
    +
    + + + + {{ learning_path.name }} +
    +
    diff --git a/Custom_Templates/customer_templates/Skan/_learning_path_desktop_view.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_desktop_view.html.liquid new file mode 100644 index 00000000..93e716cc --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_learning_path_desktop_view.html.liquid @@ -0,0 +1,40 @@ +
    +
    + Certification + +
    +
    + + + + {{ learning_path.name }} +
    +
    + +
    +
    +
    + {{ learning_path.name }} +
    + {% include "learning_path_description" %} + {% include "learning_path_instructors" %} +
    +
    +
    +
    +
    + {% include "learning_path_progress_and_cta" %} +
    + {% include "learning_path_outline" %} +
    +
    + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Skan/_learning_path_instructors.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_instructors.html.liquid new file mode 100644 index 00000000..a8342301 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_learning_path_mobile_content.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_mobile_content.html.liquid new file mode 100644 index 00000000..92ffd4c8 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_learning_path_mobile_header.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_mobile_header.html.liquid new file mode 100644 index 00000000..2bf66a5a --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_learning_path_mobile_view.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_mobile_view.html.liquid new file mode 100644 index 00000000..0e22feb9 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_learning_path_new_content_banner.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_new_content_banner.html.liquid new file mode 100644 index 00000000..2bc02d46 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_learning_path_outline.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_outline.html.liquid new file mode 100644 index 00000000..22ddd573 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_learning_path_progress_and_cta.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_progress_and_cta.html.liquid new file mode 100644 index 00000000..43d6d5e1 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_learning_path_progress_and_cta.html.liquid @@ -0,0 +1,21 @@ +{% if learning_path.enrolled? %} + +
    +
    + Certification Progress +
    +
    +
    +
    +
    +
    + {% t shared.progress, count: learning_path.progress %} +
    +
    +{% endif %} + +{% learning_path_next_step_button learning_path, class: "np-top-button np-button-font-color np-button np-button-big" %} diff --git a/Custom_Templates/customer_templates/Skan/_learning_path_summary_desktop_view.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_summary_desktop_view.html.liquid new file mode 100644 index 00000000..05961c52 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_learning_path_summary_mobile_view.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_summary_mobile_view.html.liquid new file mode 100644 index 00000000..f30a09eb --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_learning_path_training_session.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_path_training_session.html.liquid new file mode 100644 index 00000000..f796cdf4 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_learning_path_training_session.html.liquid @@ -0,0 +1,53 @@ +{% if learning_path.enrolled? and training_session.unlocked? %} +
    + +
    + +
    +
    {{ training_session.name }}
    +
    {{ training_session.instructors }}
    +
    + {{ training_session.time }} {{ training_session.time_zone }} +
    +
    + + {% if training_session.optional? %} +
    + {% t shared.optional %} +
    + {% endif %} +
    +
    +{% else %} +
    +
    + +
    +
    {{ training_session.name }}
    +
    {{ training_session.caption }}
    +
    + {% if training_session.optional? %} +
    + {% t shared.optional %} +
    + {% endif %} +
    +
    +{% endif %} diff --git a/Custom_Templates/customer_templates/Skan/_learning_paths_index.html.liquid b/Custom_Templates/customer_templates/Skan/_learning_paths_index.html.liquid new file mode 100644 index 00000000..a4681210 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_messages.html.liquid b/Custom_Templates/customer_templates/Skan/_messages.html.liquid new file mode 100644 index 00000000..759da419 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_messages.html.liquid @@ -0,0 +1,23 @@ +{% if messages.alert.size > 0 %} +
    +
    + {% for message in messages.alert %} + {% if message == "You need to log in or sign up before continuing."%} +
    You need to be invited to login at this time.
    + {% else %} +
    {{ message }}
    + {% endif %} + {% endfor %} +
    +
    +{% endif %} + +{% if messages.notice.size > 0 %} +
    +
    + {% for message in messages.notice %} +
    {{ message }}
    + {% endfor %} +
    +
    +{% endif %} diff --git a/Custom_Templates/customer_templates/Skan/_search_result.html.liquid b/Custom_Templates/customer_templates/Skan/_search_result.html.liquid new file mode 100644 index 00000000..5c2a4991 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_search_result.html.liquid @@ -0,0 +1,19 @@ +
    +
    +
    + {{ result.name }} +
    + +
    {{ result.description }}
    +
    +
    +
    +
    diff --git a/Custom_Templates/customer_templates/Skan/_search_zero_state.html.liquid b/Custom_Templates/customer_templates/Skan/_search_zero_state.html.liquid new file mode 100644 index 00000000..4e52c6fb --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_search_zero_state.html.liquid @@ -0,0 +1,13 @@ +
    +
    +
    +

    + {% t .nothing_found %} +

    +
    + {% t .empty %} +
    +
    +
    +
    +
    diff --git a/Custom_Templates/customer_templates/Skan/_sub_navigation.html.liquid b/Custom_Templates/customer_templates/Skan/_sub_navigation.html.liquid new file mode 100644 index 00000000..f711de48 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_sub_navigation.html.liquid @@ -0,0 +1,102 @@ + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Skan/_training_events_dashboard.html.liquid b/Custom_Templates/customer_templates/Skan/_training_events_dashboard.html.liquid new file mode 100644 index 00000000..7aeb19ce --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_training_events_dashboard.html.liquid @@ -0,0 +1,9 @@ +
    + {% if training_events.enrolled.any? %} + {% for training_event in training_events.enrolled %} + {% include "cards_training_event" with training_event %} + {% endfor %} + {% else %} + {% include "training_events_zero_state" %} + {% endif %} +
    diff --git a/Custom_Templates/customer_templates/Skan/_training_events_filter.html.liquid b/Custom_Templates/customer_templates/Skan/_training_events_filter.html.liquid new file mode 100644 index 00000000..d4892278 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_training_events_filter.html.liquid @@ -0,0 +1,53 @@ +
    + +
    diff --git a/Custom_Templates/customer_templates/Skan/_training_events_index.html.liquid b/Custom_Templates/customer_templates/Skan/_training_events_index.html.liquid new file mode 100644 index 00000000..ff93b1c8 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_training_events_index.html.liquid @@ -0,0 +1,13 @@ +
    + {% if training_events.available.any? %} +
    + {% for training_event in training_events.available %} +
    + {% include "cards_training_event" with training_event %} +
    + {% endfor %} +
    + {% else %} + {% include "training_events_zero_state" %} + {% endif %} +
    diff --git a/Custom_Templates/customer_templates/Skan/_training_events_zero_state.html.liquid b/Custom_Templates/customer_templates/Skan/_training_events_zero_state.html.liquid new file mode 100644 index 00000000..076b789e --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_training_events_zero_state.html.liquid @@ -0,0 +1,9 @@ +
    +
    + {% t .empty %} +
    + {% t .empty %} +
    diff --git a/Custom_Templates/customer_templates/Skan/_training_session_calendars.html.liquid b/Custom_Templates/customer_templates/Skan/_training_session_calendars.html.liquid new file mode 100644 index 00000000..6c758b73 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_training_session_calendars.html.liquid @@ -0,0 +1,52 @@ + diff --git a/Custom_Templates/customer_templates/Skan/_training_session_cta.html.liquid b/Custom_Templates/customer_templates/Skan/_training_session_cta.html.liquid new file mode 100644 index 00000000..d777c5f6 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_training_session_date.html.liquid b/Custom_Templates/customer_templates/Skan/_training_session_date.html.liquid new file mode 100644 index 00000000..48694035 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_training_session_description.html.liquid b/Custom_Templates/customer_templates/Skan/_training_session_description.html.liquid new file mode 100644 index 00000000..73be4cf4 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_training_session_description.html.liquid @@ -0,0 +1,6 @@ +

    + {% t .header %} +

    +
    + {{ training_event.description }} +
    diff --git a/Custom_Templates/customer_templates/Skan/_training_session_desktop_view.html.liquid b/Custom_Templates/customer_templates/Skan/_training_session_desktop_view.html.liquid new file mode 100644 index 00000000..5c1abfec --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_training_session_details.html.liquid b/Custom_Templates/customer_templates/Skan/_training_session_details.html.liquid new file mode 100644 index 00000000..ae23b7ac --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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 %} + + {% endif %} +
    diff --git a/Custom_Templates/customer_templates/Skan/_training_session_header.html.liquid b/Custom_Templates/customer_templates/Skan/_training_session_header.html.liquid new file mode 100644 index 00000000..10434cfa --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_training_session_mobile_view.html.liquid b/Custom_Templates/customer_templates/Skan/_training_session_mobile_view.html.liquid new file mode 100644 index 00000000..00455d4e --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_training_session_more_sessions.html.liquid b/Custom_Templates/customer_templates/Skan/_training_session_more_sessions.html.liquid new file mode 100644 index 00000000..6cfafa87 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/_training_session_tile.html.liquid b/Custom_Templates/customer_templates/Skan/_training_session_tile.html.liquid new file mode 100644 index 00000000..e5ad8714 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/_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/Skan/account.html.liquid b/Custom_Templates/customer_templates/Skan/account.html.liquid new file mode 100644 index 00000000..2ad5d917 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/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/Skan/auth_url_email.html.liquid b/Custom_Templates/customer_templates/Skan/auth_url_email.html.liquid new file mode 100644 index 00000000..a413959c --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/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/Skan/auth_url_employee.html.liquid b/Custom_Templates/customer_templates/Skan/auth_url_employee.html.liquid new file mode 100644 index 00000000..c8d8adf7 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/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/Skan/auth_url_phone_number.html.liquid b/Custom_Templates/customer_templates/Skan/auth_url_phone_number.html.liquid new file mode 100644 index 00000000..aafae119 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/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/Skan/auth_url_terms.html.liquid b/Custom_Templates/customer_templates/Skan/auth_url_terms.html.liquid new file mode 100644 index 00000000..a7087db2 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/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/Skan/catalog.html.liquid b/Custom_Templates/customer_templates/Skan/catalog.html.liquid new file mode 100644 index 00000000..46a31292 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/catalog.html.liquid @@ -0,0 +1,21 @@ +{% include "header" %} +
    +
    +
    +
    {{ 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/Skan/course.html.liquid b/Custom_Templates/customer_templates/Skan/course.html.liquid new file mode 100644 index 00000000..10a83fdb --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/course.html.liquid @@ -0,0 +1,39 @@ +{% include "header" %} +
    +
    + {% include "course_desktop_view" %} +
    +
    + {% include "course_mobile_view" %} +
    +
    +{% include "footer" %} + + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Skan/courses.html.liquid b/Custom_Templates/customer_templates/Skan/courses.html.liquid new file mode 100644 index 00000000..ef34b59a --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/courses.html.liquid @@ -0,0 +1,11 @@ +{% 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/Skan/dashboard.html.liquid b/Custom_Templates/customer_templates/Skan/dashboard.html.liquid new file mode 100644 index 00000000..e63c83d7 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/dashboard.html.liquid @@ -0,0 +1,27 @@ +{% include "header" %} +{%- comment -%} {% include "course_version_outdated_alert", courses: courses.enrolled %} {%- endcomment -%} +
    +
    +
    + {% if features.learning_paths? %} +
    + Certifications +
    + {% 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/Skan/forgot_password.html.liquid b/Custom_Templates/customer_templates/Skan/forgot_password.html.liquid new file mode 100644 index 00000000..3d65513f --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/forgot_password.html.liquid @@ -0,0 +1,25 @@ +
    +
    + {% include "header_minimal" %} +
    +
    + {% form_authenticity_token %} +
    + + +
    + +
    +
    +
    +
    diff --git a/Custom_Templates/customer_templates/Skan/homepage.html.liquid b/Custom_Templates/customer_templates/Skan/homepage.html.liquid new file mode 100644 index 00000000..32f358c8 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/homepage.html.liquid @@ -0,0 +1,108 @@ +{% include "header" %} +{%- comment -%} {% include "course_version_outdated_alert", courses: courses.featured %} {%- endcomment -%} +
    +
    + {{ homepage.headline }} +
    +
    +
    + {{ homepage.headline }} +
    +
    + {{ homepage.subheadline }} +
    +
    +
    + skan_metrics + skan_three_boxes + skan_process_map +
    +
    +
    + +
    +{% include "footer" %} + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Skan/learning_path.html.liquid b/Custom_Templates/customer_templates/Skan/learning_path.html.liquid new file mode 100644 index 00000000..7c8ebae1 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/learning_path.html.liquid @@ -0,0 +1,27 @@ +{% include "header" %} +
    +
    + {% include "learning_path_desktop_view" %} +
    +
    + {% include "learning_path_mobile_view" %} +
    +
    +{% include "footer" %} + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Skan/learning_path_summary.html.liquid b/Custom_Templates/customer_templates/Skan/learning_path_summary.html.liquid new file mode 100644 index 00000000..99ae32ed --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/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/Skan/learning_paths.html.liquid b/Custom_Templates/customer_templates/Skan/learning_paths.html.liquid new file mode 100644 index 00000000..e6e10cba --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/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/Skan/login.html.liquid b/Custom_Templates/customer_templates/Skan/login.html.liquid new file mode 100644 index 00000000..006653c3 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/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 %} +
    +
    +
    +
    \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Skan/master.html.liquid b/Custom_Templates/customer_templates/Skan/master.html.liquid new file mode 100644 index 00000000..63345068 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/master.html.liquid @@ -0,0 +1 @@ +{% body %} diff --git a/Custom_Templates/customer_templates/Skan/not_found.html.liquid b/Custom_Templates/customer_templates/Skan/not_found.html.liquid new file mode 100644 index 00000000..91c76e4b --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/not_found.html.liquid @@ -0,0 +1,10 @@ +
    + + +
    diff --git a/Custom_Templates/customer_templates/Skan/private_certificate.html.liquid b/Custom_Templates/customer_templates/Skan/private_certificate.html.liquid new file mode 100644 index 00000000..15d05419 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/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/Skan/public_certificate.html.liquid b/Custom_Templates/customer_templates/Skan/public_certificate.html.liquid new file mode 100644 index 00000000..15d05419 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/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/Skan/reset_password.html.liquid b/Custom_Templates/customer_templates/Skan/reset_password.html.liquid new file mode 100644 index 00000000..12bf0d0f --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/reset_password.html.liquid @@ -0,0 +1,43 @@ +
    +
    + {% include "header_minimal" %} +
    +
    + + + {% form_authenticity_token %} +
    + + +
    +
    + + +
    + +
    +
    +
    +
    diff --git a/Custom_Templates/customer_templates/Skan/search.html.liquid b/Custom_Templates/customer_templates/Skan/search.html.liquid new file mode 100644 index 00000000..01684399 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/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/Skan/sign_up.html.liquid b/Custom_Templates/customer_templates/Skan/sign_up.html.liquid new file mode 100644 index 00000000..7a903da4 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/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/Skan/styles.css.liquid b/Custom_Templates/customer_templates/Skan/styles.css.liquid new file mode 100644 index 00000000..05cd6780 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/styles.css.liquid @@ -0,0 +1,230 @@ + /* + 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 { + height: 100%; + margin: 0; + background: url('https://s3.amazonaws.com/static.northpass.com/skan_ai/background.png'); + background-attachment: fixed; + background-repeat: no-repeat; + background-size: cover; +} + +.np-main { + background: transparent; +} + + +.np-sub-navigation { + margin-bottom: 0; +} + +.np-homepage-featured .np-homepage-headline { + color: #ffffff; +} + +/* LOGIN PAGE */ +.np-box .np-form-link { + color:#211579; +} + +/* FOOTER DETAILS */ +.np-footer-support-item { + color: #ffffff; +} + +.np-button-color { + color: #FFFFFF; +} + +.np-button-color:hover { + color: #59D7C9; + transition: color .5s ease, background .5s ease, border .5s; +} + + +/* links for Home, Dashboard, etc. */ +.np-sub-navigation-content{ + color: #ffffff +} + +/* Dashboard page all text*/ +.np-dashboard-resources-title { + color: #FFFFFF; +} + +/* Catalog page all text*/ +.np-footer-logo-image { + filter: none; + opacity: 1; + height: 50px; + width: 100%; +} + +.np-button-background-color { + background: #211579; + color: #FFFFFF; +} + + +.np-button { + color: #FFFFFF; + background: #307fe2; + text-transform: uppercase; + font-family: Jost,sans-serif; +} + +.np-button:hover { + background: #59D7C9; + transition: color .5s ease, background .5s ease, border .5s; + border: 1px solid #59D7C9; + color: #211579; +} + + + +.dropdown-button { + color: #FFFFFF !important; + background: #307fe2 !important; +} + + +.dropdown-button:hover { + color: #211579 !important; + background: #59D7C9 !important; +} + +.dropdown-button-apply { + color: #FFFFFF !important; + background: #307fe2 !important; +} + + +.dropdown-button-apply:hover { + color: #211579 !important; + background: #59D7C9 !important; +} + + + + +.np-card-content-progress, +.np-course-version-outdated-popup-trigger, +.np-card-content-progress .np-button-color{ + color: #211579; + +} + +.np-card-content-progress:hover { + color: #211579; +} + + + +.np-popup-body-button, +.np-learning-paths, { + background-image: linear-gradient(#01061D, #030E43); +} + +.np-popup-body-button:hover { + background: #59D7C9; + color: #211579; + transition: color .5s ease, background .5s ease, border .5s; + +} + +.np-resource-header { + border: 2px solid #e5e9eb; +} + +/* Course progress -course_outline */ + + +/* Newly Updated Styles based on Nitin's Designs */ +@media (min-width: 768px){ + .np-alert-global{ + padding-top: 90px !important; + } + + .np-box-header-logo{ + height: 85px; + } + + .np-homepage .np-card{ + padding: 0; + } + + .np-catalog{ + padding-top: 150px; + } + + .np-dashboard, + .np-training-events{ + padding-top: 155px; + } + + .np-dashboard-resources-container{ + border: 2px solid #211579; + } + + .np-course-outline-content-activity-icon { + color: #59D7C9; + } + + .np-resource-title, + .np-resource-subtitle, + .np-zero-state-text { + color: #211579; + } + + .np-learning-path .np-learning-path-image{ + border-radius: 0; + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; + } + + .np-card-text-wrapper{ + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; + } + + .np-dashboard-resources-title, + .np-card-header-type, + .np-card-header-icon, + .np-learning-path-items, + .np-learning-path-items .np-button-color, + .np-learning-path-items .np-learning-path-items-count, + .np-card-content-title{ + color: #211579; + } + + .np-card-container, + .np-card-stack-level-1, + .np-card-stack-level-2{ + background: #FFFFFF; + border: 2px solid #211579; + } + + .np-learning-path-outline-item{ + border: 2px solid #e5e9eb; + } + + .np-homepage .np-learning-path .np-card-content{ + border: none; + } + + .np-footer, + .np-powered-by { + background: #01061D !important; + } +} + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Skan/training_events.html.liquid b/Custom_Templates/customer_templates/Skan/training_events.html.liquid new file mode 100644 index 00000000..68b3a679 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/training_events.html.liquid @@ -0,0 +1,18 @@ +{% include "header" %} +
    +
    +
    +
    + {% t .title %} +
    +
    + {% t .subtitle %} +
    +
    +
    + {% include "training_events_filter" %} +
    +
    + {% include "training_events_index" %} +
    +{% include "footer" %} diff --git a/Custom_Templates/customer_templates/Skan/training_session.html.liquid b/Custom_Templates/customer_templates/Skan/training_session.html.liquid new file mode 100644 index 00000000..5b78b834 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/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/Skan/training_session_attendance.html.liquid b/Custom_Templates/customer_templates/Skan/training_session_attendance.html.liquid new file mode 100644 index 00000000..71bb6119 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/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/Skan/unsubscribe.html.liquid b/Custom_Templates/customer_templates/Skan/unsubscribe.html.liquid new file mode 100644 index 00000000..69a54028 --- /dev/null +++ b/Custom_Templates/customer_templates/Skan/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/Scripts/API_Tests/Apikeys.py b/Scripts/API_Tests/Apikeys.py index a9dfb542..7545f450 100644 --- a/Scripts/API_Tests/Apikeys.py +++ b/Scripts/API_Tests/Apikeys.py @@ -25,3 +25,4 @@ FULLSTORY = "ePChrDWLegENa2qnfb259O2Ki" RENAISSANCE = "YFykqX1u0d3HveONc5I9CKnJ1" SANDATA = "HdZFoXGCFpt8NnTOzIQY0kVDj" LUMINATE_US = "p5fidpuedHaOlPnd8EcpxzQMG" +SKAN = "89qJQDaFl3DvIpSSOUC5PM9V6" diff --git a/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc b/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc index 461ccba2dde1e3d8438799547a53346fcd616bf5..25cf41cd65f32eadfa0231ecd333670aee5ad41d 100644 GIT binary patch delta 109 zcmdnYb&HEPpO=@50SI;-n3a}0kyn($h@2F7E7?Vqu=B?EU|1BKqFZgCNr`c Mu(2?*Fmf;g0JDA^vH$=8 delta 61 zcmcb`wV8`IpO=@50SM&hPEGTg$SccOFj2dZC73}|dgGGaOw4|o(vxeMn;36RV%a_U QAWJNx*<^WEb0!W(0Qt=jga7~l diff --git a/Scripts/API_Tests/get_groups_and_learners.py b/Scripts/API_Tests/get_groups_and_learners.py new file mode 100644 index 00000000..738a4220 --- /dev/null +++ b/Scripts/API_Tests/get_groups_and_learners.py @@ -0,0 +1,60 @@ +import requests +import Apikeys +import pandas as pd + +BASEURL = "https://api.northpass.com/v2/" +APIKEY = Apikeys.SKAN +HEADERS = {"X-Api-Key": APIKEY, "accept": "application/json"} + +LISTGROUPS = "groups/" +FINALDICT = {} + + +def get_groups(): + count = 0 + groups_list = [] + while True: + count += 1 + groupsurl = f"{BASEURL}{LISTGROUPS}?limit=100&page={count}" + groupsreq = requests.get(groupsurl, headers=HEADERS) + groupson = groupsreq.json() + nextlink = groupson["links"] + + for grous in groupson["data"]: + grouple = (grous["id"], grous["attributes"]["name"]) + groups_list.append(grouple) + + if "next" not in nextlink: + break + + get_memberships(groups_list) + + +def get_memberships(groups_list): + for gids, ginames in groups_list: + count2 = 0 + members_list = [] + while True: + count2 += 1 + group_uuid = gids + LISTMEMBERS = f"{group_uuid}/memberships" + membersurl = f"{BASEURL}{LISTGROUPS}{LISTMEMBERS}?limit=100&page={count2}" + memreq = requests.get(membersurl, headers=HEADERS) + members = memreq.json() + nextlink = members["links"] + + for person in members["included"]: + email = person["attributes"]["email"] + members_list.append(email) + + if "next" not in nextlink: + break + FINALDICT[ginames] = members_list + + df = pd.DataFrame.from_dict(FINALDICT, orient='index') + print(df) + df.to_csv("~/Downloads/Skan_Groups_Members.csv") + + +if __name__ == "__main__": + get_groups() diff --git a/Scripts/GAS_GS/AnthologyCSV-Parse-Prod/MasterCSV_Parser.js b/Scripts/GAS_GS/AnthologyCSV-Parse-Prod/MasterCSV_Parser.js index 3a43f122..d81dc387 100755 --- a/Scripts/GAS_GS/AnthologyCSV-Parse-Prod/MasterCSV_Parser.js +++ b/Scripts/GAS_GS/AnthologyCSV-Parse-Prod/MasterCSV_Parser.js @@ -100,6 +100,7 @@ function updatedDomainsOnly(domains_to_update) { var corrList = []; for (var x = 0; x < domains_to_update.length; x++) { var array = domains_to_update[x]; + Logger.log(array) var currDomain = domains_to_update[x][0] var errorObj = new Object(); var noErrorObj = new Object(); @@ -109,7 +110,6 @@ function updatedDomainsOnly(domains_to_update) { for (var i = 1; i < array.length; i++) { var item = array[i] if (item != "") { - Logger.log("Item/Domain: "+item) var api_url = 'https://api.northpass.com/v2/groups/?filter[name][eq]='+encodeURIComponent(item); const settings = { async: true, @@ -123,15 +123,16 @@ function updatedDomainsOnly(domains_to_update) { const sendMsg = UrlFetchApp.fetch(api_url, settings); var uuidResponse = sendMsg.getContentText(); var parseData = JSON.parse(uuidResponse); + var groupName = array.indexOf(item); if (parseData['data'].length >= 1) { var groupID = parseData['data'][0]['id']; - var groupName = array.indexOf(item); if (groupName != -1) { array[groupName] = groupID; - } + } correctGroups.push(item) } else { errorGroups.push(item); + array[groupName] = ""; } } } @@ -146,9 +147,9 @@ function updatedDomainsOnly(domains_to_update) { sendWebhook({domain_to_update : { domain: dom, group_ids: groups }}) replaceOnSheet(dom, groups); } - MailApp.sendEmail("nrasmussen@gainsight.com", - "Anthology has submitted a CSV", - "Here are the domains that will be updated: "+JSON.stringify(noErrorObj)+"\n\n"+"Group Errors (they likely don't exist): "+JSON.stringify(errorList)); +// MailApp.sendEmail("nrasmussen@gainsight.com", +// "Anthology has submitted a CSV", +// "Here are the domains that will be updated: "+JSON.stringify(noErrorObj)+"\n\n"+"Group Errors (they likely don't exist): "+JSON.stringify(errorList)); MailApp.sendEmail("amitd@anthology.com", "Anthology has submitted a CSV", "Here are the domains that will be updated: "+JSON.stringify(noErrorObj)+"\n\n"+"Group Errors (they likely don't exist): "+JSON.stringify(errorList)); diff --git a/tmp.md b/tmp.md new file mode 100644 index 00000000..3b2b6fdd --- /dev/null +++ b/tmp.md @@ -0,0 +1,17 @@ +Message 1 for Austin: +Oh! Something else for this week... Anthology has been having a few issues this week with the Workato flows. I had to update a few flows. It appears everything has been working since I updated it, but.... it's Anthology. I've asked them to try their best to not reach out to you but if it's preventing their clients from seeing content and accessing courses, I told them to be _very clear_ and share _a lot_ of details if they do have to reach out to you. You know how this whole thing works; nothing has really changed. And I don't trust any of the new support guys. Heck, idk how Brian would help with this... he would just escalate to you. Here are the relevant links and reminder of the flow: +1. Amit formats a CSV with column A being the domain and all the other columns being the groups that domain should be associated with. +2. He Submits the CSV via [Google Form](https://docs.google.com/forms/d/11cDnam9-rPfQN2VpAdQzqK8MbjFEqjuGrpM3rEMx3KM/edit). +3. The Google Form places the CSV in [this drive directory](https://drive.google.com/drive/folders/1hAz7O-eoxFUk4YW7FoHr4uNJmPs7CiV5BjBNTLtMJzXwY0CbpykYgSAkFR5Quy_MPdn3e_5j). +4. A [Google App Script](https://script.google.com/macros/u/0/start?mid=ACjPJvFGVPGTFsTgKy2Q6AvciyfFgXq0BcoXTjfvQkM9NB5TPkS82MTFlTbYhu7ECjjwtSUw7CQMzKPDOW1uQa0Gs8j7nn7fddpAb4rH0GCBW69Kvzc_LbLcbz7J7SFewq_cfnoQah8kPGCe&uiv=2) associated with the form runs and does a few things: a. finds the newer file, b. compares it against the older file, c. finds only changed rows, d. the changed rows are in an array and switches the group names for group UUIDs, e. sends a webhook to [this workato endpoint](https://app.workato.com/recipes/44069920-update-user-groups-by-domain#recipe), f. updates a [master google sheet with all domains and group uuids](https://docs.google.com/spreadsheets/d/1Kck1UUOkVIU4kbBC8b_bl77fNaCTSFStiv0I5Gg-kIc/edit?gid=0#gid=0), g. moves the older csv file to another directory, and sends an email to me and amit with all the updated domains and groups along with any errors that it encountered. +5. Then, when someone new activates in the academy, [this workato recipe](https://app.workato.com/recipes/31333960-activation-mapping-via-sheets#jobs) runs by searching the google sheet for the domain, grabbing all the uuids, and making an API call to add them. + +If Amit comes to you with any issues, I _usually_ find something wrong with a recipe execution on the activation mapping. You can also check the google apps script executions. Google will tell you if it failed along with any log statements - I logged a lot so I can find the error. Most of the time, Amit has done something odd or incorrect, but sometimes it's also just our systems. + + +Message 2 for Austin: +heyo. i hope cohesion was good! i am out starting today so I can't remind you of anthology things. Please make sure you help take care of these minor design changes rachel is asking for. I've attached screenshots of the email. I've also attached the hero image without the "Get Started" link - the [Figma](https://www.figma.com/design/vbDR3ItJTg2NZtCIDeEkXV/Anthology-Academy?m=auto&t=v82sLUuxZurgJaRS-6) has the one with the getting starting link and it may have it in SVG if that's easier. I'm not sure how you want to configure that button - either a div over that section of the image, or if you want to draw it out yourself in HTML. When someone clicks that, it should land on the search results page with "Anthology 101" pre-filtered. Please just read through all the comments in the Figma. + +I think they are about ready for moving the search bar; I would just confirm after you finish the minor design changes. + +I'd rather you push changes and make mistakes rather than not do anything because I'm not around to answer any questions. I trust you! Just make sure you let Katie/Rachel know when changes are pushed.