hps_member/app/views/admin/member_counselors/get_info.html.erb

10 lines
390 B
Plaintext
Raw Normal View History

2017-05-18 12:12:35 +00:00
<% case params[:get_info] %>
<% when "counties" %>
<option>Select County</option>
<% when "schools" %>
<option>Select School</option>
<% end %>
<%#= options_for_select(@objects.collect{|obj|[obj.name, obj.id]}) %>
<% @objects.each do |obj| %>
<option value="<%= obj.id.to_s %>" <%= params[:get_info] == "schools" ? "data-address=#{obj.address}" : "" %>><%= obj.name %></option>
<% end %>