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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
5
templates/Classic/misc/form/table_end.tpl
Normal file
5
templates/Classic/misc/form/table_end.tpl
Normal 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>
|
||||
6
templates/Froxlor/misc/form/table_end.tpl
Normal file
6
templates/Froxlor/misc/form/table_end.tpl
Normal 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>
|
||||
Reference in New Issue
Block a user