<% property.notes_selector.each do |index,sub_hash| %> <% name = sub_hash["name"][I18n.locale.to_s] %> <% name = sub_hash["name"].values.select{|v| v.present?}.first.to_s if name.blank? %> <% values = sub_hash["value"][I18n.locale.to_s] %> <% values = sub_hash["value"].values.select{|v| v.present?}.first.to_s if values.blank? %> <% type = sub_hash["type"] %>
<%= f.label "notes_selector[#{index}]", name, :class => "col-sm-#{label_col} control-label" %>
<% values.each_with_index do |v,i| %> <% end %> <% if type == "checkbox" && (values.count > 1) %> <%= t("property_hire.checkbox_hint") %> <% end %>
<% end %>