SF.net SVN: phpwiki:[10842] trunk/lib/plugin/WikiAdminChown.php

vargenau--- via phpwiki-checkins <[email protected]> Thu, 06 Jan 2022 09:31:47 +0000
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
Revision: 10842
          http://sourceforge.net/p/phpwiki/code/10842
Author:   vargenau
Date:     2022-01-06 09:31:46 +0000 (Thu, 06 Jan 2022)
Log Message:
-----------
lib/plugin/WikiAdminChown.php: make value readonly when confirming

Modified Paths:
--------------
    trunk/lib/plugin/WikiAdminChown.php

Modified: trunk/lib/plugin/WikiAdminChown.php
===================================================================
--- trunk/lib/plugin/WikiAdminChown.php	2022-01-06 09:18:29 UTC (rev 10841)
+++ trunk/lib/plugin/WikiAdminChown.php	2022-01-06 09:31:46 UTC (rev 10842)
@@ -169,19 +169,23 @@
             $button_label = _("Yes");
             $header->pushContent(HTML::legend(_("Confirm ownership change")));
             $header->pushContent(HTML::p(HTML::strong(
-                    _("Are you sure you want to change the owner of the selected pages?"))));
+                    _("Are you sure you want to change the owner of the following pages?"))));
+            $header->pushContent(_("Change owner to: "));
+            $header->pushContent(HTML::input(array('name' => 'admin_chown[user]',
+                                                   'value' => $post_args['user'],
+                                                   'size' => 40,
+                                                   'readonly' => 'readonly')));
         } else {
             $pagelist = new PageList_Selectable($args['info'], $args['exclude'], $args);
             $pagelist->addPageList($pages);
             $button_label = _("Change owner of selected pages");
             $header->pushContent(HTML::legend(_("Select the pages to change the owner")));
+            $header->pushContent(_("Change owner to: "));
+            $header->pushContent(HTML::input(array('name' => 'admin_chown[user]',
+                                                   'value' => $post_args['user'],
+                                                   'size' => 40)));
         }
 
-        $header->pushContent(_("Change owner to: "));
-        $header->pushContent(HTML::input(array('name' => 'admin_chown[user]',
-            'value' => $post_args['user'],
-            'size' => 40)));
-
         $buttons = HTML::p(Button('submit:admin_chown[chown]', $button_label, 'wikiadmin'),
                            HTML::raw("&nbsp;&nbsp;"),
                            Button('submit:admin_chown[cancel]', _("Cancel"), 'button'));

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.