public function init()
{
$this->setAttribute('class', 'relative form-horizontal');
$inputFilterFactory = new InputFilterFactory();
$inputFilter = $inputFilterFactory->createInputFilter(array('name' => array('required' => true, 'validators' => array(array('name' => 'not_empty'), array('name' => 'db\\no_record_exists', 'options' => array('table' => $this->tableName, 'field' => 'name', 'adapter' => $this->getAdapter())))), 'identifier' => array('required' => true, 'validators' => array(array('name' => 'not_empty'), array('name' => 'regex', 'options' => array('pattern' => parent::IDENTIFIER_PATTERN)), array('name' => 'db\\no_record_exists', 'options' => array('table' => $this->tableName, 'field' => 'identifier', 'adapter' => $this->getAdapter()))))));
$this->setInputFilter($inputFilter);
$name = new Element\Text('name');
$name->setLabel('Name')->setLabelAttributes(array('class' => 'required control-label col-lg-2'));
$name->setAttribute('class', 'form-control')->setAttribute('id', 'name');
$this->add($name);
$identifier = new Element\Text('identifier');
$identifier->setLabel('Identifier')->setLabelAttributes(array('class' => 'required control-label col-lg-2'));
$identifier->setAttribute('class', 'form-control')->setAttribute('id', 'identifier');
$this->add($identifier);
$description = new Element\Text('description');
$description->setLabel('Description')->setLabelAttributes(array('class' => 'control-label col-lg-2'));
$description->setAttribute('class', 'form-control')->setAttribute('id', 'description');
$this->add($description);
$content = new Element\Textarea('content');
$content->setLabel('Content')->setLabelAttributes(array('class' => 'control-label col-lg-2'));
$content->setAttribute('cols', '80')->setAttribute('rows', '24')->setAttribute('id', 'content');
$this->add($content);
}