generated from dxw/rails-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The exports/index.html.haml was getting tall enough post-level B exports to not be able to see the structure, so break it into four: - fund_exports (External Income, Budget etc for each fund) - level B (programme-level exports) - ad-hoc - partner organisation exports
- Loading branch information
Showing
5 changed files
with
110 additions
and
106 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
%h1.govuk-heading-m | ||
Ad-hoc exports | ||
|
||
%table.govuk-table | ||
%thead.govuk-table__head | ||
%tr.govuk-table__row | ||
%th.govuk-table__header{scope: "col"} | ||
Purpose | ||
%th.govuk-table__header{scope: "col"} | ||
= t("table.export.header.format") | ||
%th.govuk-table__header{scope: "col"} | ||
= t("table.header.default.actions") | ||
%tbody.govuk-table__body | ||
%tr.govuk-table__row | ||
%td.govuk-table__cell | ||
Activities continuing under GB-GOV-26 | ||
%td.govuk-table__cell | ||
CSV | ||
%td.govuk-table__cell | ||
= a11y_action_link("Download", continuing_activities_exports_path(format: "csv")) | ||
%tr.govuk-table__row | ||
%td.govuk-table__cell | ||
Activities not continuing under GB-GOV-26 | ||
%td.govuk-table__cell | ||
CSV | ||
%td.govuk-table__cell | ||
= a11y_action_link("Download", non_continuing_activities_exports_path(format: "csv")) |
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,40 @@ | ||
%table.govuk-table | ||
%thead.govuk-table__head | ||
%tr.govuk-table__row | ||
%th.govuk-table__header{scope: "col"} | ||
= t("table.export.header.fund") | ||
%th.govuk-table__header{scope: "col"} | ||
= t("table.export.header.format") | ||
%th.govuk-table__header{scope: "col"} | ||
= t("table.header.default.actions") | ||
%tbody.govuk-table__body | ||
- @funds.each do |fund| | ||
%tr.govuk-table__row | ||
%td.govuk-table__cell | ||
= t("table.export.external_income.name", fund: fund.name) | ||
%td.govuk-table__cell | ||
CSV | ||
%td.govuk-table__cell | ||
= a11y_action_link("Download", external_income_exports_path(fund_id: fund.id, format: "csv"), t("table.export.external_income.name", fund: fund.name), ["govuk-link--no-visited-state"]) | ||
- @funds.each do |fund| | ||
%tr.govuk-table__row | ||
%td.govuk-table__cell | ||
= t("table.export.budgets.name", fund: fund.name) | ||
%td.govuk-table__cell | ||
CSV | ||
%td.govuk-table__cell | ||
= a11y_action_link("Download", budgets_exports_path(fund_id: fund.id, format: "csv"), t("table.export.budgets.name", fund: fund.name), ["govuk-link--no-visited-state"]) | ||
- @funds.each do |fund| | ||
%tr.govuk-table__row | ||
%td.govuk-table__cell | ||
= t("table.export.spending_breakdown.name", fund: fund.name) | ||
%td.govuk-table__cell | ||
CSV | ||
%td.govuk-table__cell | ||
- if fund.activity.spending_breakdown_filename | ||
= a11y_action_link("Download", spending_breakdown_download_export_path(fund.id), t("table.export.spending_breakdown.name", fund: fund.name), ["govuk-link--no-visited-state"]) | ||
= "(last generated at #{l(fund.activity.spending_breakdown_generated_at, format: :detailed)})" | ||
%br | ||
= a11y_action_link("Request new", spending_breakdown_exports_path(fund_id: fund.id), t("table.export.spending_breakdown.name", fund: fund.name), ["govuk-link--no-visited-state"]) | ||
- else | ||
= a11y_action_link("Request", spending_breakdown_exports_path(fund_id: fund.id), t("table.export.spending_breakdown.name", fund: fund.name), ["govuk-link--no-visited-state"]) |
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,21 @@ | ||
%h1.govuk-heading-m | ||
Level B exports | ||
|
||
%table.govuk-table | ||
%thead.govuk-table__head | ||
%tr.govuk-table__row | ||
%th.govuk-table__header{scope: "col"} | ||
Fund | ||
%th.govuk-table__header{scope: "col"} | ||
= t("table.export.header.format") | ||
%th.govuk-table__header{scope: "col"} | ||
= t("table.header.default.actions") | ||
%tbody.govuk-table__body | ||
- @funds.each do |fund| | ||
%tr.govuk-table__row | ||
%td.govuk-table__cell | ||
= t("table.export.level_b.name", fund: fund.name) | ||
%td.govuk-table__cell | ||
CSV | ||
%td.govuk-table__cell | ||
= a11y_action_link("Download", level_b_exports_path(fund_id: fund.id, format: "csv"), t("table.export.level_b.name", fund: fund.name), ["govuk-link--no-visited-state"]) |
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,18 @@ | ||
%h1.govuk-heading-m | ||
= t("page_content.export.organisations.title") | ||
|
||
%table.govuk-table | ||
%thead.govuk-table__head | ||
%tr.govuk-table__row | ||
%th.govuk-table__header{scope: "col"} | ||
= t("table.header.organisation.name") | ||
%th.govuk-table__header{scope: "col"} | ||
= t("table.header.default.actions") | ||
|
||
%tbody.govuk-table__body | ||
- @organisations.each do |organisation| | ||
%tr.govuk-table__row | ||
%td.govuk-table__cell | ||
= organisation.name | ||
%td.govuk-table__cell | ||
= a11y_action_link("View exports", exports_organisation_path(organisation), "for #{organisation.name}", ["govuk-link--no-visited-state"]) |
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