diff --git a/app/assets/stylesheets/custom/tenants.scss b/app/assets/stylesheets/custom/tenants.scss index 95de280dd57..0ce5d62d203 100644 --- a/app/assets/stylesheets/custom/tenants.scss +++ b/app/assets/stylesheets/custom/tenants.scss @@ -51,9 +51,9 @@ --main-header: var(--brand); --brand-contrast: #FFFFFF; --main-header-contrast: #FFFFFF; - // Import shared styles - @import "cosla_shared"; - @include shared-styles; + // Import shared styles + @import "cosla_shared"; + @include shared-styles; } .tenant-flotta { @@ -67,23 +67,23 @@ --main-header: var(--brand); --brand-contrast: #FFFFFF; --main-header-contrast: #FFFFFF; - // Import shared styles - @import "cosla_shared"; - @include shared-styles; + // Import shared styles + @import "cosla_shared"; + @include shared-styles; } .tenant-test { - --anchor-color: #008585; - --anchor-color-hover: #74a892; - --brand: #c7522a; - --brand-secondary: #e5c185; - --button-background-hover: #fbf2c4; - --button-background-hover-contrast: #{$black}; - --footer: #e6e6e6; - --main-header: #74a892; - --top-links: var(--main-header); - --subnavigation: #c7522a; - } + --anchor-color: #008585; + --anchor-color-hover: #74a892; + --brand: #c7522a; + --brand-secondary: #e5c185; + --button-background-hover: #fbf2c4; + --button-background-hover-contrast: #{$black}; + --footer: #e6e6e6; + --main-header: #74a892; + --top-links: var(--main-header); + --subnavigation: #c7522a; +} .tenant-arb { --brand: #10069F; @@ -92,56 +92,56 @@ --footer: #023C19; --footer-contrast: #FFFFFF; --main-header-contrast: #FFFFFF; - --top-links: var(--brand-secondary); + --top-links: var(--brand-secondary); --top-links-contrast: #FFFFFF; @import "cosla_shared"; - @include shared-styles; + @include shared-styles; } - .tenant-inverc { +.tenant-inverc { --brand: #36808c; --brand-secondary: #75a5ad; --brand-contrast: #FFFFFF; --footer: #d7e5e7; --main-header-contrast: #FFFFFF; - --top-links: #75a5ad ; + --top-links: #75a5ad; --top-links-contrast: #FFFFFF; - @import "cosla_shared"; - @include shared-styles; + @import "cosla_shared"; + @include shared-styles; } .tenant-edi { - --brand: #6D3465; + --brand: #6D3465; --brand-secondary: #492445; --brand-contrast: #FFFFFF; --footer: #D0E0F4; --main-header-contrast: #FFFFFF; - --top-links: var(--brand-secondary); + --top-links: var(--brand-secondary); --top-links-contrast: #FFFFFF; @import "cosla_shared"; - @include shared-styles; + @include shared-styles; } .tenant-aberdeen { - --main-header: #EF5D9E; - --brand: #45D3A1; - --brand-secondary: #6CBEEC; - --brand-contrast: #FF; - --footer: #eee6db; - --main-header-contrast: #FFFFFF; - --top-links: #eee6db; - --top-links-contrast: #FF; + --main-header: #EF5D9E; + --brand: #45D3A1; + --brand-secondary: #6CBEEC; + --brand-contrast: #FF; + --footer: #eee6db; + --main-header-contrast: #FFFFFF; + --top-links: #eee6db; + --top-links-contrast: #FF; } .tenant-sac { - --brand: #005293; + --brand: #005293; --brand-secondary: #002F59; --footer: #CEDBEA; --brand-contrast: #FFFFFF; --main-header-contrast: #FFFFFF; --top-links: var(--brand-secondary); --top-links-contrast: #FFFFFF; - @import "cosla_shared"; + @import "cosla_shared"; @include shared-styles; } @@ -152,10 +152,10 @@ --footer: #023C19; --footer-contrast: #FFFFFF; --main-header-contrast: #FFFFFF; - --top-links: var(--brand-secondary); + --top-links: var(--brand-secondary); --top-links-contrast: #FFFFFF; @import "cosla_shared"; - @include shared-styles; + @include shared-styles; } .tenant-highland { @@ -169,9 +169,9 @@ --main-header: var(--brand); --brand-contrast: #FFFFFF; --main-header-contrast: #FFFFFF; - // Import shared styles - @import "cosla_shared"; - @include shared-styles; + // Import shared styles + @import "cosla_shared"; + @include shared-styles; } .tenant-hlc { @@ -185,7 +185,7 @@ --main-header: var(--brand); --brand-contrast: #FFFFFF; --main-header-contrast: #FFFFFF; - // Import shared styles - @import "cosla_shared"; - @include shared-styles; + // Import shared styles + @import "cosla_shared"; + @include shared-styles; } diff --git a/app/views/admin/postcodes/_form.html.erb b/app/views/admin/postcodes/_form.html.erb index 9fd5e61c34f..6577d12feb4 100644 --- a/app/views/admin/postcodes/_form.html.erb +++ b/app/views/admin/postcodes/_form.html.erb @@ -12,12 +12,12 @@
- <%= f.collection_select :geozone_id, Geozone.all, :id, :name, prompt:true, hint: t("admin.postcodes.postcode.geozone_help") %> + <%= f.collection_select :geozone_id, Geozone.all, :id, :name, prompt: true, hint: t("admin.postcodes.postcode.geozone_help") %>
<%= f.submit(value: t("admin.postcodes.edit.form.submit_button"), - class: "button success") %> + class: "button success") %>
<% end %> diff --git a/app/views/admin/postcodes/ncsv_review.html.erb b/app/views/admin/postcodes/ncsv_review.html.erb index 714a09226a4..fe97d7a8aa7 100644 --- a/app/views/admin/postcodes/ncsv_review.html.erb +++ b/app/views/admin/postcodes/ncsv_review.html.erb @@ -11,27 +11,27 @@
- - - - - + + + + + - <% if @rejected_entries.length == 0 %> + <% if @rejected_entries.length == 0 %> + + + + <% else %> + <% @rejected_entries.each do |rejected_entry| %> - + <% rejected_entry.each do |key, value| %> + + <% end %> - <% else %> - <% @rejected_entries.each do |rejected_entry| %> - - <% rejected_entry.each do |key, value| %> - - <% end %> - - <% end %> <% end %> + <% end %>
<%= t("admin.postcodes.postcode.postcode") %><%= t("admin.postcodes.postcode.ward") %><%= t("admin.postcodes.postcode.geozone_id") %>
<%= t("admin.postcodes.postcode.postcode") %><%= t("admin.postcodes.postcode.ward") %><%= t("admin.postcodes.postcode.geozone_id") %>
<%= t("admin.postcodes.index.no_record") %>
<%= t("admin.postcodes.index.no_record") %><%= value %>
<%= value %>
@@ -39,11 +39,11 @@ - - - - - + + + + + @@ -61,4 +61,4 @@ <% end %> <% end %> -
<%= t("admin.postcodes.postcode.postcode") %><%= t("admin.postcodes.postcode.ward") %><%= t("admin.postcodes.postcode.geozone_id") %>
<%= t("admin.postcodes.postcode.postcode") %><%= t("admin.postcodes.postcode.ward") %><%= t("admin.postcodes.postcode.geozone_id") %>
\ No newline at end of file + diff --git a/app/views/budgets/results/_results_table.html.erb b/app/views/budgets/results/_results_table.html.erb index 770266baab2..68ed28a6a1f 100644 --- a/app/views/budgets/results/_results_table.html.erb +++ b/app/views/budgets/results/_results_table.html.erb @@ -6,76 +6,76 @@ - - + + + + <% if @budget.show_money? %> - <% if @budget.show_money? %> - - <% if results_type == :compatible %> - - <% end %> <% end %> - + <% end %> + - <% amount_available = heading_price %> - <% investments.each do |investment| %> - " - style="<%= investment.winner? ? "" : "display: none" %>"> - " + style="<%= investment.winner? ? "" : "display: none" %>"> + - - <% if @budget.show_money? %> - - <% if results_type == :compatible %> - <% if @budget.part_fund && investment.winner && amount_available - investment.price < 0 %> - <% amount_after_investment = amount_available - investment.price %> - - <% else %> - - <% end %> + <% end %> + <%= link_to investment.title, budget_investment_path(@budget, investment) %> + + + <% if @budget.show_money? %> + - <% end %> + + <% if results_type == :compatible %> + <% if @budget.part_fund && investment.winner && amount_available - investment.price < 0 %> + <% amount_after_investment = amount_available - investment.price %> + + <% else %> + + <% end %> + <% end %> + <% end %> + + <% end %>
- <%= t("budgets.results.investment_title") %> -
+ <%= t("budgets.results.investment_title") %> + + <%= t("budgets.results.ballot_lines_count") %> + - <%= t("budgets.results.ballot_lines_count") %> + <%= t("budgets.results.price") %> - <%= t("budgets.results.price") %> + <% if results_type == :compatible %> + + <%= t("budgets.results.amount_available") %>
+ <%= @budget.formatted_amount(heading_price) %>
- <%= t("budgets.results.amount_available") %>
- <%= @budget.formatted_amount(heading_price) %>
-
- <% if investment.winner? %> + <% amount_available = heading_price %> + <% investments.each do |investment| %> +
+ <% if investment.winner? %> <%= t("budgets.results.accepted") %> - <% else %> + <% else %> <%= t("budgets.results.discarded") %> - <% end %> - <%= link_to investment.title, budget_investment_path(@budget, investment) %> - - <%= investment.ballot_lines_count %> - - <% if @budget.part_fund && investment.winner && amount_available - investment.price < 0 %> - <%= @budget.formatted_amount(investment.price) %>(Part Fund) - <% else %> - <%= @budget.formatted_amount(investment.price) %> - <% end %> - - <%= @budget.formatted_amount(amount_after_investment) %> - - <%= @budget.formatted_amount(amount_available - investment.price) %> - <% amount_available -= investment.price if investment.winner? %> - + <%= investment.ballot_lines_count %> + + <% if @budget.part_fund && investment.winner && amount_available - investment.price < 0 %> + <%= @budget.formatted_amount(investment.price) %>(Part Fund) + <% else %> + <%= @budget.formatted_amount(investment.price) %> <% end %> - <% end %> -
+ <%= @budget.formatted_amount(amount_after_investment) %> + + <%= @budget.formatted_amount(amount_available - investment.price) %> + <% amount_available -= investment.price if investment.winner? %> +
diff --git a/app/views/budgets/select_headings.html.erb b/app/views/budgets/select_headings.html.erb index d8bf454f57e..fbc1952facd 100644 --- a/app/views/budgets/select_headings.html.erb +++ b/app/views/budgets/select_headings.html.erb @@ -4,7 +4,7 @@

<%= t("budgets.select_headings.budget_name") %>: <%= @budget.name %>

<%= form_with url: new_budget_investment_path(@budget.id, proposal_id: @proposal.id), method: :get, local: true do |form| %> -
+
<%= form.label :group_id, t("budgets.select_headings.select_group") %> <%= form.collection_select :group_id, @groups, :id, :name, { prompt: t("budgets.select_headings.choose_group") }, { id: "group-select" } %> @@ -15,14 +15,14 @@ <%= form.hidden_field :proposal_id, value: @proposal.id %> <%= form.hidden_field :budget_id, value: @budget.id %>
-
- <%= form.submit t("budgets.select_headings.submit") %> -
+
+ <%= form.submit t("budgets.select_headings.submit") %> +
<% end %>