Some Cin7 updates. Backed up williams-sonoma templates.

This commit is contained in:
Norm Rasmussen
2024-08-16 15:56:20 -04:00
parent cad4a27584
commit d4c72dcc79
234 changed files with 3802 additions and 278 deletions

View File

@ -1,28 +1,10 @@
{% assign omni = false %} {% assign log_out = true %}
{% assign core = false %}
{% assign partners = false %}
{% assign redirect = false %}
{% assign both_gorups = false %}
{% if current_person.signed_in? %} {% if current_person.signed_in? %}
{% assign log_out = false %} {% 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 %} {% endif %}
{%comment%}
{% unless partners or both_gorups %} {% unless partners or both_gorups %}
{% if core and course.name contains 'Omni' %} {% if core and course.name contains 'Omni' %}
{% assign redirect = true %} {% assign redirect = true %}
@ -30,8 +12,9 @@
{% assign redirect = true %} {% assign redirect = true %}
{% endif %} {% endif %}
{% endunless %} {% endunless %}
{% endcomment %}
{% if redirect %} {% if log_out %}
<script>window.location.replace('/app')</script> <script>window.location.replace('/app')</script>
{% endif %} {% endif %}

View File

@ -2,31 +2,6 @@
<div class=" row"> <div class=" row">
{% for course in courses.in_catalog %} {% for course in courses.in_catalog %}
{% if current_person.signed_in? %} {% 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"> <div class="col-xs-12 col-md-6 col-lg-4 np-stretch-content">
{% include "cards_course" with course %} {% include "cards_course" with course %}
</div> </div>

View File

@ -1,63 +1,17 @@
{% assign omni = false %}
{% assign core = false %}
{% assign partners = false %}
{% assign log_out = true %} {% assign log_out = true %}
{% assign both_gorups = false %}
{% if current_person.signed_in? %} {% if current_person.signed_in? %}
{% assign log_out = false %} {% 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 %} {% endif %}
<div class="carousel-wrapper"> <div class="carousel-wrapper">
<div class="feature-courses-carousel"> <div class="feature-courses-carousel">
{% for course in courses.in_catalog %} {% for course in courses.in_catalog %}
{% if both_gorups %}
{% if course.properties.feature_course_omni == true or course.properties.feature_course_core == true %} {% if course.properties.feature_course_omni == true or course.properties.feature_course_core == true %}
<div class="card-wrapper"> <div class="card-wrapper">
{% include 'cards_course' %} {% include 'cards_course' %}
</div> </div>
{% endif %} {% 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 %} {% endfor %}
</div> </div>
</div> </div>

View File

@ -24,27 +24,6 @@
<div class="np-footer-navigation"> <div class="np-footer-navigation">
<ul class="np-footer-navigation-list"> <ul class="np-footer-navigation-list">
<div class="footer-heading lora">Resources</div> <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"> <li class="np-footer-navigation-item">
<a <a
class="np-footer-navigation-link" class="np-footer-navigation-link"
@ -63,7 +42,6 @@
Core Help Center Core Help Center
</a> </a>
</li> </li>
{% endif %}
<li class="np-footer-navigation-item"> <li class="np-footer-navigation-item">
<a <a
class="np-footer-navigation-link" class="np-footer-navigation-link"

View File

@ -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="heading lora info-section-heading">Transformative education for Connected Inventory Performance</div>
<div class="section-content section-content-info"> <div class="section-content section-content-info">
<div class="info-wrapper"> <div class="info-wrapper">
@ -25,32 +24,3 @@
</div> </div>
</div> </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 %}

View File

@ -1,39 +1,10 @@
{% assign omni = false %} {% assign log_out = true %}
{% assign core = false %}
{% assign partners = false %}
{% assign redirect = false %}
{% assign both_gorups = false %}
{% if current_person.signed_in? %} {% if current_person.signed_in? %}
{% assign log_out = false %} {% 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 %} {% endif %}
{% unless partners or both_gorups %} {% if log_out %}
{% 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 %}
<script>window.location.replace('/app')</script> <script>window.location.replace('/app')</script>
{% endif %} {% endif %}

View File

@ -1,17 +1,7 @@
<div class="np-learning-paths-resources"> <div class="np-learning-paths-resources">
{% if items.any? %} {% if items.any? %}
{% for learning_path in items %} {% for learning_path in items %}
{% if partners or both_gorups %}
{% include "cards_learning_path" with learning_path %} {% 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 %} {% endfor %}
{% else %} {% else %}
<div class="np-learning-paths-resources-container"> <div class="np-learning-paths-resources-container">

View File

@ -1,4 +1,3 @@
{% assign counter = 0 %} {% assign counter = 0 %}
<div class="carousel-wrapper"> <div class="carousel-wrapper">
<div class="my-learning-path-carousel"> <div class="my-learning-path-carousel">
@ -10,25 +9,19 @@
{% assign counter = counter | plus: 1 %} {% assign counter = counter | plus: 1 %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% if core %}
{% for course in courses.enrolled %} {% for course in courses.enrolled %}
{% if course.name contains 'Core' and course.progress < 100 %} {% if course.name contains 'Core' and course.progress < 100 %}
<div class="card-wrapper"> <div class="card-wrapper">
{% include 'cards_course' %} {% include 'cards_course' %}
</div> </div>
{% assign counter = counter | plus: 1 %} {% assign counter = counter | plus: 1 %}
{% endif %} {% elsif course.name contains 'Omni' and course.progress < 100 %}
{% endfor %}
{% elsif omni %}
{% for course in courses.enrolled %}
{% if course.name contains 'Omni' and course.progress < 100 %}
<div class="card-wrapper"> <div class="card-wrapper">
{% include 'cards_course' %} {% include 'cards_course' %}
</div> </div>
{% assign counter = counter | plus: 1 %} {% assign counter = counter | plus: 1 %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %}
</div> </div>
{% if counter == 0 %} {% if counter == 0 %}
<div class="zero-state-wrapper"> <div class="zero-state-wrapper">

View File

@ -1,21 +1,7 @@
{% assign omni = false %}
{% assign core = false %}
{% assign partners = false %}
{% assign log_out = true %} {% assign log_out = true %}
{% if current_person.signed_in? %} {% if current_person.signed_in? %}
{% assign log_out = false %} {% 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 %} {% endif %}
{% include "header" %} {% include "header" %}

View File

@ -1,24 +1,7 @@
{% assign omni = false %}
{% assign core = false %}
{% assign partners = false %}
{% assign log_out = true %} {% assign log_out = true %}
{% assign both_gorups = false %}
{% if current_person.signed_in? %} {% if current_person.signed_in? %}
{% assign log_out = false %} {% 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 %} {% endif %}
{% if log_out %} {% if log_out %}

View File

@ -34,9 +34,9 @@
{% t .forgot_password %} {% t .forgot_password %}
</a> </a>
{% if features.account_creation? %} {% 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 %} {% t shared.sign_up %}
</a> {% endcomment %} </a>
{% endif %} {% endif %}
{% if features.request_access? %} {% if features.request_access? %}
<a <a

View File

@ -32,7 +32,7 @@
</div> </div>
<div class="np-form-field"> <div class="np-form-field">
<label class="np-input-label" for="learner_email"> <label class="np-input-label" for="learner_email">
{% t shared.email_address %} Business Email Address associated with Cin7
</label> </label>
<input <input
class="np-input" class="np-input"
@ -53,10 +53,9 @@
id="learner_password" id="learner_password"
> >
</div> </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 %} {% t shared.sign_up %}
</button> </button>
{% endcomment %}
<span class="np-form-terms"> <span class="np-form-terms">
{% t .terms %} {% t .terms %}
<a <a
@ -67,6 +66,15 @@
{% t .terms_link %} {% t .terms_link %}
</a> </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> </form>
</div> </div>
</div> </div>

Some files were not shown because too many files have changed in this diff Show More