[Rt-commit] r2695 - in rt/branches/PLATANO-EXPERIMENTAL-CSS: .
html/Prefs html/Widgets
jesse at bestpractical.com
jesse at bestpractical.com
Sat Apr 16 04:15:15 EDT 2005
Author: jesse
Date: Sat Apr 16 04:15:15 2005
New Revision: 2695
Modified:
rt/branches/PLATANO-EXPERIMENTAL-CSS/ (props changed)
rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Prefs/MyRT.html
rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Widgets/SelectionBox
Log:
r13084 at hualien: jesse | 2005-04-16 03:01:46 -0400
r12981 at hualien: jesse | 2005-04-16 02:23:03 -0400
r8816 at hualien: jesse | 2005-03-16 23:58:56 -0500
Minor cleanups based on customer feedback
Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Prefs/MyRT.html
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Prefs/MyRT.html (original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Prefs/MyRT.html Sat Apr 16 04:15:15 2005
@@ -53,19 +53,17 @@
<& /Widgets/SelectionBox:header &>
<& /Elements/ListActions, actions => \@actions &>
-<p>
-<&|/Elements/TitleBox, title => loc('Options'), bodyclass => "" &>
-<form method="POST" action="MyRT.html">
-<&|/l&>Summary rows</&>:<input name="SummaryRows" value="<% $ARGS{SummaryRows} %>">
-<& /Elements/Submit, Caption => loc("Save Changes"), Label => loc('Save'), Name => 'Save' &>
-</form>
-</&>
-<br>
+<br />
% for my $pane (@panes) {
<&|/Elements/TitleBox, title => loc('RT at a glance').': '.loc($pane->{Name}), bodyclass => "" &>
<& /Widgets/SelectionBox:show, self => $pane &></&>
-<br>
+<br />
% }
+<&|/Elements/TitleBox, title => loc('Options'), bodyclass => "" &>
+<form method="POST" action="MyRT.html">
+ <&|/l&>Rows per box</&>:<input name="SummaryRows" value="<% $ARGS{SummaryRows} %>" /> <input type="submit" label="<%loc('Save')%>" />
+</form>
+</&>
<%INIT>
my @actions;
@@ -127,7 +125,8 @@
$m->comp ('/Widgets/SelectionBox:new',
Action => 'MyRT.html',
Name => $pane,
- Available => \@items,
+ Available => \@items,
+ AutoSave => 1,
OnSubmit =>
sub { my $sel = shift;
$portlets->{$pane} =
Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Widgets/SelectionBox
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Widgets/SelectionBox (original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Widgets/SelectionBox Sat Apr 16 04:15:15 2005
@@ -200,11 +200,12 @@
<input name="remove" type="submit" value="<&|/l&>Delete</&>"/>
% my $caption = "";
+% unless ($self->{'AutoSave'}) {
% if ($self->{Modified}) {
% $caption = loc('Selections modified. Please save your changes');
% }
<& /Elements/Submit, Caption => loc($caption), Label => loc('Save'), Name => $name.'-Save' &>
-
+% }
</form>
<script type="text/javascript">
More information about the Rt-commit
mailing list