Updated training events script for SPS commerce. Added some templates for Harri to help Tracy. Small other items.
This commit is contained in:
@ -1,13 +1,37 @@
|
|||||||
<nav class="np-sub-navigation">
|
<nav class="np-sub-navigation">
|
||||||
<div class="np-sub-navigation-content">
|
<div class="np-sub-navigation-content">
|
||||||
{% for link in navigations.sub_navigation %}
|
{% for link in navigations.sub_navigation %}
|
||||||
|
{% if link.label == 'Dashboard' %}
|
||||||
|
<div class="np-sub-navigation-content-item {{ link.active_class }} home-link">
|
||||||
|
<a class="np-sub-navigation-content-item-link" href="/app/dashboard">
|
||||||
|
<i class="{{ link.icon }} np-button-color np-sub-navigation-content-item-icon"></i>
|
||||||
|
<p class="Home sub-navigation-label" style="margin-top:0px;"> Home </p>
|
||||||
|
</a>
|
||||||
|
<div class="np-sub-navigation-content-item-bar np-button-background-color"></div>
|
||||||
|
</div>
|
||||||
|
{% elsif link.label == 'Catalog' %}
|
||||||
|
<div class="np-sub-navigation-content-item {{ link.active_class }} home-link">
|
||||||
|
<a class="np-sub-navigation-content-item-link" href="/app/catalog">
|
||||||
|
<i class="{{ link.icon }} np-button-color np-sub-navigation-content-item-icon"></i>
|
||||||
|
<p class="Courses sub-navigation-label" style="margin-top:0px;"> Courses </p>
|
||||||
|
</a>
|
||||||
|
<div class="np-sub-navigation-content-item-bar np-button-background-color"></div>
|
||||||
|
</div>
|
||||||
|
{% elsif link.label == 'Home' %}
|
||||||
|
<div class="np-sub-navigation-content-item {{ link.active_class }} home-link" style="display:none;">
|
||||||
|
<a class="np-sub-navigation-content-item-link" href="/app/catalog">
|
||||||
|
<i class="link-all-resources np-button-color np-sub-navigation-content-item-icon"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{% else %}
|
||||||
<div class="np-sub-navigation-content-item {{ link.active_class }}">
|
<div class="np-sub-navigation-content-item {{ link.active_class }}">
|
||||||
<a class="np-sub-navigation-content-item-link" href="{{ link.url }}">
|
<a class="np-sub-navigation-content-item-link" href="{{ link.url }}">
|
||||||
<i class="{{ link.icon }} np-button-color np-sub-navigation-content-item-icon"></i>
|
<i class="{{ link.icon }} np-button-color np-sub-navigation-content-item-icon"></i>
|
||||||
<p class="{{ link.label }} sub-navigation-label" style="margin-top:0px;"> {{ link.label }} </p>
|
<p class="{{ link.label }} sub-navigation-label" style="margin-top:0px;"> {{ link.label }} </p>
|
||||||
</a>
|
</a>
|
||||||
<div class="np-sub-navigation-content-item-bar np-button-background-color"></div>
|
<div class="np-sub-navigation-content-item-bar np-button-background-color"></div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@ -0,0 +1,3 @@
|
|||||||
|
<script>
|
||||||
|
window.location.replace('/app/dashboard')
|
||||||
|
</script>
|
||||||
@ -93,3 +93,8 @@ Ideally, the cert will show that the learner is "Right Click Certified".
|
|||||||
|
|
||||||
Liquit is an end-to-end application management platform that Recast has recently acquired.
|
Liquit is an end-to-end application management platform that Recast has recently acquired.
|
||||||
Currently hosting training every last Thursday of the month, hosted by a real person
|
Currently hosting training every last Thursday of the month, hosted by a real person
|
||||||
|
|
||||||
|
## 1/17/2024
|
||||||
|
|
||||||
|
### Rens & Question Banks
|
||||||
|
TODO: Can custom CSS tab add JS to make image expandable?
|
||||||
|
|||||||
@ -22,3 +22,4 @@ G2 = "JRDpCGQ7vSRiva6t5OkWDr5eJ"
|
|||||||
DOUGLASELLIMAN = "Bknf8kidbluRfcKu3m3lKoxS8"
|
DOUGLASELLIMAN = "Bknf8kidbluRfcKu3m3lKoxS8"
|
||||||
CIN7 = "51BNlRsLYKQxSu1q1UQq7F63j"
|
CIN7 = "51BNlRsLYKQxSu1q1UQq7F63j"
|
||||||
FULLSTORY = "ePChrDWLegENa2qnfb259O2Ki"
|
FULLSTORY = "ePChrDWLegENa2qnfb259O2Ki"
|
||||||
|
RENAISSANCE = "YFykqX1u0d3HveONc5I9CKnJ1"
|
||||||
|
|||||||
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
import Apikeys
|
import Apikeys
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
APIKEY = Apikeys.CIN7
|
APIKEY = Apikeys.RENAISSANCE
|
||||||
HEADERS = {
|
HEADERS = {
|
||||||
"accept": "application/json",
|
"accept": "application/json",
|
||||||
"X-Api-Key": APIKEY,
|
"X-Api-Key": APIKEY,
|
||||||
@ -51,7 +51,10 @@ def get_courses():
|
|||||||
nextlink = response["links"]
|
nextlink = response["links"]
|
||||||
|
|
||||||
for item in response["data"]:
|
for item in response["data"]:
|
||||||
print(item["id"])
|
cname = item['attributes']['name']
|
||||||
|
if "[USCS CH MI]" in cname:
|
||||||
|
print(cname)
|
||||||
|
# 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"]
|
||||||
|
|||||||
@ -1,13 +1,15 @@
|
|||||||
import requests
|
import requests
|
||||||
import Apikeys
|
import Apikeys
|
||||||
|
import pprint
|
||||||
|
|
||||||
|
pp = pprint.PrettyPrinter(indent=4)
|
||||||
apikey = Apikeys.sps
|
apikey = Apikeys.SPS
|
||||||
url = "https://api.northpass.com/v2/events"
|
url = "https://api.northpass.com/v2/training_events"
|
||||||
headers = {
|
headers = {"accept": "application/json", "X-Api-Key": apikey}
|
||||||
"accept": "application/json",
|
|
||||||
"X-Api-Key": apikey
|
|
||||||
}
|
|
||||||
response = requests.get(url, headers=headers)
|
response = requests.get(url, headers=headers)
|
||||||
resp = response.json()
|
resp = response.json()
|
||||||
print(resp)
|
|
||||||
|
for item in resp["data"]:
|
||||||
|
name = item["attributes"]["title"]
|
||||||
|
print(name)
|
||||||
|
# pp.pprint(resp)
|
||||||
|
|||||||
Reference in New Issue
Block a user