Skip to content

Commit

Permalink
Layout finalization + translation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ahukkanen committed Oct 2, 2023
1 parent 6f6686d commit cfb7131
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 22 deletions.
32 changes: 12 additions & 20 deletions app/views/decidim/budgets/projects/_filters.html.erb
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
<%
main_row_column_class = begin
if display_budgets_filter? && display_status_filter? && display_category_filter?
"columns mediumlarge-6 large-3"
else
"columns mediumlarge-6 large-4"
end
end

type_suffix = defined?(type) ? "_#{type}" : ""
%>

Expand All @@ -21,8 +13,8 @@ type_suffix = defined?(type) ? "_#{type}" : ""
</div>
</div>

<div class="row">
<div class="<%= main_row_column_class %>">
<div class="row medium-unstack">
<div class="columns mediumlarge-6 large-4">
<div class="filters__section text_filter">
<fieldset>
<legend class="mini-title"><%= t(".term") %></legend>
Expand All @@ -31,7 +23,7 @@ type_suffix = defined?(type) ? "_#{type}" : ""
</div>
</div>
<% if display_budgets_filter? %>
<div class="<%= main_row_column_class %><%= " end" if !display_category_filter? && !display_status_filter? %>">
<div class="columns mediumlarge-6 large-4">
<div class="filters__section decidim_budgets_budget_id_eq_filter">
<fieldset>
<legend class="mini-title"><%= t(".budget") %></legend>
Expand All @@ -41,7 +33,7 @@ type_suffix = defined?(type) ? "_#{type}" : ""
</div>
<% end %>
<% if display_category_filter? %>
<div class="<%= main_row_column_class %><%= " end" unless display_status_filter? %>">
<div class="columns mediumlarge-6 large-4">
<div class="filters__section with_any_category_filter">
<fieldset>
<legend class="mini-title"><%= t(".category") %></legend>
Expand All @@ -51,7 +43,7 @@ type_suffix = defined?(type) ? "_#{type}" : ""
</div>
<% end %>
<% if display_status_filter? %>
<div class="<%= main_row_column_class %> end">
<div class="columns mediumlarge-6 large-4">
<div class="filters__section with_any_status_filter">
<fieldset>
<legend class="mini-title"><%= t(".status") %></legend>
Expand All @@ -65,23 +57,23 @@ type_suffix = defined?(type) ? "_#{type}" : ""
<% if display_budget_amount_filters? || current_user %>
<div class="row columns">
<div class="filters__section">
<button type="button" class="link" data-toggle="additional_search<%= type_suffix %> additional_search_closed<%= type_suffix %> additional_search_open<%= type_suffix %>" id="additional_search_toggle<%= type_suffix %>">
<button type="button" class="link action-link margin-bottom-2" data-toggle="additional_search<%= type_suffix %> additional_search_closed<%= type_suffix %> additional_search_open<%= type_suffix %>" id="additional_search_toggle<%= type_suffix %>">
<span id="additional_search_closed<%= type_suffix %>" data-toggler=".is-hidden" aria-expanded="true">
<%= t(".more_criteria.show") %>
<span><%= t(".more_criteria.show") %></span>
<%= icon "chevron-bottom", role: "img", "aria-hidden": true %>
</span>
<span id="additional_search_open<%= type_suffix %>" class="is-hidden" data-toggler=".is-hidden" aria-expanded="false">
<%= t(".more_criteria.hide") %>
<span><%= t(".more_criteria.hide") %></span>
<%= icon "chevron-top", role: "img", "aria-hidden": true %>
</span>
</button>
</div>
</div>
<% end %>

<div id="additional_search<%= type_suffix %>" class="row is-hidden" data-toggler=".is-hidden">
<div id="additional_search<%= type_suffix %>" class="row medium-unstack is-hidden" data-toggler=".is-hidden">
<% if display_budget_amount_filters? %>
<div class="columns mediumlarge-6 large-3">
<div class="columns mediumlarge-6 large-4">
<div class="filters__section budget_amount_gteq_filter">
<fieldset>
<legend class="mini-title"><%= t(".budget_amount_min") %></legend>
Expand All @@ -92,7 +84,7 @@ type_suffix = defined?(type) ? "_#{type}" : ""
</fieldset>
</div>
</div>
<div class="columns mediumlarge-6 large-3<%= " end" unless current_user %>">
<div class="columns mediumlarge-6 large-4">
<div class="filters__section budget_amount_lteq_filter">
<fieldset>
<legend class="mini-title"><%= t(".budget_amount_max") %></legend>
Expand All @@ -105,7 +97,7 @@ type_suffix = defined?(type) ? "_#{type}" : ""
</div>
<% end %>
<% if current_user %>
<div class="columns mediumlarge-6 end">
<div class="columns mediumlarge-6 large-4">
<div class="filters__section activity_collection_radio_buttons_filter">
<fieldset>
<legend class="mini-title"><%= t(".activity") %></legend>
Expand Down
2 changes: 1 addition & 1 deletion app/views/decidim/budgets/projects/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="row columns">
<div class="page-title">
<h2 class="heading1"><%= translated_attribute(current_component.name) %></h2>
<h1 class="heading1"><%= translated_attribute(current_component.name) %></h1>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion app/views/decidim/budgets/projects/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ edit_link(
</div>

<div class="row column resource">
<div class="row">
<div class="row ">
<div class="columns small-12 medium-8">
<div class="resource__main static__content">
<h1><%= translated_attribute project.title %></h1>
Expand Down

0 comments on commit cfb7131

Please sign in to comment.