Note this rule does still allow us to add new lines after opening tags; it just makes sure that if we do, we also add it in closing tags. Likewise, if we don't add it in the opening tag, it forces us not to add it in the closing tag either. I don't have a strong preference about either style; in these cases I've chosen the latter because it seemed more common in our code.
26 lines
881 B
Plaintext
26 lines
881 B
Plaintext
<%= form_for(Budget::Investment.new, url: url, as: :budget_investment, method: :get) do |f| %>
|
|
<div class="row">
|
|
<div class="small-12 medium-6 column">
|
|
<%= text_field_tag :search, "" %>
|
|
</div>
|
|
<div class="small-12 medium-6 column">
|
|
<%= 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 medium-6 column">
|
|
<%= check_box_tag :unfeasible, "1", params[:unfeasible].present? %>
|
|
<%= t("admin.budget_investments.search_unfeasible") %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="form-inline small-12 medium-3 column end">
|
|
<%= f.submit t("shared.search"), class: "button" %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|