Exemple #1
0
 public function createWidgetInvoicesConfigForm()
 {
     $form = new Am_Form_Admin();
     $form->addInteger('num')->setLabel(___('Number of Invoices to display'))->setValue(5);
     $form->addMagicselect('statuses')->setLabel(___('Show invoices with selected statuses') . "\n" . ___('leave it empty in case if you want to show all invoices'))->loadOptions(Invoice::$statusText);
     return $form;
 }