silverstripe-framework/forms/EditableButton.php
Sam Minnee 41a11b277e Improved API documentation
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@47799 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-01-10 00:34:18 +00:00

20 lines
446 B
PHP
Executable File

<?php
/**
* @package forms
* @subpackage fieldeditor
*/
/**
* EditableButton
* Allows a user to modify the text on the button
* @package forms
* @subpackage fieldeditor
*/
class EditableButton extends FormField {
function Field() {
return '<span class="EditableButton"><img src="cms/images/button-left.gif" /><input name="'.$this->name.'" value="'.$this->attrValue().'" /><img src="cms/images/button-right.gif" /></span>';
}
}
?>