Index: /trunk/lib/form/shared/BaseConnectionForm.class.php =================================================================== --- /trunk/lib/form/shared/BaseConnectionForm.class.php (revision 72) +++ /trunk/lib/form/shared/BaseConnectionForm.class.php (revision 72) @@ -0,0 +1,43 @@ +getUser()->getCulture(); + + // Widgets + $this->setWidgets(array( + 'role' => new sfWidgetFormInput(), + 'description' => new sfWidgetFormTextarea(), + 'started_at' => new sfWidgetFormI18nDate(array('culture' => $culture)), + 'ended_at' => new sfWidgetFormI18nDate(array('culture' => $culture)), + )); + + // Validators + $this->setValidators(array( + 'role' => new sfValidatorString(array('max_length' => 255, 'required' => true)), + 'description' => new sfValidatorString(array('max_length' => 65535, 'required' => false)), + 'started_at' => new sfValidatorDate(array('required' => false)), + 'ended_at' => new sfValidatorDate(array('required' => false)), + )); + } +}