MDL-58220 oauth2: More prominent help link

This commit is contained in:
Damyon Wiese 2017-03-29 16:51:10 +08:00
parent bc55c88ba0
commit 4dc53b15fd
2 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,8 @@ class issuer extends persistent {
$mform = $this->_form;
$endpoint = $this->get_persistent();
$mform->addElement('html', $OUTPUT->page_doc_link(get_string('issuersetup', 'tool_oauth2')));
// Name.
$mform->addElement('text', 'name', get_string('issuername', 'tool_oauth2'));
$mform->addRule('name', null, 'required', null, 'client');

View File

@ -53,6 +53,7 @@ $string['endpointname'] = 'Name';
$string['endpointsforissuer'] = 'Endpoints for issuer: {$a}';
$string['endpointurl_help'] = 'URL for this endpoint. Must use https:// protocol.';
$string['endpointurl'] = 'Url';
$string['issuersetup'] = 'Detailed instructions on configuring the common OAuth 2 Services';
$string['issueralloweddomains_help'] = 'If set, this setting is a comma separated list of domains that logins will be restricted to when using this provider.';
$string['issueralloweddomains_link'] = 'OAuth_2_login_domains';
$string['issueralloweddomains'] = 'Login domains';