mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
fix for help buttons
This commit is contained in:
parent
81c4689685
commit
d5b2c71508
@ -131,7 +131,7 @@ if (!isset($frm->acceptechecktypes)) {
|
|||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<td align="right">an_authcode:</td>
|
<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'); ?>
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@ -177,20 +177,20 @@ if (!isset($frm->acceptechecktypes)) {
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr valign="top"><td colspan="2"><h4><?php print_string("adminauthorizeccapture", "enrol_authorize") ?>
|
<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>
|
</h4></td></tr>
|
||||||
|
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<td align="right">an_review:</td>
|
<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'); ?>
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<td align="right">an_capture_day:</td>
|
<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) ?>" />
|
<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>
|
<?php print_string("reviewday", "enrol_authorize", $frm->an_capture_day) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ class enrol_authorize_form extends moodleform
|
|||||||
$mform->setDefault('cctype', '');
|
$mform->setDefault('cctype', '');
|
||||||
|
|
||||||
$mform->addElement('text', 'cvv', get_string('ccvv', 'enrol_authorize'), 'size="4"');
|
$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->setType('cvv', PARAM_ALPHANUM);
|
||||||
$mform->setDefault('cvv', '');
|
$mform->setDefault('cvv', '');
|
||||||
$mform->addRule('cvv', get_string('missingcvv', 'enrol_authorize'), 'required', null, 'client');
|
$mform->addRule('cvv', get_string('missingcvv', 'enrol_authorize'), 'required', null, 'client');
|
||||||
@ -94,7 +94,7 @@ class enrol_authorize_form extends moodleform
|
|||||||
$ccauthgrp[] = &$mform->createElement('static', 'nextline', null, '<br />');
|
$ccauthgrp[] = &$mform->createElement('static', 'nextline', null, '<br />');
|
||||||
$ccauthgrp[] = &$mform->createElement('text', 'ccauthcode', '', 'size="8"');
|
$ccauthgrp[] = &$mform->createElement('text', 'ccauthcode', '', 'size="8"');
|
||||||
$mform->addGroup($ccauthgrp, 'ccauthgrp', get_string('authcode', 'enrol_authorize'), ' ', false);
|
$mform->addGroup($ccauthgrp, 'ccauthgrp', get_string('authcode', 'enrol_authorize'), ' ', 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 = array();
|
||||||
$ccauthgrprules['ccauthcode'][] = array(get_string('missingccauthcode', 'enrol_authorize'), 'numeric', null, 'client');
|
$ccauthgrprules['ccauthcode'][] = array(get_string('missingccauthcode', 'enrol_authorize'), 'numeric', null, 'client');
|
||||||
@ -139,7 +139,7 @@ class enrol_authorize_form extends moodleform
|
|||||||
elseif (AN_METHOD_ECHECK == $paymentmethod)
|
elseif (AN_METHOD_ECHECK == $paymentmethod)
|
||||||
{
|
{
|
||||||
$mform->addElement('text', 'abacode', get_string('echeckabacode', 'enrol_authorize'), 'size="9" maxlength="9"');
|
$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->setType('abacode', PARAM_ALPHANUM);
|
||||||
$mform->setDefault('abacode', '');
|
$mform->setDefault('abacode', '');
|
||||||
$mform->addRule('abacode', get_string('missingaba', 'enrol_authorize'), 'required', null, 'client');
|
$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>";
|
$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_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
|
/// Handle CSV file
|
||||||
if (($form = data_submitted()) && confirm_sesskey()) {
|
if (($form = data_submitted()) && confirm_sesskey()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user