Commit ee5b9a28 authored by Mateus Ravedutti's avatar Mateus Ravedutti

Update citizens search form with city hall for adm c3sl

parent dd32fc54
......@@ -4,6 +4,15 @@
<div id="search-form">
<%= search_form_for(@search, :url => { :controller => "users", :action => 'index'}) do |f| %>
<% if @currentProfessionalServicePlace.role == "adm_c3sl" %>
<div class="field-h col s12 m6 l3">
<%= f.label :city_hall, t(:city_hall)+": " %><br />
<%= f.collection_select :city_city_halls_id_eq, CityHall.active.order(:name),
:id, :name, { :include_blank => "Todos" }, { :class => "search-field" } %>
</div>
<% end %>
<div class="field-h col s12 m6 l3">
<%= f.label :name, t(:Name)+": " %><br />
<%= f.text_field :name_cont, :class => "search-field" %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment