code/extensions/QuickAddNewExtension.php
public function AddNewForm()
    {
        $action    = FormAction::create('doAddNew', _t('QUICKADDNEW.Add', 'Add'))->setUseButtonTag('true');

        if (!$this->isFrontend) {
            $action->addExtraClass('ss-ui-action-constructive')->setAttribute('data-icon', 'accept');
        }

        $actions = FieldList::create($action);
        $form = Form::create($this->owner, 'AddNewForm', $this->addNewFields, $actions, $this->addNewRequiredFields);

        $this->owner->extend('updateQuickAddNewForm', $form);

        return $form;
    }
public function AddNewForm()
    {
        $action    = FormAction::create('doAddNew', _t('QUICKADDNEW.Add', 'Add'))->setUseButtonTag('true');

        if (!$this->isFrontend) {
            $action->addExtraClass('ss-ui-action-constructive')->setAttribute('data-icon', 'accept');
        }

        $actions = FieldList::create($action);
        $form = Form::create($this->owner, 'AddNewForm', $this->addNewFields, $actions, $this->addNewRequiredFields);

        $this->owner->extend('updateQuickAddNewForm', $form);

        return $form;
    }
public function AddNewForm ( ) { $ action = FormAction :: create ( 'doAddNew' , _t ( 'QUICKADDNEW.Add' , 'Add' ) ) -> setUseButtonTag ( 'true' ) ; if ( ! $ this -> isFrontend ) { $ action -> addExtraClass ( 'ss-ui-action-constructive' ) -> setAttribute ( 'data-icon' , 'accept' ) ; } $ actions = FieldList :: create ( $ action ) ; $ form = Form :: create ( $ this -> owner , 'AddNewForm' , $ this -> addNewFields , $ actions , $ this -> addNewRequiredFields ) ; $ this -> owner -> extend ( 'updateQuickAddNewForm' , $ form ) ; return $ form ; }
The AddNewForm for the dialog window

@return Form
The AddNewForm for the dialog window