From b7711421c8a2488bd3a5650cccc665b06bb507ae Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Wed, 29 Jan 2025 20:30:56 +0000 Subject: [PATCH] MDL-81623 admin: sensitive toggle when prompting for upgrade key. --- admin/renderer.php | 3 ++- lib/templates/form_input_toggle_sensitive.mustache | 2 +- lib/upgradelib.php | 3 +++ theme/boost/scss/moodle/admin.scss | 4 ++++ theme/boost/style/moodle.css | 4 ++++ theme/classic/style/moodle.css | 4 ++++ 6 files changed, 18 insertions(+), 2 deletions(-) diff --git a/admin/renderer.php b/admin/renderer.php index 155aa23d073..797f40a0c73 100644 --- a/admin/renderer.php +++ b/admin/renderer.php @@ -2243,10 +2243,11 @@ class core_admin_renderer extends plugin_renderer_base { $output = ''; $output .= $this->header(); - $output .= $this->container_start('upgradekeyreq'); $output .= $this->heading(get_string('upgradekeyreq', 'core_admin')); + $output .= $this->container_start('upgradekeyreq w-25'); $output .= html_writer::start_tag('form', array('method' => 'POST', 'action' => $url)); $output .= html_writer::empty_tag('input', [ + 'id' => 'upgradekey', 'name' => 'upgradekey', 'type' => 'password', 'class' => 'form-control w-auto', diff --git a/lib/templates/form_input_toggle_sensitive.mustache b/lib/templates/form_input_toggle_sensitive.mustache index 21335aa30cc..9a808e4b923 100644 --- a/lib/templates/form_input_toggle_sensitive.mustache +++ b/lib/templates/form_input_toggle_sensitive.mustache @@ -34,7 +34,7 @@ "sensitiveinput": "" } }} -
+
{{{sensitiveinput}}}