-
Notifications
You must be signed in to change notification settings - Fork 3
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 #1257 from DFE-Digital/feature/148320-exports-land…
…ing-page (148320) Build exports landing page
- Loading branch information
Showing
9 changed files
with
94 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class All::Export::ProjectsController < ApplicationController | ||
def index | ||
authorize :export | ||
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,32 @@ | ||
<% content_for :primary_navigation do %> | ||
<%= render partial: "shared/navigation/all_projects_primary_navigation" %> | ||
<% end %> | ||
|
||
<% content_for :page_title do %> | ||
<%= page_title(t("export.landing_page.title")) %> | ||
<% end %> | ||
|
||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<h3 class="govuk-heading-l"><%= t("export.landing_page.title") %></h3> | ||
<p class="govuk-body"><%= t("export.landing_page.body") %></p> | ||
</div> | ||
</div> | ||
|
||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<h4 class="govuk-heading-m"><%= t("export.landing_page.conversions.title") %></h4> | ||
<p class="govuk-body"><%= t("export.landing_page.conversions.body") %></p> | ||
<p class="govuk-body"><%= t("export.landing_page.conversions.funding_agreement_letters_html", link: all_export_funding_agreement_letters_conversions_projects_path) %></p> | ||
<p class="govuk-body"><%= t("export.landing_page.conversions.risk_protection_arrangements_html", link: all_export_education_and_skills_funding_agency_conversions_projects_path) %></p> | ||
<p class="govuk-body"><%= t("export.landing_page.conversions.grant_management_html", link: all_export_grant_management_and_finance_unit_conversions_projects_path) %></p> | ||
</div> | ||
</div> | ||
|
||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<h4 class="govuk-heading-m"><%= t("export.landing_page.transfers.title") %></h4> | ||
<p class="govuk-body"><%= t("export.landing_page.transfers.body") %></p> | ||
<p class="govuk-body"><%= t("export.landing_page.transfers.academies_due_to_transfer_html", link: all_export_by_month_transfers_projects_path) %></p> | ||
</div> | ||
</div> |
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,15 @@ | ||
en: | ||
export: | ||
landing_page: | ||
title: Exports | ||
body: Check tables that show the progress of projects that will convert or transfer soon. You can also download .CSV file spreadsheets of the data. | ||
conversions: | ||
title: Conversion project data | ||
body: View tables and download spreadsheets that show information about conversions. | ||
funding_agreement_letters_html: You can <a href="%{link}">find out who should be sent the funding agreement letters</a>. | ||
risk_protection_arrangements_html: You can <a href="%{link}">check details about schools' risk protection arrangements and start-up grant funding</a>. | ||
grant_management_html: You can <a href="%{link}">get information pre-opening grants for schools becoming academies</a>. | ||
transfers: | ||
title: Transfer project data | ||
body: View tables and download spreadsheets that show information about transfers. | ||
academies_due_to_transfer_html: You can <a href="%{link}">check which academies are due to transfer in an particular month</a>. |
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
34 changes: 34 additions & 0 deletions
34
spec/features/all_projects/export/export_users_can_see_an_export_landing_page_spec.rb
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,34 @@ | ||
require "rails_helper" | ||
|
||
RSpec.feature "Export users can see the exports landing page" do | ||
scenario "other users do not see the navigation" do | ||
user = create(:regional_delivery_officer_user) | ||
|
||
sign_in_with_user(user) | ||
visit all_in_progress_projects_path | ||
|
||
expect(page).not_to have_link("Exports") | ||
end | ||
|
||
scenario "an ESFA user can see the exports landing page" do | ||
user = create(:user, team: :education_and_skills_funding_agency) | ||
|
||
sign_in_with_user(user) | ||
click_on "Exports" | ||
|
||
expect(page).to have_content("You can find out who should be sent the funding agreement letters.") | ||
expect(page).to have_content("You can check details about schools' risk protection arrangements and start-up grant funding.") | ||
expect(page).to have_content("You can get information pre-opening grants for schools becoming academies.") | ||
end | ||
|
||
scenario "an AOPU user can see the exports landing page" do | ||
user = create(:user, team: :academies_operational_practice_unit) | ||
|
||
sign_in_with_user(user) | ||
click_on "Exports" | ||
|
||
expect(page).to have_content("You can find out who should be sent the funding agreement letters.") | ||
expect(page).to have_content("You can check details about schools' risk protection arrangements and start-up grant funding.") | ||
expect(page).to have_content("You can get information pre-opening grants for schools becoming academies.") | ||
end | ||
end |