Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1113 Register must include location and made available to local leaders #1279

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions common-theme/layouts/partials/register-attendance.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
{{ $module := .module }}
{{ $day := .day | urlize}}

{{ $orgData := index site.Data.courses $course }}
{{$locations := $orgData.locations}}

{{/* if any of these params are null, error */}}
{{ if or (not $course) (not $module) (not $day) }}
{{ errorf "register must go on a day plan and capture course, module, and day correctly" }}
Expand All @@ -37,15 +40,20 @@ <h2 class="c-block__title e-heading__2" id="register">
<input type="hidden" name="module" value="{{ $module }}">
<input type="hidden" name="day" value="{{ $day }}">
<input type="hidden" name="buildTime" value="{{ now.Format "2006-01-02T15:04:05" }}">
<div><label for="givenName" class="is-invisible">Given Name</label>
<input type="text" name="givenName" id="givenName" autocomplete="given-name" placeholder="Given Name" required>
</div>
<div><label for="familyName" class="is-invisible">Family Name</label>
<input type="text" name="familyName" id="familyName" autocomplete="family-name" placeholder="Family Name" required>
<div><label for="givenName" class="is-invisible">Name</label>
<input type="text" name="givenName" id="givenName" autocomplete="name" placeholder="Name" required>
</div>
<div><label for="email" class="is-invisible">Email</label>
<input type="email" name="email" id="email" autocomplete="email" placeholder="Email" required>
</div>
{{ with $locations }}
<div><label for="location" class="is-invisible">Location</label>
<input list="locations" name="location" id="location" autocomplete="location" placeholder="Location" required>
<datalist id="locations">
{{ range . }}<option value="{{.}}"></option>{{ end }}
</datalist>
</div>
{{ end }}
<button class="e-button">Register</button>
</form>
</section>
Expand Down
2 changes: 1 addition & 1 deletion org-cyf-itp/hugo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title = "CYF ITP"
title = "ITP"
baseURL = "https://programming.codeyourfuture.io/"

[module]
Expand Down
1 change: 1 addition & 0 deletions org-cyf-theme/data/courses/itd.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ description="Meet the world of tech: write a CV with AI; evaluate data in spread
days=30
commitment="part time"
frequency=6
locations=["Birmingham", "Capetown", "Glasgow", "London", "Manchester", "Online", "Sheffield"]
3 changes: 2 additions & 1 deletion org-cyf-theme/data/courses/itp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ description="Programming with JavaScript, Python, and SQL; collaborate to delive
emoji="🐣"
days=84
commitment="part time"
frequency=4
frequency=4
locations=["Birmingham", "Capetown", "Glasgow", "London", "Manchester", "Online", "Sheffield"]
3 changes: 2 additions & 1 deletion org-cyf-theme/data/courses/launch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ description="In a cross functional Agile team, develop and deliver a real produc
emoji="🚀"
commitment="part time"
days=35
frequency=4
frequency=4
locations=["Online"]
3 changes: 2 additions & 1 deletion org-cyf-theme/data/courses/piscine.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ menu="selection"
url="https://piscine.codeyourfuture.io/"
days="22"
commitment="part time"
frequency=4
frequency=4
locations=["Online"]
3 changes: 2 additions & 1 deletion org-cyf-theme/data/courses/sdc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ weight=4
description="A secure grounding in software: binary, logic, systems, and problem solving"
days="84"
commitment="part time"
frequency=3
frequency=3
locations=["Birmingham", "Capetown", "Glasgow", "London", "Manchester", "Online", "Sheffield"]
3 changes: 2 additions & 1 deletion org-cyf-theme/data/courses/systems.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ description="An immersive, full time, systems engineering programme"
url="https://systems.codeyourfuture.io/"
menu="fellowships"
days=260
commitment="full time"
commitment="full time"
locations=["Online"]
Loading