Walmart Notes, Zenjob Tickets. Don't know if I changed anything in my scripts

This commit is contained in:
Norm Rasmussen
2023-08-02 21:36:56 -04:00
parent 31e4e328fc
commit c2a6854ae3
9 changed files with 238 additions and 121 deletions

View File

@ -28,7 +28,7 @@
</div> </div>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{%- comment -%} {% if current_person.signed_in? %} {% if current_person.signed_in? %}
<div class="np-sub-navigation-content-item np-sub-navigation-content-item-inactive custom-navigation-content-item" id="certification-sub-nav-item"> <div class="np-sub-navigation-content-item np-sub-navigation-content-item-inactive custom-navigation-content-item" id="certification-sub-nav-item">
<a class="np-sub-navigation-content-item-link custom-navigation-item-link" href="/app/certification"> <a class="np-sub-navigation-content-item-link custom-navigation-item-link" href="/app/certification">
<i <i
@ -36,7 +36,7 @@
<span style="margin-left: 10px; color: #000000;">Certification</span> <span style="margin-left: 10px; color: #000000;">Certification</span>
</a> </a>
</div> </div>
{% endif %} {%- endcomment -%} {% endif %}
</div> </div>
</nav> </nav>

View File

@ -12,19 +12,7 @@
</div> </div>
{% endif %} {% endif %}
{%- comment -%} {% if current_person.email == 'alexa.taylor+1+preview-3hy5ulxxu@skuid.com' %}
<div onclick="callNPWebhook()" style="height: 50px; width: 100px;">Call Webhook</div>
{% endif %} {%- endcomment -%}
<main class="np-main np-subpage-container np-max-width certification-page"> <main class="np-main np-subpage-container np-max-width certification-page">
{% comment %}================================================ REGISTRATION HEADER ============================================={% endcomment %}
{%- comment -%} <div class="register-button">Register Now</div> {%- endcomment -%}
{% comment %}=================================================== TEXT HEADER ==================================================={% endcomment %}
{%- comment -%} <div class="np-resource-title skuid-cert-reg-header">Skuid Certification Registration</div> {%- endcomment -%}
{% comment %}================================================= HEADER BUBBLES ==================================================={% endcomment %} {% comment %}================================================= HEADER BUBBLES ==================================================={% endcomment %}
{% if current_person.properties.cert_status == 'Default' %} {% if current_person.properties.cert_status == 'Default' %}
@ -53,7 +41,6 @@
<div class="np-resource-title cert-header" style="color: #000;">Ready to be Skuid Certified?</div> <div class="np-resource-title cert-header" style="color: #000;">Ready to be Skuid Certified?</div>
<div class="np-resource-subtitle cert-sub-header registration-sub-header"> <div class="np-resource-subtitle cert-sub-header registration-sub-header">
<div>The Skuid - Certified Builder Exam assumes knowledge in topics from these learning paths: <a href="https://www.skuidskool.com/app/learning_paths/46ae5253-8c64-426b-a638-e80c08ce29da" class="registration-sub-header-link" target="_blank">Level 1</a>, <a href="https://www.skuidskool.com/app/learning_paths/e7d6e7ca-39ad-4a40-b75c-83d382715c4a" class="registration-sub-header-link" target="_blank">Level 2</a>, <a href="https://www.skuidskool.com/app/learning_paths/e15cd738-8681-4171-9d09-ba3d31c02005" class="registration-sub-header-link" target="_blank">Deploy and Manage Skuid Apps in Salesforce</a>, and <a href="https://www.skuidskool.com/app/learning_paths/e76d07d4-984b-41a9-b53f-2c300f8eeba9" class="registration-sub-header-link" target="_blank">Explore More</a>.</div> <div>The Skuid - Certified Builder Exam assumes knowledge in topics from these learning paths: <a href="https://www.skuidskool.com/app/learning_paths/46ae5253-8c64-426b-a638-e80c08ce29da" class="registration-sub-header-link" target="_blank">Level 1</a>, <a href="https://www.skuidskool.com/app/learning_paths/e7d6e7ca-39ad-4a40-b75c-83d382715c4a" class="registration-sub-header-link" target="_blank">Level 2</a>, <a href="https://www.skuidskool.com/app/learning_paths/e15cd738-8681-4171-9d09-ba3d31c02005" class="registration-sub-header-link" target="_blank">Deploy and Manage Skuid Apps in Salesforce</a>, and <a href="https://www.skuidskool.com/app/learning_paths/e76d07d4-984b-41a9-b53f-2c300f8eeba9" class="registration-sub-header-link" target="_blank">Explore More</a>.</div>
{%- comment -%} <a href="/app" class="registration-sub-header-link" target="_blank">Skuid Skool</a> {%- endcomment -%}
<br> <br>
<div>Click below to agree to the terms and register for your exam.</div> <div>Click below to agree to the terms and register for your exam.</div>
</div> </div>
@ -71,25 +58,6 @@
</div> </div>
</div> </div>
{%- comment -%} Test Button 1 {%- endcomment -%}
{%- comment -%} <form id="skuid-cert-registration-button" name="PrePage" method ="post" action = "https://scotest.authorize.net/payment/CatalogPayment.aspx" target="_blank" style="
height: 52px;
margin: 30px 0 25px;
pointer-events: none;">
<input type = "hidden" name = "LinkId" value ="f0b2546a-f610-4015-80b3-19357fbb7b88" />
<input type = "image" src ="//testcontent.authorize.net/images/buy-now-gold.gif" />
</form> {%- endcomment -%}
{%- comment -%} Test Button 2 {%- endcomment -%}
{%- comment -%} <form id="skuid-cert-registration-button" name="PrePage" method = "post" action = "https://scotest.authorize.net/payment/CatalogPayment.aspx" target="_blank" style="
height: 52px;
margin: 30px 0 25px;
pointer-events: none;">
<input type = "hidden" name = "LinkId" value ="f0b2546a-f610-4015-80b3-19357fbb7b88" />
<input type = "image" src ="https://uploads-ssl.webflow.com/5f3ae94493a8451beac90951/64ad5965ca60ccb9008e0cb0_RegisterButtonCert.svg" alt="Register Now" />
</form> {%- endcomment -%}
{%- comment -%} Test Button 3 {%- endcomment -%}
<form id="skuid-cert-registration-button" name="PrePage" method = "post" action = "https://Simplecheckout.authorize.net/payment/CatalogPayment.aspx" target="_blank" style=" <form id="skuid-cert-registration-button" name="PrePage" method = "post" action = "https://Simplecheckout.authorize.net/payment/CatalogPayment.aspx" target="_blank" style="
height: 52px; height: 52px;
margin: 30px 0 25px; margin: 30px 0 25px;
@ -100,62 +68,72 @@
<span style="color: #000; font-size: 20px; font-weight: 500; line-height: 20px; margin-bottom: 20px">Once youve registered, refresh this page to access the prep materials.</span> <span style="color: #000; font-size: 20px; font-weight: 500; line-height: 20px; margin-bottom: 20px">Once youve registered, refresh this page to access the prep materials.</span>
{%- comment -%} <span style="
bottom: -200px;
color: #000;
font-size: 1rem;
font-weight: 500;
line-height: 28px;
position: absolute;">Learn more at <a href="https://skuidskool.com/certification" style="color: #000;">skuidskool.com/certification</a></span> {%- endcomment -%}
<img src="https://cdn.northpass.io/Skuid/images/Cert_Registration.svg" alt="exam-registration-image" class="exam-status-image exam-registration-image"> <img src="https://cdn.northpass.io/Skuid/images/Cert_Registration.svg" alt="exam-registration-image" class="exam-status-image exam-registration-image">
</img> </img>
</div> </div>
<style>
.certification-footer{
font-size: 8px !important;
line-height: 7px !important;
max-width: 65%;
margin: -10% auto 0;
}
@media screen and (min-width: 500px){
.certification-footer{
font-size: 12px !important;
line-height: 12px !important;
}
}
@media screen and (min-width: 575px){
.certification-footer{
line-height: 20px !important;
}
}
@media screen and (min-width: 768px){
.certification-footer{
line-height: 14px !important;
}
}
@media screen and (min-width: 1000px){
.certification-footer{
font-size: 15px !important;
line-height: 20px !important;
}
}
@media screen and (min-width: 1100px){
.certification-footer{
font-size: 20px !important;
}
}
</style>
{% endif %} {% endif %}
{% comment %}================================================ EXAM PREP ==================================================={% endcomment %} {% comment %}================================================ EXAM PREP ==================================================={% endcomment %}
{% if current_person.properties.cert_status == 'Registered' or current_person.properties.cert_status == 'Exists-qm' %} {% if current_person.properties.cert_status == 'Registered' or current_person.properties.cert_status == 'Exists-qm' %}
{%- comment -%} {% assign render_practice = true %}
{% if courses.enrolled.any? and courses.in_catalog.any? %}
{% for course in courses.enrolled %}
{% if course.id == '3500821c-4b76-4155-a714-2947dc1b8d0c' or course.id == '10eeed9b-a5b8-446d-8023-2d109766fda6' %}
{% if course.completed? %}
{% assign render_practice = false %}
{% endif %}
{% endif %}
{% endfor %}
{% for course in courses.in_catalog %}
{% if course.id == '3500821c-4b76-4155-a714-2947dc1b8d0c' or course.id == '10eeed9b-a5b8-446d-8023-2d109766fda6' %}
{% if course.completed? %}
{% assign render_practice = false %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %} {%- endcomment -%}
<div class="cert-content-container col-xs-12"> <div class="cert-content-container col-xs-12">
<div class="np-resource-title cert-header">Skuid Certification Exam Prep</div> <div class="np-resource-title cert-header">Skuid Certification Exam Prep</div>
<div class="np-resource-subtitle cert-sub-header" style="color: #000;">Prep, practice, and take your exam.</div> <div class="np-resource-subtitle cert-sub-header" style="color: #000;">Prep, practice, and take your exam.</div>
<div class="cert-exam-prep-cards col-xs-9 col-sm-12"> <div class="cert-exam-prep-cards col-xs-9 col-sm-12">
{%- comment -%} {% if render_practice == true %}{% endif %} {%- endcomment -%} <div class="cert-card col-xs-12 col-md-3">
<div class="cert-card col-xs-12 col-md-3"> <a class="cert-button" href="https://www.skuidskool.com/c/7ed8d12a54a69be1339fcc12ce5fce92c2da8d19" target="_blank">Prep Guide</a>
<a class="cert-button" href="https://www.skuidskool.com/c/7ed8d12a54a69be1339fcc12ce5fce92c2da8d19" target="_blank">Prep Guide</a> <div class="cert-card-blurb">
<div class="cert-card-blurb"> View courses, documentation, and other resources to prep for the certification exam.
View courses, documentation, and other resources to prep for the certification exam.
</div>
</div> </div>
<div class="cert-card col-xs-12 col-md-3"> </div>
<a class="cert-button" href="https://www.skuidskool.com/c/7288cf328ff4fa291c430d179fa962dc20c069ae" target="_blank">Practice Exam</a> <div class="cert-card col-xs-12 col-md-3">
<div class="cert-card-blurb"> <a class="cert-button" href="https://www.skuidskool.com/c/7288cf328ff4fa291c430d179fa962dc20c069ae" target="_blank">Practice Exam</a>
Take a practice exam to test what you've learned. <div class="cert-card-blurb">
</div> Take a practice exam to test what you've learned.
</div> </div>
{%- comment -%} {% endif %} {%- endcomment -%} </div>
{% if current_person.properties.cert_status == 'Registered' %} {% if current_person.properties.cert_status == 'Registered' %}
<div class="cert-card col-xs-12 col-md-3"> <div class="cert-card col-xs-12 col-md-3">
<a class="cert-button cert-button-locked" href="#" target="_blank">Exam Not Ready</a> <a class="cert-button cert-button-locked" href="#" target="_blank">Exam Not Ready</a>
@ -173,7 +151,7 @@
{% endif %} {% endif %}
</div> </div>
<span style="font-size: 16px; font-weight: 500; line-height: 20px; margin: 30px 0 15px"> <span style="font-size: 20px; font-weight: 500; line-height: 20px;">
Not seeing what you expect? Refresh this page. Not seeing what you expect? Refresh this page.
</span> </span>
</div> </div>
@ -187,6 +165,39 @@
} }
}); });
</script> </script>
<style>
.cert-content-container > span{
margin: 30px 0 100px;
}
.certification-footer{
margin-top: -16%;
margin-bottom: 50px;
}
@media screen and (min-width: 485px){
.certification-footer{
margin-top: -10%;
}
}
@media screen and (min-width: 768px){
.certification-footer{
margin-top: -8%;
}
}
@media screen and (min-width: 1000px){
.cert-content-container > span{
margin: 30px 0 85px;
}
.certification-footer{
margin-top: -60px;
}
}
</style>
{% endif %} {% endif %}
{% comment %}============================================== PASSED ========================================================{% endcomment %} {% comment %}============================================== PASSED ========================================================{% endcomment %}
@ -197,6 +208,93 @@
<a class="cert-button-big share-cert-button" href="{{ current_person.properties.accredible_url }}" target="_blank">View Credential</a> <a class="cert-button-big share-cert-button" href="{{ current_person.properties.accredible_url }}" target="_blank">View Credential</a>
</img> </img>
</div> </div>
<style>
.share-cert-button{
margin-bottom: calc(20% + 24px) !important;
}
.certification-footer{
font-size: 8px !important;
max-width: 65%;
margin: -10% auto 0 !important;
}
@media screen and (min-width: 370px){
.certification-footer{
margin-top: -8% !important;
}
}
@media screen and (min-width: 400px){
.certification-footer{
margin-top: -6% !important;
}
}
@media screen and (min-width: 425px){
.certification-footer{
margin-top: -4% !important;
}
}
@media screen and (min-width: 465px){
.certification-footer{
margin-bottom: 50px !important;
margin-top: 0 !important;
}
}
@media screen and (min-width: 569px){
.certification-footer{
font-size: 12px !important;
}
}
@media screen and (min-width: 665px){
.certification-footer{
font-size: 15px !important;
}
}
@media screen and (min-width: 768px){
.certification-footer{
font-size: 10px !important;
margin: -10% auto 50px;
}
}
@media screen and (min-width: 900px){
.certification-footer{
font-size: 14px !important;
margin-top: -4% !important;
}
}
@media screen and (min-width: 1000px){
.share-cert-button{
margin-bottom: calc(24% + 24px) !important;
}
}
@media screen and (min-width: 1150px){
.certification-footer{
font-size: 18px !important;
}
}
@media screen and (min-width: 1150px){
.certification-footer{
font-size: 20px !important;
margin-bottom: 10% !important;
}
}
@media screen and (min-width: 1300px){
.share-cert-button{
margin-bottom: calc(30% + 24px) !important;
}
}
</style>
{% endif %} {% endif %}
{% comment %}=============================================== FAILED ======================================================{% endcomment %} {% comment %}=============================================== FAILED ======================================================{% endcomment %}
@ -204,50 +302,32 @@
{% if current_person.properties.cert_status == 'Fail' %} {% if current_person.properties.cert_status == 'Fail' %}
<div class="cert-content-container col-xs-12" style="padding-bottom: 30px;"> <div class="cert-content-container col-xs-12" style="padding-bottom: 30px;">
<div class="np-resource-title cert-header" style="color: #000;">Exam failed.</div> <div class="np-resource-title cert-header" style="color: #000;">Exam failed.</div>
<div class="np-resource-subtitle cert-sub-header"> <div class="np-resource-subtitle cert-sub-header" style="color: #000;">
If you'd like to try again, <a href="mailto:certification@skuid.com">certification@skuid.com</a>. If you'd like to try again, email <a href="mailto:certification@skuid.com" style="color: #000;">certification@skuid.com</a>.
</div> </div>
{%- comment -%} <a class="cert-button-big retake-cert-button" href="#">Register to retake the exam</a> {%- endcomment -%}
</div> </div>
<style>
.certification-footer{
margin-top: -4%;
}
</style>
{% endif %} {% endif %}
{% comment %}============================================= CERTIFIED (UNUSED)======================================================{% endcomment %} {% comment %}============================================ FOOTER ====================================================={% endcomment %}
<div class="certification-footer" style="
{%- comment -%} <div class="cert-content-container col-xs-12 exam-status-container">
<img src="https://cdn.northpass.io/Skuid/images/cert_recert.svg" alt="cert-recert-background" class="exam-status-image">
<div class="cert-recert-content-container">
<div class="np-resource-subtitle cert-sub-header">Recertification is due on 1/1/2024</div>
<a class="cert-button-med download-cert-button" href="#">Download Certificate</a>
</div>
</img>
</div> {%- endcomment -%}
{%- comment -%} <div class="cert-content-container col-xs-12">
<div class="np-resource-title cert-header">Congratulations you're certified!</div>
<div class="np-resource-subtitle cert-sub-header">Recertification is due on 1/1/2024</div>
<a class="cert-button-med download-cert-button" href="#">Download Certificate</a>
</div> {%- endcomment -%}
{% comment %}============================================ RECERTIFIED (UNUSED)====================================================={% endcomment %}
{%- comment -%} <div class="cert-content-container col-xs-12">
<div class="np-resource-title cert-header">Time for your recertification!</div>
<div class="np-resource-subtitle cert-sub-header">Recertification is due on 1/1/2024</div>
<a class="cert-button-med re-cert-button" href="#">Get recertified</a>
</div> {%- endcomment -%}
<div class="ceritfication-footer" style="
font-size: 20px; font-size: 20px;
font-weight: 500; font-weight: 500;
line-height: 20px; line-height: 20px;
margin-top: 15%;
text-align: center; text-align: center;
width: 100%;"> width: 100%;">
<span>Learn more at <a href="https://skuid.com/certification" style="color: #0d6efd;">skuid.com/certication</a>.</span> {% if current_person.properties.cert_status == 'Default' %}
<br> <span>Learn more at <a href="https://skuid.com/certification" style="color: #0d6efd;">skuid.com/certication</a>.</span>
<br> <br>
<span>Questions? Contact us at <a href="mailto:certification@skuid.com" style="color: #0d6efd;">certification@skuid.com</a>.</span> <br>
{% endif %}
{% unless current_person.properties.cert_status == 'Fail' %}
<span>Questions? Contact us at <a href="mailto:certification@skuid.com" style="color: #0d6efd;">certification@skuid.com</a>.</span>
{% endunless %}
</div> </div>
</main> </main>
</div> </div>
@ -935,4 +1015,32 @@
{%- comment -%} <div class="cert-content-container col-xs-12 exam-status-container"> {%- comment -%} <div class="cert-content-container col-xs-12 exam-status-container">
<img src="https://cdn.northpass.io/Skuid/images/exam_complete_background.svg" alt="exam-complete-background" class="exam-status-image"> <img src="https://cdn.northpass.io/Skuid/images/exam_complete_background.svg" alt="exam-complete-background" class="exam-status-image">
</div> {%- endcomment -%} </div> {%- endcomment -%}
{% comment %}============================================= CERTIFIED (UNUSED)======================================================{% endcomment %}
{%- comment -%} <div class="cert-content-container col-xs-12 exam-status-container">
<img src="https://cdn.northpass.io/Skuid/images/cert_recert.svg" alt="cert-recert-background" class="exam-status-image">
<div class="cert-recert-content-container">
<div class="np-resource-subtitle cert-sub-header">Recertification is due on 1/1/2024</div>
<a class="cert-button-med download-cert-button" href="#">Download Certificate</a>
</div>
</img>
</div> {%- endcomment -%}
{%- comment -%} <div class="cert-content-container col-xs-12">
<div class="np-resource-title cert-header">Congratulations you're certified!</div>
<div class="np-resource-subtitle cert-sub-header">Recertification is due on 1/1/2024</div>
<a class="cert-button-med download-cert-button" href="#">Download Certificate</a>
</div> {%- endcomment -%}
{% comment %}============================================ RECERTIFIED (UNUSED)====================================================={% endcomment %}
{%- comment -%} <div class="cert-content-container col-xs-12">
<div class="np-resource-title cert-header">Time for your recertification!</div>
<div class="np-resource-subtitle cert-sub-header">Recertification is due on 1/1/2024</div>
<a class="cert-button-med re-cert-button" href="#">Get recertified</a>
</div> {%- endcomment -%}

