Project

General

Profile

Actions

Bug #5670

closed

pkg_edit - Adding a button also prints the button name beside the button

Added by BBcan177 . over 8 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
12/21/2015
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:

Description

I have noticed that when adding a single Button (or the Form save button), that it also displays the 'button text' beside the button. The code could be swapped out for the following example:

$button = new Form_Button(
‘run’,
‘Run’
);

$section->addInput(new Form_StaticText(
‘Label’
$button
));

Actions #1

Updated by Anonymous over 8 years ago

  • Status changed from New to Rejected

This is a deliberate feature of the GUI FORM_* framework. The work-around you list here is appropriate and is used frequently throughout the code base.

You can also use addGlobal(new Form_Button( ...

Which will add the button alongside the form "Save" button, with no label, or add some jQuery to suppress the unwanted label.

Actions #2

Updated by BBcan177 . over 8 years ago

This is in pkg_edit.php, you have no options like you would in other html/php files.

Actions

Also available in: Atom PDF