add save/reset button to the end of each form, fixes #631

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2011-03-02 07:54:57 +01:00
parent 236377c28e
commit e04ae041ab
3 changed files with 15 additions and 1 deletions

View File

@@ -87,7 +87,10 @@ class htmlform
}
}
}
// add save/reset buttons at the end of the form
eval("self::\$_form .= \"" . getTemplate("misc/form/table_end", "1") . "\";");
return self::$_form;
}

View File

@@ -0,0 +1,5 @@
<tr>
<td colspan="2" class="maintitle_apply_right" nowrap="nowrap">
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
</td>
</tr>

View File

@@ -0,0 +1,6 @@
<tr>
<td colspan="2" style="text-align:right;">
<input type="reset" value="{$lng['panel']['reset']}" />
<input type="submit" value="{$lng['panel']['save']}" />
</td>
</tr>