module ApplicationHelper
def date_box(id = DateboxEngine.config(:elementId))
<<-EOL
- #{engine_image('icon-help.gif', :engine => 'datebox', :alt => 'Help', :id => id + 'Help' ) }
- #{text_field 'calendar', id, { :name => id, :id => id, :onChange => "magicDate(id);", :onFocus => "if (this.className != 'error') this.select()" , :value => (instance_variable_get("@#{id}") ? instance_variable_get("@#{id}") : nil)} }
- #{engine_image('icon-calendar.gif', :engine => 'datebox', :alt => 'Calendar', :id => id + 'Button', :style => 'cursor: pointer;' ) }
EOL
end
def date_box_flat(id = DateboxEngine.config(:elementId))
<<-EOL
EOL
end
end