Files
Gainsight/Custom_Templates/customer_templates/HowardHanna/homepage.html.liquid

76 lines
2.5 KiB
Plaintext

<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous">
</script>
{% assign rand_realty_groups = "8f637c703ec45ac5dec70ee9517155aa0d9775c2,613932dbeb1595c00b78de8d1860a3bfdb479b22,176629fa82da1d03f3d58c81e751e61b9836a46d,91ee3a2db2f3f8b71a9d6a2d664781c8ed10e5cb,e9d26fef9adb61c4b523a273aba18c35d40b7a94,a468fb6f64f5af9757d7f60891d2240c7ea43c1e,9a70c58d13cabfc6a1b3bf63f14caaaf097fc43e,32ada17825448e171287f0c7625e2ad1ed051b0f" | split:","%}
{% assign isAllenTate = false %}
{% assign isHowardHanna = false %}
{% assign isRandRealty = false %}
{% for group in current_person.groups %}
{% if group.enrollment_code == "1817d8c96780f13abbf0f2023e3b26b3bd43d248" %}
{% assign isAllenTate = true %}
{% elsif group.enrollment_code == "ccd2aa2f1e41ebbac8fa878f806e3ccc20ae3f38" or
group.enrollment_code == "aa6fe8d22ec1e75d2e8c54c6d5452dcd585e415d" %}
{% assign isHowardHanna = true %}
{% elsif rand_realty_groups contains group.enrollment_code %}
{% assign isRandRealty = true %}
{% endif %}
{% endfor %}
{% if isAllenTate %}
{% include "styles_at" %}
{% elsif isHowardHanna %}
{% include "styles_hh" %}
{% endif %}
{% comment %} Hero Image {% endcomment %}
{% include 'hero_image' %}
{%- comment -%} Virtual Workshops {%- endcomment -%}
{% if isAllenTate %}
{% include 'virtual_workshops' %}
{% endif %}
{%- comment -%} Course Library {%- endcomment -%}
{% include 'course_library' %}
{% if isHowardHanna or isRandRealty %}
{%- comment -%} Virtual Workshops {%- endcomment -%}
{% include 'virtual_workshops' %}
{% endif %}
{%- comment -%} Calendar {%- endcomment -%}
{% include 'calendar' %}
{%- comment -%} Resources {%- endcomment -%}
{% include 'checklists_and_resources' %}
{% assign updated_at = current_person.properties.last_group_update | date: '%s'%}
{% assign date_to_compare = 4 | time_ago: "days" | date: '%s' %}
{% if updated_at < date_to_compare%}
<script>
var data = {
key1 : '{{current_person.id}}',
};
$.ajax({
type : 'POST',
url : 'https://d3puyb5d0f.execute-api.us-east-1.amazonaws.com/v1/howardhanna',
headers: {
'Content-Type': 'application/json'
},
data: JSON.stringify(data),
success:function (data) {
console.log('success!');
},
error: function(xhr, status, error) {
console.log(error)
}
});
</script>
{% endif %}