Changeset [2d3b1425b02fbb9b182dcb2bad2d522760194146] by Domizio Demichelis

March 11th, 2011 @ 01:49 PM

refactory of tags for 'time', 'date' and 'datetime'

  • fxed input/view tag for 'time'
    • the time entered is the same time you get back from the db [#731]
    • the input-tag uses select_time
    • the view tag uses the canonical Time::DATE_FORMATS[:time]) and it is also overridable by just passing a strftime format as the format attribute
  • the input tags are now a smart wrapper around select_date and select_time and accept all their options and any html option
  • fixed the missing class attributes
  • fixed an hidden bug: the input-tag for time was never called because ActiveSupport::TimeWithZone.name is 'Time' as Time.name
  • updated doc https://github.com/tablatom/hobo/commit/2d3b1425b02fbb9b182dcb2bad2...

Committed by Domizio Demichelis

  • M dryml/lib/dryml/template.rb
  • M dryml/lib/dryml/template_environment.rb
  • M hobo/lib/hobo/rapid/taglibs/rapid_core.dryml
  • M hobo/lib/hobo/rapid/taglibs/rapid_forms.dryml
  • M hobo_fields/lib/hobo_fields.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป