Files
nairobi/app/components/management/budgets/investments/search_component.html.erb
Javi Martín 1cefc040a7 Add labels to the search form in the management area
The text for the unfeasible checkbox wasn't correctly defined as a
label, while the fields to search investments and select the heading
weren't intuitive since their purpose wasn't obvious.
2024-11-11 15:04:35 +01:00

30 lines
1009 B
Plaintext

<%= form_tag(url, options) do |f| %>
<div class="row">
<div class="small-12 medium-6 column">
<%= label_tag :search, search_label_text %>
<%= text_field_tag :search, "" %>
</div>
<div class="small-12 medium-6 column">
<%= label_tag :heading_id, attribute_name(:heading_id) %>
<%= select_tag :heading_id,
options_for_select(budget_heading_select_options(budget),
params[:heading_id]),
include_blank: true %>
</div>
</div>
<div class="row">
<div class="small-12 column">
<%= label_tag :unfeasible, class: "checkbox-label" do %>
<%= check_box_tag :unfeasible, "1", params[:unfeasible].present? %>
<%= t("admin.budget_investments.search_unfeasible") %>
<% end %>
</div>
</div>
<div class="row">
<div class="form-inline small-12 medium-3 column end">
<%= submit_tag t("shared.search"), class: "button" %>
</div>
</div>
<% end %>