Sha256: c07a8825e9cd511840103588d8f0a8b904c6902e9b7a58f378a7b14517941f35

Contents?: true

Size: 269 Bytes

Versions: 3

Compression:

Stored size: 269 Bytes

Contents

<%
  label_class = options[:field_name].to_s.gsub(/(_button$|_)/, '')
%>

<% options[:choices].each do |hidden, field, label| %>
  <%= hidden %>
  <%= content_tag(:label, :class => label_class) do %>
    <%= field %><%= options[:label] || label %>
  <% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
formatted_form-2.1.2 app/views/formatted_form/templates/_choices_inline.html.erb
formatted_form-2.1.1 app/views/formatted_form/templates/_choices_inline.html.erb
formatted_form-2.1.0 app/views/formatted_form/templates/_choices_inline.html.erb