Some Cin7 updates. Backed up williams-sonoma templates.
This commit is contained in:
@ -1,28 +1,10 @@
|
||||
{% assign omni = false %}
|
||||
{% assign core = false %}
|
||||
{% assign partners = false %}
|
||||
{% assign redirect = false %}
|
||||
{% assign both_gorups = false %}
|
||||
{% assign log_out = true %}
|
||||
|
||||
{% if current_person.signed_in? %}
|
||||
{% assign log_out = false %}
|
||||
{% for group in current_person.groups %}
|
||||
{% if group.name contains 'Partners' %}
|
||||
{% assign partners = true %}
|
||||
{% else %}
|
||||
{% if group.name contains 'Core' %}
|
||||
{% assign core = true %}
|
||||
{% elsif group.name contains 'Omni' %}
|
||||
{% assign omni = true %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if omni and core %}
|
||||
{% assign both_gorups = true %}
|
||||
{% endif %}
|
||||
|
||||
{%comment%}
|
||||
{% unless partners or both_gorups %}
|
||||
{% if core and course.name contains 'Omni' %}
|
||||
{% assign redirect = true %}
|
||||
@ -30,8 +12,9 @@
|
||||
{% assign redirect = true %}
|
||||
{% endif %}
|
||||
{% endunless %}
|
||||
{% endcomment %}
|
||||
|
||||
{% if redirect %}
|
||||
{% if log_out %}
|
||||
<script>window.location.replace('/app')</script>
|
||||
{% endif %}
|
||||
|
||||
|
||||
@ -2,34 +2,9 @@
|
||||
<div class=" row">
|
||||
{% for course in courses.in_catalog %}
|
||||
{% if current_person.signed_in? %}
|
||||
|
||||
{% if partners or both_gorups %}
|
||||
<div class="col-xs-12 col-md-6 col-lg-4 np-stretch-content">
|
||||
{% include "cards_course" with course %}
|
||||
</div>
|
||||
{% else %}
|
||||
{% if omni %}
|
||||
{% if course.name contains 'Omni' %}
|
||||
<div class="col-xs-12 col-md-6 col-lg-4 np-stretch-content">
|
||||
{% include "cards_course" with course %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% elsif core %}
|
||||
{% if course.name contains 'Core' %}
|
||||
<div class="col-xs-12 col-md-6 col-lg-4 np-stretch-content">
|
||||
{% include "cards_course" with course %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<div class="col-xs-12 col-md-6 col-lg-4 np-stretch-content">
|
||||
{% include "cards_course" with course %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<div class="col-xs-12 col-md-6 col-lg-4 np-stretch-content">
|
||||
{% include "cards_course" with course %}
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 col-lg-4 np-stretch-content">
|
||||
{% include "cards_course" with course %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
@ -1,63 +1,17 @@
|
||||
{% assign omni = false %}
|
||||
{% assign core = false %}
|
||||
{% assign partners = false %}
|
||||
{% assign log_out = true %}
|
||||
{% assign both_gorups = false %}
|
||||
|
||||
{% if current_person.signed_in? %}
|
||||
{% assign log_out = false %}
|
||||
{% for group in current_person.groups %}
|
||||
{% if group.name contains 'Partners' %}
|
||||
{% assign partners = true %}
|
||||
{% else %}
|
||||
{% if group.name contains 'Core' %}
|
||||
{% assign core = true %}
|
||||
{% elsif group.name contains 'Omni' %}
|
||||
{% assign omni = true %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if omni and core %}
|
||||
{% assign both_gorups = true %}
|
||||
{% endif %}
|
||||
|
||||
<div class="carousel-wrapper">
|
||||
<div class="feature-courses-carousel">
|
||||
{% for course in courses.in_catalog %}
|
||||
{% if both_gorups %}
|
||||
{% if course.properties.feature_course_omni == true or course.properties.feature_course_core == true %}
|
||||
<div class="card-wrapper">
|
||||
{% include 'cards_course' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% elsif core %}
|
||||
{% if course.properties.feature_course_core == true %}
|
||||
<div class="card-wrapper">
|
||||
{% include 'cards_course' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% elsif omni %}
|
||||
{% if course.properties.feature_course_omni == true %}
|
||||
<div class="card-wrapper">
|
||||
{% include 'cards_course' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% elsif partners %}
|
||||
{% if course.properties.feature_course_omni == true or course.properties.feature_course_core == true %}
|
||||
<div class="card-wrapper">
|
||||
{% include 'cards_course' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if course.properties.feature_course_omni == true or course.properties.feature_course_core == true %}
|
||||
<div class="card-wrapper">
|
||||
{% include 'cards_course' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -24,46 +24,24 @@
|
||||
<div class="np-footer-navigation">
|
||||
<ul class="np-footer-navigation-list">
|
||||
<div class="footer-heading lora">Resources</div>
|
||||
{% if omni %}
|
||||
<li class="np-footer-navigation-item">
|
||||
<a
|
||||
class="np-footer-navigation-link"
|
||||
href="https://help.omni.cin7.com/hc/en-us"
|
||||
target="_blank"
|
||||
>
|
||||
Omni Help Center
|
||||
</a>
|
||||
</li>
|
||||
{% elsif core %}
|
||||
<li class="np-footer-navigation-item">
|
||||
<a
|
||||
class="np-footer-navigation-link"
|
||||
href="https://help.core.cin7.com/hc/en-us"
|
||||
target="_blank"
|
||||
>
|
||||
Core Help Center
|
||||
</a>
|
||||
</li>
|
||||
{% elsif log_out %}
|
||||
<li class="np-footer-navigation-item">
|
||||
<a
|
||||
class="np-footer-navigation-link"
|
||||
href="https://help.omni.cin7.com/hc/en-us"
|
||||
target="_blank"
|
||||
>
|
||||
Omni Help Center
|
||||
</a>
|
||||
</li>
|
||||
<li class="np-footer-navigation-item">
|
||||
<a
|
||||
class="np-footer-navigation-link"
|
||||
href="https://help.core.cin7.com/hc/en-us"
|
||||
target="_blank"
|
||||
>
|
||||
Core Help Center
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li class="np-footer-navigation-item">
|
||||
<a
|
||||
class="np-footer-navigation-link"
|
||||
href="https://help.omni.cin7.com/hc/en-us"
|
||||
target="_blank"
|
||||
>
|
||||
Omni Help Center
|
||||
</a>
|
||||
</li>
|
||||
<li class="np-footer-navigation-item">
|
||||
<a
|
||||
class="np-footer-navigation-link"
|
||||
href="https://help.core.cin7.com/hc/en-us"
|
||||
target="_blank"
|
||||
>
|
||||
Core Help Center
|
||||
</a>
|
||||
</li>
|
||||
<li class="np-footer-navigation-item">
|
||||
<a
|
||||
class="np-footer-navigation-link"
|
||||
|
||||
@ -4,9 +4,9 @@
|
||||
|
||||
|
||||
|
||||
<script src=
|
||||
"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js">
|
||||
</script>
|
||||
<script src=
|
||||
"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js">
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick.css"/>
|
||||
<!-- Add the slick-theme.css if you want default styling -->
|
||||
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick-theme.css"/>
|
||||
@ -38,4 +38,4 @@
|
||||
removeBadgeShadow();
|
||||
});
|
||||
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
{% if core or log_out or partners or both_gorups%}
|
||||
<div class="heading lora info-section-heading">Transformative education for Connected Inventory Performance</div>
|
||||
<div class="section-content section-content-info">
|
||||
<div class="info-wrapper">
|
||||
@ -25,32 +24,3 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% elsif omni %}
|
||||
<div class="heading lora info-section-heading">Empowering education for Connected Inventory Performance</div>
|
||||
<div class="section-content section-content-info">
|
||||
<div class="info-wrapper">
|
||||
<div class="info">
|
||||
<img class="info-icon" src="https://s3.amazonaws.com/static.northpass.com/Cin7/icons/in+depth+learning.png" alt="">
|
||||
<div class="info-content">
|
||||
<div class="info-heading">In-depth learning</div>
|
||||
<div class="info-desc">Created by our subject matter experts.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info">
|
||||
<img class="info-icon" src="https://s3.amazonaws.com/static.northpass.com/Cin7/icons/Always+available.png" alt="">
|
||||
<div class="info-content">
|
||||
<div class="info-heading">Always available</div>
|
||||
<div class="info-desc">Choose when and what to learn at your own pace.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info">
|
||||
<img class="info-icon" src="https://s3.amazonaws.com/static.northpass.com/Cin7/icons/Designed+for+everyone.png" alt="">
|
||||
<div class="info-content">
|
||||
<div class="info-heading">Designed for everyone</div>
|
||||
<div class="info-desc">From basic to advanced, courses for your whole team.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
@ -1,39 +1,10 @@
|
||||
{% assign omni = false %}
|
||||
{% assign core = false %}
|
||||
{% assign partners = false %}
|
||||
{% assign redirect = false %}
|
||||
{% assign both_gorups = false %}
|
||||
{% assign log_out = true %}
|
||||
|
||||
{% if current_person.signed_in? %}
|
||||
{% assign log_out = false %}
|
||||
{% for group in current_person.groups %}
|
||||
{% if group.name contains 'Partners' %}
|
||||
{% assign partners = true %}
|
||||
{% else %}
|
||||
{% if group.name contains 'Core' %}
|
||||
{% assign core = true %}
|
||||
{% elsif group.name contains 'Omni' %}
|
||||
{% assign omni = true %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if omni and core %}
|
||||
{% assign both_gorups = true %}
|
||||
{% endif %}
|
||||
|
||||
{% unless partners or both_gorups %}
|
||||
{% if partners %}
|
||||
{% assign redirect = false %}
|
||||
{% elsif core and learning_path.name contains 'Omni' %}
|
||||
{% assign redirect = true %}
|
||||
{% elsif omni and learning_path.name contains 'Core' %}
|
||||
{% assign redirect = true %}
|
||||
{% endif %}
|
||||
{% endunless %}
|
||||
|
||||
|
||||
{% if redirect %}
|
||||
{% if log_out %}
|
||||
<script>window.location.replace('/app')</script>
|
||||
{% endif %}
|
||||
|
||||
|
||||
@ -1,17 +1,7 @@
|
||||
<div class="np-learning-paths-resources">
|
||||
{% if items.any? %}
|
||||
{% for learning_path in items %}
|
||||
{% if partners or both_gorups %}
|
||||
{% include "cards_learning_path" with learning_path %}
|
||||
{% elsif core %}
|
||||
{% if learning_path.name contains 'Core' %}
|
||||
{% include "cards_learning_path" with learning_path %}
|
||||
{% endif %}
|
||||
{% elsif omni %}
|
||||
{% if learning_path.name contains 'Omni'%}
|
||||
{% include "cards_learning_path" with learning_path %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<div class="np-learning-paths-resources-container">
|
||||
|
||||
@ -1,34 +1,27 @@
|
||||
|
||||
{% assign counter = 0 %}
|
||||
<div class="carousel-wrapper">
|
||||
<div class="my-learning-path-carousel">
|
||||
{% for learning_path in learning_paths.enrolled %}
|
||||
{% if learning_path.progress < 100 %}
|
||||
{% if learning_path.progress < 100 %}
|
||||
<div class="card-wrapper">
|
||||
{% include "cards_learning_path_homepage" with learning_path %}
|
||||
</div>
|
||||
{% assign counter = counter | plus: 1 %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if core %}
|
||||
{% for course in courses.enrolled %}
|
||||
{% if course.name contains 'Core' and course.progress < 100 %}
|
||||
<div class="card-wrapper">
|
||||
{% include 'cards_course' %}
|
||||
</div>
|
||||
{% assign counter = counter | plus: 1 %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% elsif omni %}
|
||||
{% for course in courses.enrolled %}
|
||||
{% if course.name contains 'Omni' and course.progress < 100 %}
|
||||
<div class="card-wrapper">
|
||||
{% include 'cards_course' %}
|
||||
</div>
|
||||
{% assign counter = counter | plus: 1 %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% elsif course.name contains 'Omni' and course.progress < 100 %}
|
||||
<div class="card-wrapper">
|
||||
{% include 'cards_course' %}
|
||||
</div>
|
||||
{% assign counter = counter | plus: 1 %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% if counter == 0 %}
|
||||
<div class="zero-state-wrapper">
|
||||
@ -64,4 +57,4 @@
|
||||
.my-learning-path-carousel {
|
||||
margin: 0 1rem;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -62,4 +62,4 @@
|
||||
.my-learning-path-carousel {
|
||||
margin: 0 1rem;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -1,21 +1,7 @@
|
||||
{% assign omni = false %}
|
||||
{% assign core = false %}
|
||||
{% assign partners = false %}
|
||||
{% assign log_out = true %}
|
||||
|
||||
{% if current_person.signed_in? %}
|
||||
{% assign log_out = false %}
|
||||
{% for group in current_person.groups %}
|
||||
{% if group.name contains 'Partners' %}
|
||||
{% assign partners = true %}
|
||||
{% else %}
|
||||
{% if group.name contains 'Core' %}
|
||||
{% assign core = true %}
|
||||
{% elsif group.name contains 'Omni' %}
|
||||
{% assign omni = true %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% include "header" %}
|
||||
|
||||
@ -1,24 +1,7 @@
|
||||
{% assign omni = false %}
|
||||
{% assign core = false %}
|
||||
{% assign partners = false %}
|
||||
{% assign log_out = true %}
|
||||
{% assign both_gorups = false %}
|
||||
|
||||
{% if current_person.signed_in? %}
|
||||
{% assign log_out = false %}
|
||||
{% for group in current_person.groups %}
|
||||
{% if group.name contains 'Partners' %}
|
||||
{% assign partners = true %}
|
||||
{% elsif group.name contains 'Core' %}
|
||||
{% assign core = true %}
|
||||
{% elsif group.name contains 'Omni' %}
|
||||
{% assign omni = true %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if omni and core %}
|
||||
{% assign both_gorups = true %}
|
||||
{% endif %}
|
||||
|
||||
{% if log_out %}
|
||||
|
||||
@ -34,9 +34,9 @@
|
||||
{% t .forgot_password %}
|
||||
</a>
|
||||
{% if features.account_creation? %}
|
||||
{% comment %} <a class="np-form-link np-button-color" href="{% route sign_up %}">
|
||||
<a class="np-form-link np-button-color" href="{% route sign_up %}">
|
||||
{% t shared.sign_up %}
|
||||
</a> {% endcomment %}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if features.request_access? %}
|
||||
<a
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
</div>
|
||||
<div class="np-form-field">
|
||||
<label class="np-input-label" for="learner_email">
|
||||
{% t shared.email_address %}
|
||||
Business Email Address associated with Cin7
|
||||
</label>
|
||||
<input
|
||||
class="np-input"
|
||||
@ -53,10 +53,9 @@
|
||||
id="learner_password"
|
||||
>
|
||||
</div>
|
||||
{% comment %} <button type="submit" class="np-button np-button-big np-button-large-font np-form-action">
|
||||
<button type="submit" class="np-button np-button-big np-button-large-font np-form-action">
|
||||
{% t shared.sign_up %}
|
||||
</button>
|
||||
{% endcomment %}
|
||||
<span class="np-form-terms">
|
||||
{% t .terms %}
|
||||
<a
|
||||
@ -66,7 +65,16 @@
|
||||
>
|
||||
{% t .terms_link %}
|
||||
</a>
|
||||
</span>
|
||||
</span>
|
||||
<span class="np-form-terms">
|
||||
If you are unable to create an account, you have likely already been invited to the Academy. Please use the 'Forgot my password' link below.
|
||||
</span>
|
||||
<span class="np-form-terms">
|
||||
<a
|
||||
class="np-form-link np-button-color"
|
||||
target="_blank"
|
||||
href="https://academy.cin7.com/learners/password/new">Forgot my Password </a>
|
||||
</span>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user