mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
MINOR: removed dulicate template, adjusted form field to show icon location
This commit is contained in:
parent
05208f0aba
commit
6cbb094363
@ -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';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
<div class="EditableSpamProtectionField EditableFormField" id="$Name.Attr">
|
||||
<div class="FieldInfo">
|
||||
<img class="handle" src="sapphire/images/drag.gif" alt="<% _t('DRAG', 'Drag to rearrange order of fields') %>" />
|
||||
<img class="icon" src="spamprotection/images/editablespamprotectionfield.png" alt="<% _t('SPAMPROTECTIONFIELD', 'Spam Protection Field') %>" />
|
||||
$TitleField
|
||||
<a class="toggler" href="#" title="<% _t('MORE', 'More options') %>"><img src="cms/images/edit.gif" alt="<% _t('MORE', 'More options') %>" /></a>
|
||||
<a class="delete" href="#" title="<% _t('DELETE', 'Delete this field') %>"><img src="cms/images/delete.gif" alt="<% _t('DELETE', 'Delete this field') %>" /></a>
|
||||
</div>
|
||||
<div class="ExtraOptions" id="$Name.Attr-extraOptions">
|
||||
<div class="FieldDefault" id="$Name.Attr-fieldDefault">
|
||||
$DefaultField
|
||||
</div>
|
||||
<% control ExtraOptions %>
|
||||
$FieldHolder
|
||||
<% end_control %>
|
||||
</div>
|
||||
<input type="hidden" name="$Name.Attr[CustomParameter]" value="$CustomParameter" />
|
||||
<input type="hidden" name="$Name.Attr[Type]" value="EditableSpamProtectionField" />
|
||||
<input type="hidden" name="$Name.Attr[Sort]" value="-1" />
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user