mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-28 13:36:12 +02:00
13 lines
367 B
PHP
13 lines
367 B
PHP
|
<?php
|
||
|
/**
|
||
|
* Clears all fields on a form
|
||
|
*/
|
||
|
class ResetFormAction extends FormAction {
|
||
|
|
||
|
function Field() {
|
||
|
if($this->description) $titleAttr = "title=\"" . Convert::raw2att($this->description) . "\"";
|
||
|
return "<input class=\"action\" id=\"" . $this->id() . "\" type=\"reset\" name=\"{$this->name}\" value=\"" . $this->attrTitle() . "\" $titleAttr />";
|
||
|
}
|
||
|
|
||
|
}
|
||
|
?>
|