/** * Add a fieldset to formular * @param FormularFieldset $Fieldset * @param boolean $opened [optional] */ public function addFieldset(FormularFieldset $Fieldset, $opened = true) { $Fieldset->setId($this->Id . '_legend_' . count($this->fieldsets)); if (!$opened) { $Fieldset->setCollapsed(); } $this->fieldsets[] = $Fieldset; }
/** * Display elevation correction */ protected function displayInformation() { $Fieldset = new FormularFieldset(__('Note for elevation data')); $Fieldset->setId('general-information'); $Fieldset->setCollapsed(); $Fieldset->addSmallInfo(__('The calculation of elevation data is very difficult - there is not one single solution. ' . 'Bad gps data can be corrected via srtm-data but these are only available in a 90x90m grid and not always perfectly accurate. ' . 'In addition, every platform uses another algorithm to determine the elevation value (for up-/downwards). ' . 'We give you therefore the possibility to choose algorithm and threshold such that the values fit your experience.')); $Fieldset->display(); }