From 249c7a7d12cf653f09292f244295c4e5c73e0c85 Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Mon, 20 Oct 2008 00:20:00 +0000 Subject: [PATCH] APICHANGE: delete GenericDataAdmin, RelatedDataEditor, DropdownField_WithAdd and their related code (js, css, etc) from cms, sapphire, "GenericDataAdmin" name space has also been deleted from lang files. They are all added in the new module "genericdataadmin" git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64528 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- css/RelatedDataEditor.css | 34 ---- forms/DropdownField.php | 66 ------- forms/RelatedDataEditor.php | 155 --------------- images/relatedDatafield-key-grad.gif | Bin 156 -> 0 bytes images/relatedDatafield-key-grad2.gif | Bin 156 -> 0 bytes javascript/DropdownField_WithAdd.js | 110 ----------- javascript/RelatedDataEditor.js | 259 -------------------------- 7 files changed, 624 deletions(-) delete mode 100755 css/RelatedDataEditor.css delete mode 100755 forms/RelatedDataEditor.php delete mode 100755 images/relatedDatafield-key-grad.gif delete mode 100755 images/relatedDatafield-key-grad2.gif delete mode 100755 javascript/DropdownField_WithAdd.js delete mode 100755 javascript/RelatedDataEditor.js 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