From 6cbb094363b20565d01e57e56dcd4efba53042d8 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Mon, 20 Apr 2009 03:06:29 +0000 Subject: [PATCH] MINOR: removed dulicate template, adjusted form field to show icon location --- code/EditableSpamProtectionField.php | 11 +++++++---- templates/EditableSpamProtectionField.ss | 20 -------------------- 2 files changed, 7 insertions(+), 24 deletions(-) delete mode 100644 templates/EditableSpamProtectionField.ss diff --git a/code/EditableSpamProtectionField.php b/code/EditableSpamProtectionField.php index f663b64..6c77d98 100644 --- a/code/EditableSpamProtectionField.php +++ b/code/EditableSpamProtectionField.php @@ -77,8 +77,11 @@ class EditableSpamProtectionField extends EditableFormField { return ""; } - function EditSegment() { - return $this->renderWith( $this->class ); + /** + * @return string + */ + public function Icon() { + return 'spamprotection/images/' . strtolower($this->class) . '.png'; } -} -?> \ No newline at end of file + +} \ No newline at end of file diff --git a/templates/EditableSpamProtectionField.ss b/templates/EditableSpamProtectionField.ss deleted file mode 100644 index 8ab357d..0000000 --- a/templates/EditableSpamProtectionField.ss +++ /dev/null @@ -1,20 +0,0 @@ -
-
- <% _t('DRAG', 'Drag to rearrange order of fields') %> - <% _t('SPAMPROTECTIONFIELD', 'Spam Protection Field') %> - $TitleField - <% _t('MORE', 'More options') %> - <% _t('DELETE', 'Delete this field') %> -
-
-
- $DefaultField -
- <% control ExtraOptions %> - $FieldHolder - <% end_control %> -
- - - -
\ No newline at end of file