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

10 lines
390 B
Plaintext

<% 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 %>