7
8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/formbuilder/views/form_field.rb', line 7
def content
@value = @entry.try(:response_value, @response_field)
div(class: "fb-field-wrapper response-field-#{@response_field.field_type} #{@entry.try(:error_for, @response_field) && 'error'}") {
render_label if @response_field.input_field
rawtext @response_field.render_input(@value, entry: @entry)
div.clear
render_min_max_lengths
render_min_max
render_error if @response_field.input_field && @entry.error_for(@response_field)
render_description if @response_field.input_field && @response_field[:field_options]["description"].present?
}
end
|