-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #650 from bitzesty/main
Staging release
- Loading branch information
Showing
21 changed files
with
1,090 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
require_relative 'qavs' | ||
|
||
class AwardYears::V2025::QaeForms | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
require_relative "qavs/qavs_step1" | ||
require_relative "qavs/qavs_step2" | ||
require_relative "qavs/qavs_step3" | ||
require_relative "qavs/qavs_step4" | ||
require_relative "qavs/qavs_step5" | ||
|
||
class AwardYears::V2025::QaeForms | ||
class << self | ||
def qavs | ||
@qavs ||= QaeFormBuilder.build "King's Award for Voluntary Service Nomination" do | ||
step "nominee", | ||
&AwardYears::V2025::QaeForms.qavs_step1 | ||
|
||
step "recommendation", | ||
&AwardYears::V2025::QaeForms.qavs_step2 | ||
|
||
step "letters_of_support", | ||
{ id: :letters_of_support_step }, | ||
&AwardYears::V2025::QaeForms.qavs_step3 | ||
|
||
step "submit_step", | ||
&AwardYears::V2025::QaeForms.qavs_step4 | ||
|
||
step "local_assessment_form", | ||
{ id: :local_assessment }, | ||
&AwardYears::V2025::QaeForms.qavs_step5 | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
# coding: utf-8 | ||
class AwardYears::V2025::QaeForms | ||
class << self | ||
def qavs_step1 | ||
@qavs_step1 ||= proc do | ||
notice %( | ||
<p class=govuk-body>Please note your answers are being saved automatically in the background.</p> | ||
) | ||
|
||
header :nominee_details_header, "Group details" do | ||
ref "A 1" | ||
end | ||
|
||
text :nominee_name, "Name of group" do | ||
sub_ref "A 1.1" | ||
required | ||
form_hint "It is important that the name is accurate and spelt correctly, as this will appear on the Award certificate if your nomination succeeds. You do not need to add a charity number." | ||
style "large" | ||
end | ||
|
||
text :nominee_established_date, "When was the group established?" do | ||
sub_ref "A 1.2" | ||
required | ||
style "small" | ||
end | ||
|
||
dropdown :nominee_activity, "Please select the group's main area of activity" do | ||
sub_ref "A 1.3" | ||
required | ||
option "", "" | ||
nominee_activities | ||
end | ||
|
||
dropdown :secondary_activity, "Please select the group's secondary area of activity (optional)" do | ||
sub_ref "A 1.4" | ||
option "", "" | ||
nominee_activities | ||
end | ||
|
||
address :nominee_address, "Address of group" do | ||
sub_ref "A 1.5" | ||
required | ||
sub_fields([ | ||
{ building: "Building" }, | ||
{ street: "Street" }, | ||
{ city: "Town or city" }, | ||
{ county: "County" }, | ||
{ postcode: "Postcode" } | ||
]) | ||
end | ||
|
||
text :nominee_phone, "Telephone number" do | ||
sub_ref "A 1.6" | ||
style "small" | ||
type "tel" | ||
end | ||
|
||
text :nominee_website, "Website" do | ||
sub_ref "A 1.7" | ||
style "large" | ||
end | ||
|
||
textarea :social_media, "Social media" do | ||
sub_ref "A 1.8" | ||
form_hint "Social media accounts if known" | ||
words_max 100 | ||
rows 2 | ||
end | ||
|
||
header :nominee_leader_header, "About the group leader or main contact in the group" do | ||
ref "A 2" | ||
context %( | ||
<p class='govuk-hint'>This is the person the County Assessment Panel will contact to ask any questions or arrange a visit.</p> | ||
) | ||
end | ||
|
||
text :nominee_leader_name, "Name of the group leader or main contact in the group" do | ||
sub_ref "A 2.1" | ||
required | ||
style "small" | ||
end | ||
|
||
text :nominee_leader_position, "Position held in the group" do | ||
sub_ref "A 2.2" | ||
required | ||
style "large" | ||
end | ||
|
||
address :nominee_leader_address, "Address of main contact" do | ||
sub_ref "A 2.3" | ||
required | ||
sub_fields([ | ||
{ building: "Building" }, | ||
{ street: "Street" }, | ||
{ city: "Town or city" }, | ||
{ county: "County" }, | ||
{ postcode: "Postcode" } | ||
]) | ||
end | ||
|
||
text :nominee_leader_email, "Email" do | ||
sub_ref "A 2.4" | ||
required | ||
type "email" | ||
style "large" | ||
end | ||
|
||
text :nominee_leader_telephone, "Telephone" do | ||
sub_ref "A 2.5" | ||
style "small" | ||
type "tel" | ||
end | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.