diff --git a/application/forms/Dashboard/DashletForm.php b/application/forms/Dashboard/DashletForm.php index ae8072cda..51011f78e 100644 --- a/application/forms/Dashboard/DashletForm.php +++ b/application/forms/Dashboard/DashletForm.php @@ -89,13 +89,23 @@ class DashletForm extends Form ) ) ); + $this->addElement( + 'checkbox', + 'create_new_pane', + array( + 'autosubmit' => true, + 'required' => false, + 'label' => $this->translate('New dashboard'), + 'description' => $this->translate('Check this box if you want to add the dashlet to a new dashboard') + ) + ); if (empty($panes) || ((isset($formData['create_new_pane']) && $formData['create_new_pane'] != false))) { $this->addElement( 'text', 'pane', array( 'required' => true, - 'label' => $this->translate("New Dashboard Title"), + 'label' => $this->translate('New Dashboard Title'), 'description' => $this->translate('Enter a title for the new dashboard') ) ); @@ -111,17 +121,6 @@ class DashletForm extends Form ) ); } - - $this->addElement( - 'checkbox', - 'create_new_pane', - array( - 'autosubmit' => true, - 'required' => false, - 'label' => $this->translate('New dashboard'), - 'description' => $this->translate('Check this box if you want to add the dashlet to a new dashboard') - ) - ); } /**