public function addButtons() { $fieldSet = new Fieldset('buttons'); $fieldSet->setAttributes(array('class' => 'dots-form-buttons')); $fieldSet->add(array('name' => 'cancel', 'options' => array('label' => 'Cancel'), 'attributes' => array('type' => 'button', 'class' => 'btn', 'data-action' => 'link_cancel'))); $fieldSet->add(array('name' => 'save', 'options' => array('label' => 'Save'), 'attributes' => array('type' => 'button', 'class' => 'btn btn-primary', 'data-action' => 'link_save'))); $this->add($fieldSet); }