add checkbox to rename subpages too
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 23 Sep 2008 20:56:57 +0000 (16:56 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 23 Sep 2008 20:56:57 +0000 (16:56 -0400)
IkiWiki/Plugin/rename.pm

index d6079e198266cf06af8e01a9a9fe351b3c7d1b8d..e5dfa4b016a4e9ad5d5b8fbf2e3e0ddad5cf02d3 100644 (file)
@@ -123,6 +123,13 @@ sub rename_form ($$$) { #{{{
                $f->field(name => "type", type => 'select',
                        options => \@page_types,
                        value => $ext, force => 1);
                $f->field(name => "type", type => 'select',
                        options => \@page_types,
                        value => $ext, force => 1);
+               
+               $f->field(name => "subpages",
+                       label => "",
+                       type => "checkbox",
+                       options => [ [ 1 => gettext("Also rename SubPages and attachments") ] ],
+                       value => 1,
+                       force => 1);
        }
        $f->field(name => "attachment", type => "hidden");
 
        }
        $f->field(name => "attachment", type => "hidden");