removed all 'Revert' buttons from forms and removed it altogether from add_action_buttons method since it was decided it didn't contribute to usability.

This commit is contained in:
jamiesensei 2006-12-28 16:12:22 +00:00
parent 1d284fbd85
commit b6d15ddef9
7 changed files with 9 additions and 9 deletions

View File

@ -17,7 +17,7 @@ class course_import_activities_form_1 extends moodleform {
// buttons
$submit_string = get_string('usethiscourse');
$this->add_action_buttons(false, true, $submit_string);
$this->add_action_buttons(false, $submit_string);
$mform->addElement('hidden', 'id');
$mform->setType('id', PARAM_INT);
@ -44,7 +44,7 @@ class course_import_activities_form_2 extends moodleform {
$mform->addElement('text', 'fromcoursesearch', get_string('searchcourses'));
// buttons
$this->add_action_buttons(false, true, get_string('searchcourses'));
$this->add_action_buttons(false, get_string('searchcourses'));
$mform->addElement('hidden', 'id');
$mform->setType('id', PARAM_INT);

View File

@ -26,7 +26,7 @@ class course_import_groups_form extends moodleform {
$mform->setHelpButton('userfile', array('attachment', get_string('attachment', 'forum'), 'forum'));
$this->add_action_buttons(false, true, $strimportgroups);
$this->add_action_buttons(false, $strimportgroups);
}

View File

@ -172,7 +172,7 @@ class enrol_authorize_form extends moodleform
$mform->addRule('cczip', get_string('missingzip', 'enrol_authorize'), 'required', null, 'client');
$mform->addRule('cczip', get_string('missingzip', 'enrol_authorize'), 'numeric', null, 'client');
$this->add_action_buttons(false, true, get_string('sendpaymentbutton', 'enrol_authorize'));
$this->add_action_buttons(false, get_string('sendpaymentbutton', 'enrol_authorize'));
}
function validation($data)

View File

@ -46,9 +46,9 @@ class login_change_password_form extends moodleform {
// buttons
if (empty($USER->preference['auth_forcepasswordchange'])) {
$this->add_action_buttons(true, false);
$this->add_action_buttons(true);
} else {
$this->add_action_buttons(false, false);
$this->add_action_buttons(false);
}
}

View File

@ -20,7 +20,7 @@ class login_forgot_password_form extends moodleform {
$mform->addElement('hidden', 'action', 'find');
$mform->setType('action', PARAM_ALPHA);
$this->add_action_buttons(true, false, get_string('ok'));
$this->add_action_buttons(true, get_string('ok'));
}
}

View File

@ -49,7 +49,7 @@ class login_signup_form_1 extends moodleform {
$mform->setDefault('country', '');
// buttons
$this->add_action_buttons(true, false, get_string('createaccount'));
$this->add_action_buttons(true, get_string('createaccount'));
}

View File

@ -86,7 +86,7 @@ class mod_forum_post_form extends moodleform {
} else {
$submit_string = get_string('posttoforum', 'forum');
}
$this->add_action_buttons(false, true, $submit_string);
$this->add_action_buttons(false, $submit_string);
$mform->addElement('hidden', 'course');
$mform->setType('course', PARAM_INT);