Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix for help buttons

  • Loading branch information...
commit d5b2c71508d0beae3a36d8ea02ca9cb44be634d7 1 parent 81c4689
authored August 26, 2009
8  enrol/authorize/config_form.php
@@ -131,7 +131,7 @@
131 131
 <tr valign="top">
132 132
     <td align="right">an_authcode:</td>
133 133
     <td><?php echo $OUTPUT->checkbox(html_select_option::make_checkbox('1', !empty($frm->an_authcode), get_string("adminauthcode", "enrol_authorize")), 'an_authcode');  ?>
134  
-        <?php echo $OUTPUT->help_icon(moodle_help_icon::make('authcode', 'authcode', 'enrol/authorize')); ?><br />
  134
+        <?php echo $OUTPUT->help_icon(moodle_help_icon::make('authorize/authcode', 'authcode', 'enrol')); ?><br />
135 135
     </td>
136 136
 </tr>
137 137
 
@@ -177,20 +177,20 @@
177 177
 </tr>
178 178
 
179 179
 <tr valign="top"><td colspan="2"><h4><?php print_string("adminauthorizeccapture", "enrol_authorize") ?>
180  
-                                     <?php echo $OUTPUT->help_icon(moodle_help_icon::make('orderreview', 'orderreview', 'enrol/authorize')); ?>
  180
+                                     <?php echo $OUTPUT->help_icon(moodle_help_icon::make('authorize/orderreview', 'orderreview', 'enrol')); ?>
181 181
                                  </h4></td></tr>
182 182
 
183 183
 <tr valign="top">
184 184
     <td align="right">an_review:</td>
185 185
     <td><?php echo $OUTPUT->checkbox(html_select_option::make_checkbox('1', !empty($frm->an_review), get_string("adminreview", "enrol_authorize")), 'an_review'); ?>
186  
-        <?php echo $OUTPUT->help_icon(moodle_help_icon::make('review', get_string('adminhelpreviewtitle', 'enrol_authorize'), 'enrol/authorize')); ?><br />
  186
+        <?php echo $OUTPUT->help_icon(moodle_help_icon::make('authorize/review', get_string('adminhelpreviewtitle', 'enrol_authorize'), 'enrol')); ?><br />
187 187
     </td>
188 188
 </tr>
189 189
 
190 190
 <tr valign="top">
191 191
     <td align="right">an_capture_day:</td>
192 192
     <td><input type="text" name="an_capture_day" size="2" maxlength="2" value="<?php p($frm->an_capture_day) ?>" />
193  
-        <?php echo $OUTPUT->help_icon(moodle_help_icon::make('captureday', get_string('adminhelpcapturetitle', 'enrol_authorize'), 'enrol/authorize')); ?><br />
  193
+        <?php echo $OUTPUT->help_icon(moodle_help_icon::make('authorize/captureday', get_string('adminhelpcapturetitle', 'enrol_authorize'), 'enrol')); ?><br />
194 194
         <?php print_string("reviewday", "enrol_authorize", $frm->an_capture_day) ?></td>
195 195
 </tr>
196 196
 
6  enrol/authorize/enrol_form.php
@@ -82,7 +82,7 @@ function definition()
82 82
             $mform->setDefault('cctype', '');
83 83
             
84 84
             $mform->addElement('text', 'cvv', get_string('ccvv', 'enrol_authorize'), 'size="4"');
85  
-            $mform->setHelpButton('cvv', array('cvv',get_string('ccvv', 'enrol_authorize'),'enrol/authorize'), true);
  85
+            $mform->setHelpButton('cvv', array('authorize/cvv',get_string('ccvv', 'enrol_authorize'),'enrol'), true);
86 86
             $mform->setType('cvv', PARAM_ALPHANUM);
87 87
             $mform->setDefault('cvv', '');
88 88
             $mform->addRule('cvv', get_string('missingcvv', 'enrol_authorize'), 'required', null, 'client');
@@ -94,7 +94,7 @@ function definition()
94 94
                 $ccauthgrp[] = &$mform->createElement('static', 'nextline', null, '<br />');
95 95
                 $ccauthgrp[] = &$mform->createElement('text', 'ccauthcode', '', 'size="8"');
96 96
                 $mform->addGroup($ccauthgrp, 'ccauthgrp', get_string('authcode', 'enrol_authorize'), '&nbsp;', false);
97  
-                $mform->setHelpButton('ccauthgrp', array('authcode',get_string('authcode', 'enrol_authorize'),'enrol/authorize'), true);
  97
+                $mform->setHelpButton('ccauthgrp', array('authorize/authcode',get_string('authcode', 'enrol_authorize'),'enrol'), true);
98 98
                 
99 99
                 $ccauthgrprules = array();
100 100
                 $ccauthgrprules['ccauthcode'][] = array(get_string('missingccauthcode', 'enrol_authorize'), 'numeric', null, 'client');
@@ -139,7 +139,7 @@ function definition()
139 139
         elseif (AN_METHOD_ECHECK == $paymentmethod)
140 140
         {
141 141
             $mform->addElement('text', 'abacode', get_string('echeckabacode', 'enrol_authorize'), 'size="9" maxlength="9"');
142  
-            $mform->setHelpButton('abacode', array('aba',get_string('echeckabacode', 'enrol_authorize'),'enrol/authorize'), true);
  142
+            $mform->setHelpButton('abacode', array('authorize/aba',get_string('echeckabacode', 'enrol_authorize'),'enrol'), true);
143 143
             $mform->setType('abacode', PARAM_ALPHANUM);
144 144
             $mform->setDefault('abacode', '');
145 145
             $mform->addRule('abacode', get_string('missingaba', 'enrol_authorize'), 'required', null, 'client');
2  enrol/authorize/uploadcsv.php
@@ -21,7 +21,7 @@
21 21
     $managebutton = "<form method='get' action='index.php'><div><input type='submit' value='".get_string('paymentmanagement', 'enrol_authorize')."' /></div></form>";
22 22
 
23 23
     print_header_simple($struploadcsv, '', $navigation, '', '', false, $managebutton);
24  
-    print_heading_with_help($struploadcsv, 'uploadcsv', 'enrol/authorize');
  24
+    print_heading_with_help($struploadcsv, 'authorize/uploadcsv', 'enrol');
25 25
 
26 26
 /// Handle CSV file
27 27
     if (($form = data_submitted()) && confirm_sesskey()) {

0 notes on commit d5b2c71

Please sign in to comment.
Something went wrong with that request. Please try again.