]> git.mjollnir.org Git - moodle.git/commitdiff
improved accessibility of user edit page - adding help icons, removing incorrect...
authorskodak <skodak>
Sun, 16 Sep 2007 09:39:03 +0000 (09:39 +0000)
committerskodak <skodak>
Sun, 16 Sep 2007 09:39:03 +0000 (09:39 +0000)
lang/en_utf8/moodle.php
user/editadvanced_form.php
user/editlib.php

index 97dd129aa91932cd4102c849461789563c4fcbfa..735d8d82e31657e7ce0010cd122ebfa0c064f1f6 100644 (file)
@@ -559,7 +559,6 @@ $string['enrolstartdate'] = 'Start date';
 $string['entercourse'] = 'Click to enter this course';
 $string['enteremailaddress'] = 'Enter in your email address to reset your
    password and have the new password sent to you via email.';
-$string['enteryourinterests'] = 'Enter your interests separated by commas';
 $string['entries'] = 'Entries';
 $string['error'] = 'Error';
 $string['errortoomanylogins'] = 'Sorry, you have exceeded the allowed number of login attempts. Restart your browser.';
@@ -720,6 +719,7 @@ $string['healthsolution'] = 'Solution';
 $string['help'] = 'Help';
 $string['helpemoticons'] = 'Use emoticons';
 $string['helpformatting'] = 'About formatting text';
+$string['helpinterestslist'] = 'Enter your interests separated by commas';
 $string['helphtml'] = 'How to write html';
 $string['helpindex'] = 'Index of all help files';
 $string['helppicture'] = 'How to upload a picture';
@@ -785,6 +785,7 @@ $string['info'] = 'Information';
 $string['institution'] = 'Institution';
 $string['instudentview'] = 'in student view';
 $string['interests'] = 'Interests';
+$string['interestslist'] = 'List of interests';
 $string['invalidemail'] = 'Invalid email address';
 $string['invalidlogin'] = 'Invalid login, please try again';
 $string['ip_address'] = 'IP Address';
index 0deb34a41363a43e8713df6060ad4c2ebcf59dd7..1bcd86a42a82f899d934e484541232e9bbb3a8e4 100644 (file)
@@ -33,11 +33,13 @@ class user_editadvanced_form extends moodleform {
         $mform->setAdvanced('auth');
 
         $mform->addElement('passwordunmask', 'newpassword', get_string('newpassword'), 'size="20"');
+        $mform->setHelpButton('newpassword', array(false, get_string('leavetokeep'),
+                          false, true, false, get_string('leavetokeep')));
         $mform->setType('newpassword', PARAM_RAW);
-        //TODO: add missing help - empty means no change
 
         $mform->addElement('advcheckbox', 'preference_auth_forcepasswordchange', get_string('forcepasswordchange'));
-        //TODO: add missing help - user will be forced to change password
+        $mform->setHelpButton('preference_auth_forcepasswordchange', array(false, get_string('forcepasswordchangehelp'),
+                          false, true, false, get_string('forcepasswordchangehelp')));
 
         /// shared fields
         useredit_shared_definition($mform);
index 66e5f011bfcf7f11aad7e331f83c38c6cb6d954a..df0019b8afe5fc81c01934d38f797ea4d1cc15f2 100644 (file)
@@ -223,8 +223,9 @@ function useredit_shared_definition(&$mform) {
 
     if( !empty($CFG->usetags)) {
         $mform->addElement('header', 'moodle_interests', get_string('interests'));
-        $mform->addElement('static', 'helptextinterests', '' , get_string('enteryourinterests'));
-        $mform->addElement('textarea', 'interests', get_string('interests'), 'cols="45" rows="3"');
+        $mform->addElement('textarea', 'interests', get_string('interestslist'), 'cols="45" rows="3"');
+        $mform->setHelpButton('interests', array(false, get_string('helpinterestslist'),
+                          false, true, false, get_string('helpinterestslist')));
     }
     
     /// Moodle optional fields