hello list,

1) is there a way to make sfWidgetFormJQueryDate the default widgets
for datetime fields in autogenerated code (Base*Form.classes)

eg:
class BaseTutorialForm extends BaseFormDoctrine
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'                     => new sfWidgetFormInputHidden(),
....
      'created_at'             => new sfWidgetFormJQueryDate
(sfConfig::get('sf_date_widget_settings')),

....

2) how can I change the date format in admin auto generator for input
fields eg. for date filters
I've tried something like
      form:
        class: BackendTutorialForm
        display:
          Content: [category_id, type, is_public, email]
          Admin:   [_generated_token, is_activated, expires_at,
created_at]
        fields:
          expires_at: { label: works, date_format:dd/MM/yyyy }
          created_at: { label: for me, date_format:dd/MM/yyyy }

where the lables for expires_at and created_at are displayed correctly
but the date_format settings don't have any effect in the edit/create
form

(using symfony 1.2.8 with doctrine)
thx a lot

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to