<?php

/**
 * Generated: 2014-03-24 15:01:35
 * @author Rtn_Module_Tool
 */
class Ad_Form_Admin_Group extends Eppe_Form {

        public function init() {
                $this->setAttrib('class', 'no-ajax');

                $e = new Zend_Form_Element_Text('name', [
                    'required' => true,
                    'label' => __('Nazwa kategori')
                ]);
                $e->addValidator(new Eppe_Validate_Db_NoRecordExists([
                    'bean' => 'adgroup',
                    'column' => 'name',
                    'exclude_id' => $this->getAttrib('beanId')
                ]));
                $this->addElement($e);

                $this->addStandardButtons();
        }

}