View File

@ -479,11 +479,6 @@ body {
format("truetype"); format("truetype");
} }
/* Moving the Logo to the right so it appears centered. */
.np-powered-by {
padding-left: 200px;
}
/* 2. Header */ /* 2. Header */
.np-header-color { .np-header-color {
background: transparent; background: transparent;
@ -1027,4 +1022,4 @@ footer {
.np-top-cta-progress-content{ .np-top-cta-progress-content{
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
} }

View File

@ -220,7 +220,7 @@ We can't "demand" people to do training, so the training metrics don't really ma
Doris: No support needed at this point. Doris: No support needed at this point.
They will be making a big global change next week, so we'll see a huge drop in learners in Northpass. They will be making a big global change next week, so we'll see a huge drop in learners in Northpass.
TODO: Norm to hold a weekly meeting on Monday in case Bolt needs any support. DONE: Norm to hold a weekly meeting on Monday in case Bolt needs any support.
Aleksandr is the global procurement manager. Wants to sign a termination form, but email is good enough. Aleksandr is the global procurement manager. Wants to sign a termination form, but email is good enough.
He is the POC for many of the verticals. He is the POC for many of the verticals.

View File

@ -55,7 +55,7 @@ Action items:
Mark Hansen handles both Golf and Running for both USA and Canada. Mark Hansen handles both Golf and Running for both USA and Canada.
TODO: Ask Casey if USA and CA codes can be interchangeable. TODO: Ask Casey if USA and CA codes can be interchangeable.
TODO: Connect with Matt on this whole things. DONE: Connect with Matt on this whole things.
They will need to add CA people to Groups. Custom Analytics. They will need to add CA people to Groups. Custom Analytics.
Target Date: Early August. Target Date: Early August.

View File

@ -554,3 +554,10 @@ Enrollment:
* MJ Out due to unexpected Surgery. Expected back on the 10th. * MJ Out due to unexpected Surgery. Expected back on the 10th.
* Jagannatha to send proposal for Spanish language resources. If value is `null` or blank, display english. * Jagannatha to send proposal for Spanish language resources. If value is `null` or blank, display english.
## 08/02/2023
### Resource Bundles / LP Design Preview
* Do we need to show the start button? Yes, but when does the progress get calculated.
* If a course is completed in the LP, will it be completed outside of the LP? This is specifically for featured courses.

View File

@ -56,3 +56,10 @@ Ideal information in Salesforce:
DONE: Added a new group to homepage's access. DONE: Added a new group to homepage's access.
DONE: Submit tickets from [this page](https://docs.google.com/spreadsheets/d/1kV93XzZuXTbIrh4HfqhZoFwGvBhNxCRZTC36eBqxaV0/edit#gid=0). Specifically: Static Banner (140), Popup (120), And Embed the Website (124). DONE: Submit tickets from [this page](https://docs.google.com/spreadsheets/d/1kV93XzZuXTbIrh4HfqhZoFwGvBhNxCRZTC36eBqxaV0/edit#gid=0). Specifically: Static Banner (140), Popup (120), And Embed the Website (124).
## 08/02/2023
### Learning Paths & Assignments
TODO: Check if we can "mimic" the start button across all courses in LP so any click = start LP.
TODO: Get Assignment Download link into Google Sheets. Webhook followed by API call. Data points: UID, Course, Submitted At, and URL.

View File

@ -4,7 +4,7 @@ from pathlib import Path
import Apikeys import Apikeys
import os import os
basefile = "/Users/normrasmussen/Downloads/Mizuno June 2023 Completions.csv" basefile = "/Users/normrasmussen/Downloads/Mizuno July 2023 Completions.csv"
api_key = Apikeys.mizuno api_key = Apikeys.mizuno
uuid_url = "https://api.northpass.com/v2/people?filter[email][eq]=" uuid_url = "https://api.northpass.com/v2/people?filter[email][eq]="
prop_url = "https://api.northpass.com/v2/properties/people/" prop_url = "https://api.northpass.com/v2/properties/people/"

View File

@ -79,4 +79,4 @@ function propstoSheet(uuid, row) {
function writeHeadings() { function writeHeadings() {
// Write the new Column Headings // Write the new Column Headings
sheet.getRange(1, 6).setValue("PGA Number"); sheet.getRange(1, 6).setValue("PGA Number");
} }