alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
Alchemy::Admin::BaseHelper#alchemy_datepicker
Renders a textfield ready to display a datepicker Uses a HTML5 +<input type="date">+ field. A Javascript observer converts this into a fancy Datepicker. If you pass +'datetime'+ as +:type+ the datepicker will also have a Time select. The date value gets localized via +I18n.l+. The format on Time and Date is +datepicker+ or +datetimepicker+, if you pass another +type+. === Date Example <%= alchemy_datepicker(@person, :birthday) %> === Datetime Example <%= alchemy_datepicker(@page, :public_on, type: 'datetime') %>
Edit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open app/helpers/alchemy/admin/base_helper.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Alchemy--Admin--BaseHelper-alchemy_datepicker-for-pr
# Commit to gitgit add app/helpers/alchemy/admin/base_helper.rbgit commit -m "better docs for Alchemy::Admin::BaseHelper#alchemy_datepicker"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Alchemy--Admin--BaseHelper-alchemy_datepicker-for-pr
hub pull-request
# Celebrate!