[Rt-commit] r11874 - rt/branches/3.8-TESTING/html/Elements
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Apr 24 12:37:48 EDT 2008
Author: sunnavy
Date: Thu Apr 24 12:36:59 2008
New Revision: 11874
Modified:
rt/branches/3.8-TESTING/html/Elements/Submit
Log:
added Back button support in /Elements/Submit with Back, BackName, BackLabel, BackCaption and BackOnClick args
Modified: rt/branches/3.8-TESTING/html/Elements/Submit
==============================================================================
--- rt/branches/3.8-TESTING/html/Elements/Submit (original)
+++ rt/branches/3.8-TESTING/html/Elements/Submit Thu Apr 24 12:36:59 2008
@@ -62,6 +62,12 @@
% }
</div>
<div class="buttons">
+% if ( $Back ) {
+ <span class="caption"><%$BackCaption%></span>
+ <input type="submit" <% $BackOnClick ? qq[ onclick="$BackOnClick"] : '' | n %> <%
+ $BackName ? qq[ name="$BackName"] : '' | n %> value="<%$BackLabel%>" class="button" />
+% }
+
% if ($AlternateLabel) {
<span class="caption"><%$AlternateCaption%></span>
<input type="submit" <% $OnClick ? qq[ onclick="$OnClick"] : '' | n %> <% $Name ? qq[ name="$Name"] : '' | n %> value="<%$AlternateLabel%>" class="button" />
@@ -85,6 +91,11 @@
$ClearAll => undef
$ClearAllLabel => loc('Clear All')
$CheckboxName => ''
+$Back => undef
+$BackName => 'Back'
+$BackLabel => loc('Back')
+$BackCaption => ''
+$BackOnClick => undef
$OnClick => undef
$Reset => undef
$ResetLabel => loc('Reset')
More information about the Rt-commit
mailing list