Add search form for Admin::BudgetInvestments (#2336)

This commit is contained in:
Angel Perez
2018-01-24 08:58:32 -04:00
parent c08edf044d
commit 680ca46ef1
6 changed files with 47 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
<div class="small-12 medium-6">
<%= form_for(Budget::Investment.new, url: admin_budget_budget_investments_path(budget: @budget),
method: :get,
remote: true) do |f| %>
<div class="input-group">
<%= text_field_tag :project_title, "", placeholder: t("#{i18n_namespace}.placeholder") %>
<div class="input-group-button">
<%= f.submit t("#{i18n_namespace}.buttons.search"), class: "button" %>
</div>
</div>
<% end %>
</div>

View File

@@ -1,5 +1,7 @@
<h2 class="inline-block"><%= @budget.name %> - <%= t("admin.budget_investments.index.title") %></h2>
<%= render 'search_form', i18n_namespace: "admin.budget_investments.index" %>
<%= form_tag(admin_budget_budget_investments_path(budget: @budget), method: :get, enforce_utf8: false) do %>
<div class="small-12 medium-3 column">
<%= select_tag :administrator_id,