diff --git a/css/RelatedDataEditor.css b/css/RelatedDataEditor.css deleted file mode 100755 index 4afb1e6e9..000000000 --- a/css/RelatedDataEditor.css +++ /dev/null @@ -1,34 +0,0 @@ -.RelatedDataEditor div.children_holder{ - border: 2px solid rgb(134, 159, 206); - padding: 8px 0; -} -.RelatedDataEditor div.field{ - margin-bottom: 0; - padding: 0 10px; -} -.RelatedDataEditor div.keyholder{ - background: url(../../sapphire/images/relatedDatafield-key-grad.gif) bottom left repeat-x ; -} -.RelatedDataEditor div.keyholder label{ - width: 140px; - margin-left: 0; -} -.RelatedDataEditor div.keyholder label span{ - font-weight: bold; - float: right; - margin-right: 12px; - margin-top: 2px; -} -.relatedDataKey { - display: inline; -} -.nested div.keyholder{ - background-image: url(../../sapphire/images/relatedDatafield-key-grad2.gif); -} -.nested div.children_holder{ - border: 2px solid rgb(158, 220, 143); - padding: 8px 0; -} -.RelatedDataEditor .clear{ - clear: both; -} \ No newline at end of file diff --git a/forms/DropdownField.php b/forms/DropdownField.php index 88aac844b..e6c59f043 100755 --- a/forms/DropdownField.php +++ b/forms/DropdownField.php @@ -173,70 +173,4 @@ class DropdownField extends FormField { return $ret; } } - -/** - * Dropdown field with an add button to the right. - * The class is originally designed to be used by RelatedDataEditor - * However, it can potentially be used as a normal dropdown field with add links in a normal form - * @package forms - * @subpackage fields-basic - */ -class DropdownField_WithAdd extends DropdownField { - - protected $addText, $useExistingText, $addLink, $useExistingLink; - public $editLink; - - function __construct($name, $title = "", $source = array(), $addLink=null, $useExistingLink=null, $addText="Add", $useExistingText="Use Existing", $value = "", $form = null){ - parent::__construct($name, $title, $source, $value, $form); - $this->addText = $addText; - $this->useExistingText = $useExistingText; - $this->addLink = $addLink; - $this->useExistingLink = $useExistingLink; - } - - function emptyString($string){ - - } - - /** - * Returns a