commit
ddf2168bb5
|
@ -467,7 +467,7 @@ instance, if you want to wrap date/time/datetime in a div, you can do:
|
||||||
# app/inputs/date_time_input.rb
|
# app/inputs/date_time_input.rb
|
||||||
class DateTimeInput < SimpleForm::Inputs::DateTimeInput
|
class DateTimeInput < SimpleForm::Inputs::DateTimeInput
|
||||||
def input
|
def input
|
||||||
"<div>#{super}</div>".html_safe
|
template.content_tag(:div, super)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue