/** * Method to get the field options. * * @return array The field option objects. * * @since 11.1 */ public function getOptions() { $options = SibdietHelper::getDietsOptions(); return array_merge(parent::getOptions(), $options); }
if ($published >= 0) { ?> <div class="control-group"> <label class="control-label" id="batch-copy-choose-action-lbl" for="batch-copy-choose-action"> <?php echo JText::_('COM_SIBDIET_BATCH_DIET_LABEL'); ?> </label> <div class="controls" id="batch-copy-choose-action" class="control-group"> <select name="batch[destination_diets_id]" id="batch-destination-diets-id" class="span7"> <option value=""><?php echo JText::_('COM_SIBDIET_SELECT_DIET'); ?> </option> <?php echo JHtml::_('select.options', SibdietHelper::getDietsOptions(), 'value', 'text'); ?> </select> </div> </div> <?php } ?> </div> </div> <div class="modal-footer"> <button class="btn" type="button" onclick="document.getElementById('batch-destination-diets-id').value='';" data-dismiss="modal"> <?php echo JText::_('JCANCEL'); ?> </button>