Class: Formbuilder::ResponseFieldSectionBreak

Inherits:
ResponseField
  • Object
show all
Defined in:
app/models/formbuilder/response_field_section_break.rb

Constant Summary

Constants inherited from ResponseField

Formbuilder::ResponseField::ALLOWED_PARAMS

Instance Attribute Summary

Attributes inherited from ResponseField

#cid, #field_type, #input_field, #options_field, #serialized, #sort_as_numeric

Instance Method Summary collapse

Methods inherited from ResponseField

#audit_response, #has_length_validations?, #length_validations, #min_max_validations, #render_entry, #render_entry_for_table, #validate_response

Instance Method Details

#render_input(value, opts = {}) ⇒ Object



9
10
11
12
13
14
# File 'app/models/formbuilder/response_field_section_break.rb', line 9

def render_input(value, opts = {})
  """
    <label class='section-name'>#{self[:label]}</label>
    <p>#{self[:field_options]['description']}</p>
  """
end