2007-07-19 12:40:28 +02:00
|
|
|
<?php
|
2008-01-09 05:18:36 +01:00
|
|
|
|
2007-07-19 12:40:28 +02:00
|
|
|
/**
|
2008-01-09 05:18:36 +01:00
|
|
|
* @package forms
|
|
|
|
* @subpackage actions
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Action that clears all fields on a form.
|
|
|
|
* Inserts an input tag with type=reset.
|
|
|
|
* @package forms
|
|
|
|
* @subpackage actions
|
2007-07-19 12:40:28 +02:00
|
|
|
*/
|
|
|
|
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 />";
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
?>
|