Class: Matestack::Ui::Bootstrap::Form::Switch
- Inherits:
-
Checkbox
- Object
- Checkbox
- Matestack::Ui::Bootstrap::Form::Switch
- Defined in:
- app/concepts/matestack/ui/bootstrap/form/switch.rb
Instance Method Summary collapse
Instance Method Details
#response ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'app/concepts/matestack/ui/bootstrap/form/switch.rb', line 9 def response div class: "matestack-ui-bootstrap-switch" do label class: "form-label", text: input_label, for: attr_key if input_label && multiple? render_errors render_form_text unless form_text.nil? # otherwise renders empty div # if !checkbox_options.empty? # label for: attr_key, class: "form-label", text: input_label if input_label # end # if !checkbox_options.empty? # multiple_switches # else # true_false_switch # end # render_form_text unless form_text.nil? # otherwise renders empty div end end |