mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
Roles MDL-23986 Added help to role archetype
This commit is contained in:
parent
5741fd4ba5
commit
6397deaec8
@ -777,12 +777,13 @@ class define_role_table_advanced extends capability_table_with_risks {
|
||||
}
|
||||
|
||||
public function display() {
|
||||
global $OUTPUT;
|
||||
// Extra fields at the top of the page.
|
||||
echo '<div class="topfields clearfix">';
|
||||
$this->print_field('name', get_string('name'), $this->get_name_field('name'));
|
||||
$this->print_field('shortname', get_string('shortname'), $this->get_shortname_field('shortname'));
|
||||
$this->print_field('edit-description', get_string('description'), $this->get_description_field('description'));
|
||||
$this->print_field('menuarchetype', get_string('archetype', 'role'), $this->get_archetype_field('archetype'));
|
||||
$this->print_field('menuarchetype', get_string('archetype', 'role').' '.$OUTPUT->help_icon('archetype', 'role'), $this->get_archetype_field('archetype'));
|
||||
$this->print_field('', get_string('maybeassignedin', 'role'), $this->get_assignable_levels_control());
|
||||
echo "</div>";
|
||||
|
||||
|
@ -37,6 +37,7 @@ $string['allowroletoswitch'] = 'Allow users with role {$a->fromrole} to switch r
|
||||
$string['allowswitch'] = 'Allow role switches';
|
||||
$string['allsiteusers'] = 'All site users';
|
||||
$string['archetype'] = 'Role archetype';
|
||||
$string['archetype_help'] = 'The role archetype determines the permissions when a role is reset to default. It also determines any new permissions for the role when the site is upgraded.';
|
||||
$string['archetypecoursecreator'] = 'ARCHETYPE: Course Creator';
|
||||
$string['archetypeeditingteacher'] = 'ARCHETYPE: Teacher (editing)';
|
||||
$string['archetypefrontpage'] = 'ARCHETYPE: Authenticated user on frontpage';
|
||||
|
Loading…
x
Reference in New Issue
Block a user