Method: Formtastic::Inputs::Base::Timeish#to_html

Defined in:
lib/formtastic/inputs/base/timeish.rb

#to_htmlObject



97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# File 'lib/formtastic/inputs/base/timeish.rb', line 97

def to_html
  input_wrapping do
    fragments_wrapping do
      hidden_fragments <<
      fragments_label <<
      template.(:ol,
        fragments.map do |fragment|
          fragment_wrapping do
            fragment_label_html(fragment) <<
            fragment_input_html(fragment)
          end
        end.join.html_safe, # TODO is this safe?
        { :class => 'fragments-group' } # TODO refactor to fragments_group_wrapping
      )
    end
  end
end