Templates for Zenjob, Mizuno, Artera. Scripts for Wild Health.
This commit is contained in:
BIN
Custom_Templates/customer_templates/Zenjob Sandbox/.DS_Store
vendored
Normal file
BIN
Custom_Templates/customer_templates/Zenjob Sandbox/.DS_Store
vendored
Normal file
Binary file not shown.
@ -36,7 +36,11 @@
|
||||
{% else %}
|
||||
<a class="np-button np-button-wide" href="{{ course_path }}">
|
||||
<span data-lang="DE">{% t shared.view %}</span>
|
||||
<span data-lang="EN">View</span>
|
||||
{% if course.progress > 0 and course.progress < 100 %}
|
||||
<span data-lang="EN">Continue</span>
|
||||
{% else %}
|
||||
<span data-lang="EN">View</span>
|
||||
{% endif %}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
|
||||
@ -170,8 +170,8 @@
|
||||
function filterCourses(selectedItem) {
|
||||
let selectedFilter = $(selectedItem).text().replace(" ", "-").toLowerCase();
|
||||
|
||||
if (selectedFilter == "0%-abgeschlossen") {
|
||||
selectedFilter = "jetzt-starten"
|
||||
if (selectedFilter == "0%-abgeschlossen" || selectedFilter == "0%-completed") {
|
||||
selectedFilter = "not-started"
|
||||
}
|
||||
|
||||
$(".np-catalog-courses").find('.course-column').removeClass('np-hidden')
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
<div class="english-banner">
|
||||
<p>
|
||||
Switch your app to German to find all training and materials (some jobs require a certain level of German).
|
||||
</p>
|
||||
</div>
|
||||
<style>
|
||||
.english-banner {
|
||||
height: 80px;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
@ -17,7 +17,7 @@
|
||||
<select>
|
||||
<option selected disabled hidden>All Courses</option>
|
||||
<option value="all">All Courses</option>
|
||||
<option value="not-started">Not Started</option>
|
||||
<option value="not-started">0% completed</option>
|
||||
<option value="in-progress">In progress</option>
|
||||
<option value="completed">Completed</option>
|
||||
</select>
|
||||
|
||||
@ -0,0 +1,39 @@
|
||||
{% if current_session.id != session.id %}
|
||||
{% assign training_session_time = session.time_period | split: " - " %}
|
||||
|
||||
{% assign start_time = training_session_time | slice: 0 | join: "" %}
|
||||
{% if start_time contains "PM" %}
|
||||
{% assign start_time = start_time | remove: " PM" %}
|
||||
{% assign split_start_time = start_time | split: ":" %}
|
||||
{% assign start_time_hour = split_start_time | slice: 0 | join: "" | abs | plus: 12 %}
|
||||
{% assign start_time_mins = split_start_time | slice: 1 | join: "" %}
|
||||
{% elsif start_time contains "AM" %}
|
||||
{% assign start_time = start_time | remove: " AM" %}
|
||||
{% endif %}
|
||||
|
||||
{% assign end_time = training_session_time | slice: 1 | join: "" %}
|
||||
{% if end_time contains "PM" %}
|
||||
{% assign end_time = end_time | remove: " PM" %}
|
||||
{% assign split_end_time = end_time | split: ":" %}
|
||||
{% assign end_time_hour = split_end_time | slice: 0 | join: "" | abs | plus: 12 %}
|
||||
{% assign end_time_mins = split_end_time | slice: 1 | join: "" %}
|
||||
{% elsif end_time contains "AM" %}
|
||||
{% assign end_time = end_time | remove: " AM" %}
|
||||
{% endif %}
|
||||
|
||||
<a
|
||||
class="np-training-session-tile"
|
||||
href="{% route training_session, id: session.id %}"
|
||||
>
|
||||
<i class="far fa-calendar-star np-training-session-tile-icon"></i>
|
||||
<div>
|
||||
<div class="np-training-session-tile-date">
|
||||
{{ session.month }} {{ session.day }}, {{ session.year }}
|
||||
</div>
|
||||
<div class="np-training-session-tile-time">
|
||||
{{start_time_hour}}:{{start_time_mins}} - {{end_time_hour}}:{{end_time_mins}} Uhr
|
||||
</div>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right np-training-session-tile-chevron"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
@ -1,10 +1,12 @@
|
||||
{% include "header" %}
|
||||
{% include "english_banner" %}
|
||||
<main class="np-main np-courses np-subpage-container">
|
||||
<h1 class="np-resource-title">
|
||||
<span data-lang="DE">Deine Trainings für mehr Jobauswahl</span>
|
||||
<span data-lang="EN">Your training for more job choices</span>
|
||||
</h1>
|
||||
<div class="np-resource-subtitle">
|
||||
<span data-lang="EN">Switch your app to German to find all training and materials (some jobs require a certain level of German).</span>
|
||||
</div>
|
||||
{% comment %} <br>
|
||||
{% capture label %}{% t shared.filters.by_category %}{% endcapture %}
|
||||
{% if courses.in_catalog.any? %}
|
||||
|
||||
Reference in New Issue
Block a user