New Cin7 templates. Anthology CSV updates.
This commit is contained in:
BIN
Custom_Templates/customer_templates/Cin7 Customers/.DS_Store
vendored
Normal file
BIN
Custom_Templates/customer_templates/Cin7 Customers/.DS_Store
vendored
Normal file
Binary file not shown.
@ -49,7 +49,7 @@
|
|||||||
np-button-color">
|
np-button-color">
|
||||||
{% t shared.progress, count: learning_path.progress %}
|
{% t shared.progress, count: learning_path.progress %}
|
||||||
</div>
|
</div>
|
||||||
<a class="np-button" href="{% route learning_path, id: learning_path.id %}">
|
<a class="lp-button" href="{% route learning_path, id: learning_path.id %}">
|
||||||
{% t shared.view %}
|
{% t shared.view %}
|
||||||
</a>
|
</a>
|
||||||
<span class="np-hidden-mobile np-learning-path-items">
|
<span class="np-hidden-mobile np-learning-path-items">
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
<div class="np-card-container">
|
<div class="np-card-container">
|
||||||
<div class="lp-header-container">
|
<div class="lp-header-container">
|
||||||
{% assign course_name = course.name | split: "]" %}
|
<div class="lp-heading lora"> {{ course.name }}</div>
|
||||||
<div class="lp-heading"> {{ course_name.last }}</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="np-divider"></div>
|
<div class="np-divider"></div>
|
||||||
@ -10,8 +9,7 @@
|
|||||||
<img
|
<img
|
||||||
src="{{ course.image_url }}"
|
src="{{ course.image_url }}"
|
||||||
class="np-top-image np-top-image-spacing"
|
class="np-top-image np-top-image-spacing"
|
||||||
{% assign course_name = course.name | split: "]" %}
|
alt="{{ course.name }}"
|
||||||
alt="{{ course_name.last }}"
|
|
||||||
/>
|
/>
|
||||||
{% include "course_description" %}
|
{% include "course_description" %}
|
||||||
|
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
</form>
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a
|
<a
|
||||||
class="np-top-button np-button-font-color np-button np-button-big"
|
class="lp-button"
|
||||||
{% if course.enrolled? %}
|
{% if course.enrolled? %}
|
||||||
href="{% route course_viewer, course_id: course.id, learning_path_id: params.learning_path_id %}"
|
href="{% route course_viewer, course_id: course.id, learning_path_id: params.learning_path_id %}"
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
@ -1,17 +1,5 @@
|
|||||||
<div class="lp-header-container">
|
<div class="lp-header-container">
|
||||||
<div class="lp-heading">
|
<div class="lp-heading lora">
|
||||||
Learning Path: {{ learning_path.name }}
|
Learning Path: {{ learning_path.name }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
|
||||||
.lp-header-container {
|
|
||||||
background: #f2ede7;
|
|
||||||
}
|
|
||||||
.lp-heading {
|
|
||||||
font-size: 2.5rem;
|
|
||||||
color: #002f6f;
|
|
||||||
padding: 3rem 2rem;
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@ -11,8 +11,8 @@
|
|||||||
<script>
|
<script>
|
||||||
$('.my-courses-carousel').slick({
|
$('.my-courses-carousel').slick({
|
||||||
infinite: true,
|
infinite: true,
|
||||||
slidesToShow: 5,
|
slidesToShow: 4,
|
||||||
slidesToScroll: 5,
|
slidesToScroll: 4,
|
||||||
prevArrow: "<i class='control-carousel fas fa-chevron-left left-arrow'></i>",
|
prevArrow: "<i class='control-carousel fas fa-chevron-left left-arrow'></i>",
|
||||||
nextArrow: "<i class='control-carousel fas fa-chevron-right right-arrow'></i>"
|
nextArrow: "<i class='control-carousel fas fa-chevron-right right-arrow'></i>"
|
||||||
});
|
});
|
||||||
|
|||||||
@ -11,8 +11,8 @@
|
|||||||
<script>
|
<script>
|
||||||
$('.my-learning-path-carousel').slick({
|
$('.my-learning-path-carousel').slick({
|
||||||
infinite: true,
|
infinite: true,
|
||||||
slidesToShow: 5,
|
slidesToShow: 4,
|
||||||
slidesToScroll: 5,
|
slidesToScroll: 4,
|
||||||
prevArrow: "<i class='control-carousel fas fa-chevron-left left-arrow'></i>",
|
prevArrow: "<i class='control-carousel fas fa-chevron-left left-arrow'></i>",
|
||||||
nextArrow: "<i class='control-carousel fas fa-chevron-right right-arrow'></i>"
|
nextArrow: "<i class='control-carousel fas fa-chevron-right right-arrow'></i>"
|
||||||
});
|
});
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
{% include "course_version_outdated_alert", courses: courses.in_catalog %}
|
{% include "course_version_outdated_alert", courses: courses.in_catalog %}
|
||||||
|
|
||||||
<div class="hero-homepage">
|
<div class="hero-homepage">
|
||||||
<div class="hero-text">Courses</div>
|
<div class="np-max-width">
|
||||||
|
<div class="hero-text">Course courses</div>
|
||||||
{% capture label %}{% t shared.filters.by_category %}{% endcapture %}
|
{% capture label %}{% t shared.filters.by_category %}{% endcapture %}
|
||||||
|
|
||||||
{% if courses.in_catalog.any? %}
|
{% if courses.in_catalog.any? %}
|
||||||
@ -13,6 +14,7 @@
|
|||||||
label: label
|
label: label
|
||||||
%}
|
%}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<main class="np-main np-catalog np-subpage-container np-max-width">
|
<main class="np-main np-catalog np-subpage-container np-max-width">
|
||||||
<div class="catalog-content-wrapper">
|
<div class="catalog-content-wrapper">
|
||||||
@ -34,6 +36,6 @@
|
|||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
}
|
}
|
||||||
.catalog-courses-container {
|
.catalog-courses-container {
|
||||||
width: 80%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -1,6 +1,6 @@
|
|||||||
{% include "header" %}
|
{% include "header" %}
|
||||||
<main class="np-main ">
|
<main class="np-main ">
|
||||||
<div class="np-hidden-mobile" id="course-desktop">
|
<div class="np-hidden-mobile np-max-width" id="course-desktop">
|
||||||
{% include "course_desktop_view" %}
|
{% include "course_desktop_view" %}
|
||||||
</div>
|
</div>
|
||||||
<div class="np-hidden-desktop" id="course-mobile">
|
<div class="np-hidden-desktop" id="course-mobile">
|
||||||
|
|||||||
@ -3,22 +3,24 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="hero-homepage">
|
<div class="hero-homepage">
|
||||||
<div class="hero-text">My Dashboard & Progress</div>
|
<div class="np-max-width">
|
||||||
|
<div class="hero-text ">My Dashboard & Progress</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="section my-courses">
|
<div class="section np-max-width">
|
||||||
<div class="heading-dashboard">My Courses</div>
|
<div class="heading-dashboard lora">My Courses</div>
|
||||||
<div class="section-content">
|
<div class="section-content">
|
||||||
{% include 'my_courses_carousel' %}
|
{% include 'my_courses_carousel' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="section my-learning-paths">
|
<div class="section np-max-width">
|
||||||
<div class="heading-dashboard">My Learning Paths</div>
|
<div class="heading-dashboard lora">My Learning Paths</div>
|
||||||
<div class="section-content">
|
<div class="section-content">
|
||||||
{% include 'my_learning_paths_carousel' %}
|
{% include 'my_learning_paths_carousel' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="section my-events">
|
<div class="section np-max-width">
|
||||||
<div class="heading-dashboard">My Events</div>
|
<div class="heading-dashboard lora">My Events</div>
|
||||||
<div class="section-content">
|
<div class="section-content">
|
||||||
{% include "training_events_dashboard" %}
|
{% include "training_events_dashboard" %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,19 +1,46 @@
|
|||||||
|
{% assign omni = false %}
|
||||||
|
{% assign core = false %}
|
||||||
|
|
||||||
|
{% if current_person.signed_in? %}
|
||||||
|
{% for group in current_person.groups %}
|
||||||
|
{% if group.id == '9daeef1e-bd6c-47da-a343-ef772ba88300' %}
|
||||||
|
{% assign core = true %}
|
||||||
|
{% elsif group.id == 'afa31e2d-646e-4b7e-b65e-c426dc30ec5c' %}
|
||||||
|
{% assign omni = true %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<div>core {{core}}</div>
|
||||||
|
<div>omni {{omni}}</div>
|
||||||
|
|
||||||
{% include "header" %}
|
{% include "header" %}
|
||||||
{% include "course_version_outdated_alert", courses: courses.featured %}
|
{% include "course_version_outdated_alert", courses: courses.featured %}
|
||||||
<main class="np-main homepage">
|
<main class="np-main homepage">
|
||||||
<div class="hero-homepage">
|
<div class="hero-homepage">
|
||||||
<div class="np-max-width">
|
<div class="np-max-width">
|
||||||
<div class="hero-text lora">Welcome to Cin7 Omni Academy</div>
|
{% if core %}
|
||||||
|
<div class="hero-text lora">Welcome to Cin7 Core Academy</div>
|
||||||
|
{% elsif omni %}
|
||||||
|
<div class="hero-text lora">Welcome to Cin7 Omni Academy</div>
|
||||||
|
{% endif %}
|
||||||
<div class="hero-subheading">Learn to create and manage a best-in-class inventory operation for your business.</div>
|
<div class="hero-subheading">Learn to create and manage a best-in-class inventory operation for your business.</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<div class="section np-max-width">
|
<div class="section np-max-width">
|
||||||
<div class="heading lora">New to Cin7 Core? Start learning here!</div>
|
{% if core %}
|
||||||
<div class="section-content">
|
<div class="heading lora">New to Cin7 Core? Start learning here!</div>
|
||||||
{% include "category_carousel"%}
|
<div class="section-content">
|
||||||
</div>
|
{% include "category_carousel"%}
|
||||||
|
</div>
|
||||||
|
{% elsif omni %}
|
||||||
|
<div class="heading lora">New to Cin7 Omni? Start learning here!</div>
|
||||||
|
<div class="section-content">
|
||||||
|
{% include 'my_learning_paths_carousel' %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="section np-max-width">
|
<div class="section np-max-width">
|
||||||
<div class="heading lora">Featured Courses: Integrations</div>
|
<div class="heading lora">Featured Courses: Integrations</div>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{% include "header" %}
|
{% include "header" %}
|
||||||
<main class="np-main">
|
<main class="np-main">
|
||||||
<div class="np-hidden-mobile" id="learning-path-desktop">
|
<div class="np-hidden-mobile np-max-width" id="learning-path-desktop">
|
||||||
{% include "learning_path_desktop_view" %}
|
{% include "learning_path_desktop_view" %}
|
||||||
</div>
|
</div>
|
||||||
<div class="np-hidden-desktop" id="learning-path-mobile">
|
<div class="np-hidden-desktop" id="learning-path-mobile">
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
{% include "header" %}
|
{% include "header" %}
|
||||||
<div class="hero-homepage">
|
<div class="hero-homepage">
|
||||||
<div class="hero-text">Learning Paths</div>
|
<div class="np-max-width">
|
||||||
|
<div class="hero-text">Learning Paths</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<main class="np-main np-learning-paths np-subpage-container ">
|
<main class="np-main np-learning-paths np-subpage-container ">
|
||||||
<div class="np-learning-paths-main np-max-width">
|
<div class="np-learning-paths-main np-max-width">
|
||||||
|
|||||||
@ -119,8 +119,11 @@ body {
|
|||||||
|
|
||||||
.np-top-cta {
|
.np-top-cta {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 3px solid #002e6e;
|
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
|
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lp-progress-text {
|
.lp-progress-text {
|
||||||
@ -128,30 +131,35 @@ body {
|
|||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
.lp-button {
|
.lp-button {
|
||||||
background: #05cbbf;
|
background: #002f6f;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-decoration: none;
|
padding: 15px 25px;
|
||||||
font-weight: 700;
|
border-radius: 25px;
|
||||||
padding: 10px 25px;
|
text-decoration: none;
|
||||||
display: flex;
|
font-weight: 700;
|
||||||
border-radius: 8px;
|
white-space: nowrap;
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
.lp-course-card {
|
.lp-course-card {
|
||||||
margin: 15px 0;
|
margin: 30px 0;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 3px solid #002e6e;
|
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
|
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
|
||||||
}
|
}
|
||||||
.learning-path-outline-content {
|
.learning-path-outline-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: space-between;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
.learning-path-outline-progress {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
.lp-desktop-wrapper {
|
.lp-desktop-wrapper {
|
||||||
padding: 15px 25px;
|
padding: 25px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
|
||||||
|
border-radius: 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
.lp-progress-and-cta-wrapper {
|
.lp-progress-and-cta-wrapper {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
@ -166,6 +174,7 @@ body {
|
|||||||
padding-left: 50px;
|
padding-left: 50px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
.left-arrow {
|
.left-arrow {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -174,13 +183,14 @@ body {
|
|||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
right: 40px;
|
right: 40px;
|
||||||
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
.heading-dashboard {
|
.heading-dashboard {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-size: 2.5rem;
|
font-size: 2.5rem;
|
||||||
color: #002f6f;
|
color: #002f6f;
|
||||||
padding: 2rem 0;
|
padding: 2rem 0;
|
||||||
font-weight: 700;
|
font-weight: 400;
|
||||||
margin-left: 2rem;
|
margin-left: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -313,7 +323,8 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.np-footer {
|
.np-footer {
|
||||||
background: #0f3a76;
|
background: url('https://s3.amazonaws.com/static.northpass.com/Cin7/Footer+background.png');
|
||||||
|
background-size: cover;
|
||||||
}
|
}
|
||||||
.np-footer-navigation-link {
|
.np-footer-navigation-link {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@ -329,13 +340,11 @@ body {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
justify-content: end;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
|
.np-learning-path-outline-name {
|
||||||
.np-learning-path-outline-inactive-item {
|
font-weight: 600;
|
||||||
border: 3px solid #002e6e;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.np-top-image {
|
.np-top-image {
|
||||||
max-width: 500px;
|
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -349,17 +358,13 @@ body {
|
|||||||
color: #002f6f;
|
color: #002f6f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.np-learning-paths {
|
|
||||||
background: #dde9fe;
|
|
||||||
}
|
|
||||||
|
|
||||||
.np-learning-path {
|
.np-learning-path {
|
||||||
border: 3px solid #002e6e;
|
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
|
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
|
||||||
|
}
|
||||||
|
.np-learning-paths {
|
||||||
|
background: #fff;
|
||||||
}
|
}
|
||||||
.lp-header-container {
|
|
||||||
background: #f2ede7;
|
|
||||||
}
|
|
||||||
.lp-heading {
|
.lp-heading {
|
||||||
font-size: 2.5rem;
|
font-size: 2.5rem;
|
||||||
color: #002f6f;
|
color: #002f6f;
|
||||||
|
|||||||
@ -1,9 +1,11 @@
|
|||||||
{% include "header" %}
|
{% include "header" %}
|
||||||
|
|
||||||
<div class="hero-homepage">
|
<div class="hero-homepage">
|
||||||
<div class="hero-text">Events</div>
|
<div class="np-max-width">
|
||||||
|
<div class="hero-text">Events</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="section events">
|
<div class="section events np-max-width">
|
||||||
<div class="section-content">
|
<div class="section-content">
|
||||||
{% include "training_events_index" %}
|
{% include "training_events_index" %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
4
CustomerNotes/Anthology/anthology-parse-csv-test-2.csv
Normal file
4
CustomerNotes/Anthology/anthology-parse-csv-test-2.csv
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
domain,group_1,group_2,group_3
|
||||||
|
knowledgestate.edu,Anthology 101 - (T1),
|
||||||
|
scad.edu,Learn - (T1),Accreditation - (T1),Anthology 101 - (T1),Outcomes - (T1),Planning - (T1)
|
||||||
|
uoregon.edu,Anthology 101 - (T1),Encompass - (T1),Encompass - (T2),Engage - (T1)
|
||||||
|
@ -4,7 +4,7 @@ import json
|
|||||||
import requests
|
import requests
|
||||||
import Apikeys
|
import Apikeys
|
||||||
|
|
||||||
APIKEY = Apikeys.DATASNIPPER
|
APIKEY = Apikeys.ANTHOLOGY
|
||||||
groups_dict = {}
|
groups_dict = {}
|
||||||
pp = pprint.PrettyPrinter(indent=4)
|
pp = pprint.PrettyPrinter(indent=4)
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,10 @@
|
|||||||
import Apikeys
|
import Apikeys
|
||||||
import requests
|
import requests
|
||||||
|
import pprint
|
||||||
|
import csv
|
||||||
|
|
||||||
APIKEY = Apikeys.RENAISSANCE
|
pp = pprint.PrettyPrinter(indent=4)
|
||||||
|
APIKEY = Apikeys.WALMARTPROD
|
||||||
HEADERS = {
|
HEADERS = {
|
||||||
"accept": "application/json",
|
"accept": "application/json",
|
||||||
"X-Api-Key": APIKEY,
|
"X-Api-Key": APIKEY,
|
||||||
@ -45,25 +48,30 @@ def get_courses():
|
|||||||
# for course_name in COURSES:
|
# for course_name in COURSES:
|
||||||
count += 1
|
count += 1
|
||||||
# url = f"https://api.northpass.com/v2/courses/?filter[name][eq]={course_name}"
|
# url = f"https://api.northpass.com/v2/courses/?filter[name][eq]={course_name}"
|
||||||
url = f"https://api.northpass.com/v2/courses/?limit=100&page={count}"
|
url = f"https://api2.northpass.com/v2/courses/?limit=100&page={count}"
|
||||||
response = requests.get(url, headers=HEADERS)
|
response = requests.get(url, headers=HEADERS)
|
||||||
response = response.json()
|
response = response.json()
|
||||||
nextlink = response["links"]
|
nextlink = response["links"]
|
||||||
|
|
||||||
for item in response["data"]:
|
for item in response["data"]:
|
||||||
cname = item['attributes']['name']
|
cname = item['attributes']['name']
|
||||||
if "[USCS CH MI]" in cname:
|
|
||||||
print(cname)
|
|
||||||
# print(item["id"])
|
# print(item["id"])
|
||||||
# idict = {item["attributes"]["name"]: item["id"]}
|
idict = {item["attributes"]["name"]: item["id"]}
|
||||||
# id = item["id"]
|
# id = item["id"]
|
||||||
# name = item["attributes"]["name"]
|
# name = item["attributes"]["name"]
|
||||||
# list_of_ids.append(idict)
|
list_of_ids.append(idict)
|
||||||
|
|
||||||
if "next" not in nextlink:
|
if "next" not in nextlink:
|
||||||
break
|
break
|
||||||
# print(list_of_ids)
|
pp.pprint(list_of_ids)
|
||||||
# print(len(list_of_ids))
|
# print(len(list_of_ids))
|
||||||
|
with open(
|
||||||
|
"/Users/normrasmussen/Downloads/Spark-Courses.csv", "a+", newline='\n'
|
||||||
|
) as csvfile:
|
||||||
|
for group in list_of_ids:
|
||||||
|
for key, value in group.items():
|
||||||
|
csvwriter = csv.writer(csvfile)
|
||||||
|
csvwriter.writerow([key, value])
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user