English-strip dropdown and button

        Patch by wyntarvox. 

diffs (34 lines):

diff -r 7bd20265586d -r 26b2765a4c76 htdocs/community/sentinvites.bml
--- a/htdocs/community/sentinvites.bml  Thu May 21 15:27:48 2009 +0000
+++ b/htdocs/community/sentinvites.bml  Thu May 21 16:35:25 2009 +0000
@@ -157,8 +157,8 @@ body<=
     my $showlinks = "<form method='get' action='/community/sentinvites.bml'>";
     $showlinks .= LJ::html_hidden('authas', $c->{user});
     $showlinks .= $ML{'.filterto'};
-    $showlinks .= LJ::html_select({ name => 'show', selected => $GET{show} }, 
map { $_, $_ } qw(all accepted outstanding rejected));
-    $showlinks .= LJ::html_submit(undef, 'Refresh');
+    $showlinks .= LJ::html_select( { name => 'show', selected => $GET{show} }, 
all => $ML{'.filterto.opts.all'}, accepted => $ML{'.filterto.opts.accepted'}, 
rejected => $ML{'.filterto.opts.rejected'}, outstanding => 
$ML{'.filterto.opts.outstanding'} );
+    $showlinks .= LJ::html_submit( undef, $ML{'.filterto.btn.refresh'} );
     $showlinks .= "</form>";
 
     my $filter = "&show=$GET{show}" if $GET{show};
diff -r 7bd20265586d -r 26b2765a4c76 htdocs/community/sentinvites.bml.text
--- a/htdocs/community/sentinvites.bml.text     Thu May 21 15:27:48 2009 +0000
+++ b/htdocs/community/sentinvites.bml.text     Thu May 21 16:35:25 2009 +0000
@@ -4,6 +4,16 @@
 .error.notcomm=[[user]] is not a community.
 
 .filterto=Filter to:
+
+.filterto.btn.refresh=Refresh
+
+.filterto.opts.accepted=accepted
+
+.filterto.opts.all=all
+
+.filterto.opts.outstanding=outstanding
+
+.filterto.opts.rejected=rejected
 
 .key.date=Date
 
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to