-
Notifications
You must be signed in to change notification settings - Fork 8
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 #1207 from alphagov/add-fields
Add fields to the 'Request a new campaign' form
- Loading branch information
Showing
6 changed files
with
52 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,12 @@ | |
[Site build budget / costs (and overall campaign cost, if applicable)] | ||
£1200 and tuppence | ||
[HMG code: from approved AMC technical cases. Format: HMGXX-XXX (If not applicable enter n/a)] | ||
HMGXX-XXX | ||
[Strategic Planning Code: from strategic planning phase. Format: CSBXX-XXX (If not applicable enter n/a)] | ||
CSBXX-XXX | ||
[Contact details for Google Analytics leads (Gmail accounts only)] | ||
[email protected] | ||
|
@@ -101,6 +107,8 @@ | |
site_tagline: "A new one about a new thing", | ||
site_metadescription: "pensions, campaign, newcampaign", | ||
cost_of_campaign: "£1200 and tuppence", | ||
hmg_code: "HMGXX-XXX", | ||
strategic_planning_code: "CSBXX-XXX", | ||
ga_contact_email: "[email protected]", | ||
additional_comments: "Some comment", | ||
) | ||
|
@@ -136,6 +144,8 @@ def user_makes_a_campaign_request(details) | |
fill_in "Site tagline*", with: details[:site_tagline] | ||
fill_in "Site metadescription (appears in search results)*", with: details[:site_metadescription] | ||
fill_in "Site build budget / costs (and overall campaign cost, if applicable)*", with: details[:cost_of_campaign] | ||
fill_in "HMG code: from approved AMC technical cases. Format: HMGXX-XXX (If not applicable enter n/a)", with: details[:hmg_code] | ||
fill_in "Strategic Planning Code: from strategic planning phase. Format: CSBXX-XXX (If not applicable enter n/a)", with: details[:strategic_planning_code] | ||
fill_in "Cabinet Office/No10 only : Contact details for Google Analytics leads (Gmail accounts only)", with: details[:ga_contact_email] | ||
fill_in "Additional comments", with: details[:additional_comments] | ||
|
||
|
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 |
---|---|---|
|
@@ -25,6 +25,8 @@ def as_str(date) | |
proposed_url: "example.campaign.gov.uk", | ||
site_metadescription: "tag1, tag2", | ||
cost_of_campaign: 1200, | ||
hmg_code: "HMGXX-XXX", | ||
strategic_planning_code: "CSBXX-XXX", | ||
ga_contact_email: "[email protected]", | ||
) | ||
end | ||
|
@@ -42,6 +44,8 @@ def as_str(date) | |
it { should validate_presence_of(:site_tagline) } | ||
it { should validate_presence_of(:site_metadescription) } | ||
it { should validate_presence_of(:cost_of_campaign) } | ||
it { should validate_presence_of(:hmg_code) } | ||
it { should validate_presence_of(:strategic_planning_code) } | ||
it { should validate_presence_of(:ga_contact_email) } | ||
|
||
it { should validate_acceptance_of(:has_read_guidance_confirmation) } | ||
|