KataoInvoiceForm.class.php 876 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * KataoInvoice form.
  4. *
  5. * @package form
  6. * @subpackage katao_invoice
  7. * @version SVN: $Id: sfPropelFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
  8. */
  9. class KataoInvoiceForm extends BaseKataoInvoiceForm {
  10. public function configure() {
  11. unset($this->validatorSchema['created_at'], $this->validatorSchema['updated_at']);
  12. unset($this->widgetSchema['created_at'], $this->widgetSchema['updated_at']);
  13. $this->widgetSchema['katao_user_id'] = new sfWidgetFormSelect(array('choices' => KataoUserPeer::getAll()));
  14. $this->widgetSchema['status'] = new sfWidgetFormSelect(array('choices' => KataoInvoicePeer::getAllStatuses()));
  15. $this->widgetSchema->setLabels(array(
  16. 'katao_user_id' => 'Adhérent',
  17. 'katao_period_id' => 'Période',
  18. 'status' => 'Etat',
  19. ));
  20. }
  21. }