Permalink
Browse files

fix for help buttons

  • Loading branch information...
1 parent 81c4689 commit d5b2c71508d0beae3a36d8ea02ca9cb44be634d7 ethem committed Aug 26, 2009
Showing with 8 additions and 8 deletions.
  1. +4 −4 enrol/authorize/config_form.php
  2. +3 −3 enrol/authorize/enrol_form.php
  3. +1 −1 enrol/authorize/uploadcsv.php
@@ -131,7 +131,7 @@
<tr valign="top">
<td align="right">an_authcode:</td>
<td><?php echo $OUTPUT->checkbox(html_select_option::make_checkbox('1', !empty($frm->an_authcode), get_string("adminauthcode", "enrol_authorize")), 'an_authcode'); ?>
- <?php echo $OUTPUT->help_icon(moodle_help_icon::make('authcode', 'authcode', 'enrol/authorize')); ?><br />
+ <?php echo $OUTPUT->help_icon(moodle_help_icon::make('authorize/authcode', 'authcode', 'enrol')); ?><br />
</td>
</tr>
@@ -177,20 +177,20 @@
</tr>
<tr valign="top"><td colspan="2"><h4><?php print_string("adminauthorizeccapture", "enrol_authorize") ?>
- <?php echo $OUTPUT->help_icon(moodle_help_icon::make('orderreview', 'orderreview', 'enrol/authorize')); ?>
+ <?php echo $OUTPUT->help_icon(moodle_help_icon::make('authorize/orderreview', 'orderreview', 'enrol')); ?>
</h4></td></tr>
<tr valign="top">
<td align="right">an_review:</td>
<td><?php echo $OUTPUT->checkbox(html_select_option::make_checkbox('1', !empty($frm->an_review), get_string("adminreview", "enrol_authorize")), 'an_review'); ?>
- <?php echo $OUTPUT->help_icon(moodle_help_icon::make('review', get_string('adminhelpreviewtitle', 'enrol_authorize'), 'enrol/authorize')); ?><br />
+ <?php echo $OUTPUT->help_icon(moodle_help_icon::make('authorize/review', get_string('adminhelpreviewtitle', 'enrol_authorize'), 'enrol')); ?><br />
</td>
</tr>
<tr valign="top">
<td align="right">an_capture_day:</td>
<td><input type="text" name="an_capture_day" size="2" maxlength="2" value="<?php p($frm->an_capture_day) ?>" />
- <?php echo $OUTPUT->help_icon(moodle_help_icon::make('captureday', get_string('adminhelpcapturetitle', 'enrol_authorize'), 'enrol/authorize')); ?><br />
+ <?php echo $OUTPUT->help_icon(moodle_help_icon::make('authorize/captureday', get_string('adminhelpcapturetitle', 'enrol_authorize'), 'enrol')); ?><br />
<?php print_string("reviewday", "enrol_authorize", $frm->an_capture_day) ?></td>
</tr>
@@ -82,7 +82,7 @@ function definition()
$mform->setDefault('cctype', '');
$mform->addElement('text', 'cvv', get_string('ccvv', 'enrol_authorize'), 'size="4"');
- $mform->setHelpButton('cvv', array('cvv',get_string('ccvv', 'enrol_authorize'),'enrol/authorize'), true);
+ $mform->setHelpButton('cvv', array('authorize/cvv',get_string('ccvv', 'enrol_authorize'),'enrol'), true);
$mform->setType('cvv', PARAM_ALPHANUM);
$mform->setDefault('cvv', '');
$mform->addRule('cvv', get_string('missingcvv', 'enrol_authorize'), 'required', null, 'client');
@@ -94,7 +94,7 @@ function definition()
$ccauthgrp[] = &$mform->createElement('static', 'nextline', null, '<br />');
$ccauthgrp[] = &$mform->createElement('text', 'ccauthcode', '', 'size="8"');
$mform->addGroup($ccauthgrp, 'ccauthgrp', get_string('authcode', 'enrol_authorize'), '&nbsp;', false);
- $mform->setHelpButton('ccauthgrp', array('authcode',get_string('authcode', 'enrol_authorize'),'enrol/authorize'), true);
+ $mform->setHelpButton('ccauthgrp', array('authorize/authcode',get_string('authcode', 'enrol_authorize'),'enrol'), true);
$ccauthgrprules = array();
$ccauthgrprules['ccauthcode'][] = array(get_string('missingccauthcode', 'enrol_authorize'), 'numeric', null, 'client');
@@ -139,7 +139,7 @@ function definition()
elseif (AN_METHOD_ECHECK == $paymentmethod)
{
$mform->addElement('text', 'abacode', get_string('echeckabacode', 'enrol_authorize'), 'size="9" maxlength="9"');
- $mform->setHelpButton('abacode', array('aba',get_string('echeckabacode', 'enrol_authorize'),'enrol/authorize'), true);
+ $mform->setHelpButton('abacode', array('authorize/aba',get_string('echeckabacode', 'enrol_authorize'),'enrol'), true);
$mform->setType('abacode', PARAM_ALPHANUM);
$mform->setDefault('abacode', '');
$mform->addRule('abacode', get_string('missingaba', 'enrol_authorize'), 'required', null, 'client');
@@ -21,7 +21,7 @@
$managebutton = "<form method='get' action='index.php'><div><input type='submit' value='".get_string('paymentmanagement', 'enrol_authorize')."' /></div></form>";
print_header_simple($struploadcsv, '', $navigation, '', '', false, $managebutton);
- print_heading_with_help($struploadcsv, 'uploadcsv', 'enrol/authorize');
+ print_heading_with_help($struploadcsv, 'authorize/uploadcsv', 'enrol');
/// Handle CSV file
if (($form = data_submitted()) && confirm_sesskey()) {

0 comments on commit d5b2c71

Please sign in to comment.