]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/rename.pm
add checkbox to rename subpages too
[git.ikiwiki.info.git] / 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 => "subpages",
+                       label => "",
+                       type => "checkbox",
+                       options => [ [ 1 => gettext("Also rename SubPages and attachments") ] ],
+                       value => 1,
+                       force => 1);
        }
        $f->field(name => "attachment", type => "hidden");