Add search form for Admin::BudgetInvestments (#2336)
This commit is contained in:
12
app/views/admin/budget_investments/_search_form.html.erb
Normal file
12
app/views/admin/budget_investments/_search_form.html.erb
Normal 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>
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user