Skip to content

Commit 60d8be9

Browse files
committed
update form docs
1 parent 6f04ed5 commit 60d8be9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/5-forms.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,15 @@ If you pass a string, it will be used as the text for the new record button.
9191
The `:sortable` option adds a hidden field and will enable drag & drop sorting of the children. It
9292
expects the name of the column that will store the index of each child.
9393

94-
## DatePicker
94+
## Datepicker
9595

96-
ActiveAdmin offers the `datepicker` input, which uses the [jQueryUI Datepicker](http://jqueryui.com/datepicker/).
97-
The datepicker input accepts any of the options available to the standard
98-
jQueryUI Datepicker, e.g.
96+
ActiveAdmin offers the `datepicker` input, which uses the [jQueryUI datepicker](http://jqueryui.com/datepicker/).
97+
The datepicker input accepts any of the options available to the standard jQueryUI Datepicker. For example:
9998

10099
```ruby
101100
form do |f|
102-
f.input :starts_at, as: :datepicker, datepicker_options: { min_date: "2013-10-8", max_date: 3.days.from_now.to_date }
103-
f.input :ends_at, as: :datepicker, datepicker_options: { min_date: 3.days.ago.to_date, max_date: "+1W +5D" }
101+
f.input :starts_at, as: :datepicker, datepicker_options: { min_date: "2013-10-8", max_date: "+3D" }
102+
f.input :ends_at, as: :datepicker, datepicker_options: { min_date: 3.days.ago.to_date, max_date: "+1W +5D" }
104103
end
105104
```
106105

0 commit comments

Comments
 (0)