2010-07-06 09:24:12 +00:00
|
|
|
module SimpleForm
|
|
|
|
module Components
|
|
|
|
module LabelInput
|
2011-09-03 12:40:47 +00:00
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
|
|
|
included do
|
|
|
|
include SimpleForm::Components::Labels
|
2010-07-06 09:24:12 +00:00
|
|
|
end
|
|
|
|
|
2014-03-11 18:22:45 +00:00
|
|
|
def label_input(context=nil)
|
2014-03-10 21:41:36 +00:00
|
|
|
options[:label] == false ? input(context) : (label(context) + input(context))
|
2010-07-06 09:24:12 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2011-09-03 12:40:47 +00:00
|
|
|
end
|