public function __construct($name = null)
 {
     parent::__construct($name);
     $this->add(new Element\Hidden('id_party'));
     $this->add(new Element\Hidden('id_address'));
     $this->add(new Element\Hidden('access_form'));
     $this->add(new Element\Hidden('num_primary_order'));
     $nid_commtype = new Element\Select('nid_commtype');
     $nid_commtype->setLabel('Cummunication Type')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('' => 'Select a communication type'));
     $this->add($nid_commtype);
     $access_detail = new Element\Text('access_detail');
     $access_detail->setLabel('Access Detail')->setAttributes(array('class' => 'form-control input-sm'));
     $this->add($access_detail);
     $comment = new Element\Textarea('comment');
     $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm'));
     $this->add($comment);
 }
示例#2
0
 public function __construct($name = null)
 {
     parent::__construct($name);
     $this->add(new Element\Hidden('latitude'));
     $this->add(new Element\Hidden('longitude'));
     $bool_apt = new Element\Radio('bool_apt');
     $bool_apt->setLabel('Is POBox?')->setLabelAttributes(array('class' => 'radio-inline'))->setValueOptions(array('1' => 'No', '0' => 'Yes'))->setAttributes(array('class' => 'medwhite'));
     $this->add($bool_apt);
     $apt_or_pobox = new Element\Text('apt_or_pobox');
     $apt_or_pobox->setLabel('Apartment No. or PO Box')->setAttributes(array('class' => 'form-control input-sm'));
     $this->add($apt_or_pobox);
     $street_line1 = new Element\Text('street_line1');
     $street_line1->setLabel('Street Line 1')->setAttributes(array('class' => 'form-control input-sm'));
     $this->add($street_line1);
     $street_line2 = new Element\Text('street_line2');
     $street_line2->setLabel('Street Line 2')->setAttributes(array('class' => 'form-control input-sm'));
     $this->add($street_line2);
     $city = new Element\Text('city');
     $city->setLabel('City')->setAttributes(array('class' => 'form-control input-sm'));
     $this->add($city);
     $state_or_province = new Element\Select('state_or_province');
     $state_or_province->setLabel('State or Province')->setAttributes(array('class' => 'form-control input-sm'));
     $this->add($state_or_province);
     $country = new Element\Select('country');
     $country->setLabel('Country')->setAttributes(array('class' => 'form-control input-sm'))->setValueOptions(array('' => 'Select a country'));
     $this->add($country);
     $zipcode = new Element\Text('zipcode');
     $zipcode->setLabel('Zip Code')->setAttributes(array('class' => 'form-control input-sm'));
     $this->add($zipcode);
     $url_map = new Element\Url('url_map');
     $url_map->setLabel('Map Url')->setAttributes(array('class' => 'form-control input-sm'));
     $this->add($url_map);
     $comment = new Element\Textarea('comment');
     $comment->setLabel('Comment')->setAttributes(array('class' => 'form-control input-sm'));
     $this->add($comment);
 }