From: tjhunt Date: Fri, 26 Oct 2007 17:00:05 +0000 (+0000) Subject: MDL-11917 - Improve the title on the assign/override roles page. Merged from MOODLE_1... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3a48e3da50108355915cb45d2cf08a56b45a3640;p=moodle.git MDL-11917 - Improve the title on the assign/override roles page. Merged from MOODLE_19_STABLE. --- diff --git a/admin/roles/assign.php b/admin/roles/assign.php index df682f79b9..01f9c3f318 100755 --- a/admin/roles/assign.php +++ b/admin/roles/assign.php @@ -80,7 +80,6 @@ $strexistingusers = get_string('existingusers', 'role'); $straction = get_string('assignroles', 'role'); $strroletoassign = get_string('roletoassign', 'role'); - $strcurrentcontext = get_string('currentcontext', 'role'); $strsearch = get_string('search'); $strshowall = get_string('showall'); $strparticipants = get_string('participants'); @@ -276,7 +275,7 @@ if ($context->contextlevel==CONTEXT_COURSE and $context->instanceid == SITEID) { print_heading_with_help(get_string('frontpageroles', 'admin'), 'assignroles'); } else { - print_heading_with_help(get_string('assignroles', 'role'), 'assignroles'); + print_heading_with_help(get_string('assignrolesin', 'role', print_context_name($context)), 'assignroles'); } if ($context->contextlevel==CONTEXT_SYSTEM) { @@ -393,7 +392,7 @@ } - echo '
'.$strcurrentcontext.': '.print_context_name($context).'
'; + echo '
'; $assignableroles = array('0'=>get_string('listallroles', 'role').'...') + $assignableroles; popup_form("$CFG->wwwroot/$CFG->admin/roles/assign.php?userid=$userid&courseid=$courseid&contextid=$contextid&roleid=", $assignableroles, 'switchrole', $roleid, '', '', '', false, 'self', $strroletoassign); diff --git a/admin/roles/override.php b/admin/roles/override.php index 600895cea3..e153189ed1 100755 --- a/admin/roles/override.php +++ b/admin/roles/override.php @@ -60,7 +60,6 @@ $stroverrideusers = get_string('overrideusers', 'role'); $straction = get_string('overrideroles', 'role'); $strcurrentrole = get_string('currentrole', 'role'); - $strcurrentcontext = get_string('currentcontext', 'role'); $strparticipants = get_string('participants'); /// Make sure this user can override that role @@ -169,12 +168,11 @@ } - print_heading_with_help(get_string('overrides', 'role'), 'overrides'); + print_heading_with_help(get_string('overriderolesin', 'role', print_context_name($context)), 'overrides'); if ($roleid) { /// prints a form to swap roles echo '
'; - echo $strcurrentcontext.': '.print_context_name($context).'
'; $overridableroles = array('0'=>get_string('listallroles', 'role').'...') + $overridableroles; popup_form("$CFG->wwwroot/$CFG->admin/roles/override.php?userid=$userid&courseid=$courseid&contextid=$contextid&roleid=", $overridableroles, 'switchrole', $roleid, '', '', '', false, 'self', $strroletooverride); diff --git a/lang/en_utf8/role.php b/lang/en_utf8/role.php index 92a9cf727a..58003bd581 100644 --- a/lang/en_utf8/role.php +++ b/lang/en_utf8/role.php @@ -7,6 +7,7 @@ $string['allow'] = 'Allow'; $string['allowassign'] = 'Allow role assignments'; $string['allowoverride'] = 'Allow role overrides'; $string['assignroles'] = 'Assign roles'; +$string['assignrolesin'] = 'Assign roles in $a'; $string['assignglobalroles'] = 'Assign global roles'; $string['blog:create'] = 'Create new blog entries'; $string['blog:manageentries'] = 'Edit and manage entries'; @@ -90,6 +91,7 @@ $string['my:manageblocks'] = 'Manage myMoodle page blocks'; $string['nocapabilitiesincontext'] = 'No capabilities available in this context'; $string['notset'] = 'Not set'; $string['overrideroles'] = 'Override roles'; +$string['overriderolesin'] = 'Override roles in $a'; $string['overrides'] = 'Overrides'; $string['permissions'] = 'Permissions'; $string['potentialusers'] = '$a potential users'; diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index da33152d9e..51ba3a0807 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -956,8 +956,10 @@ body#admin-modules table.generaltable td.c0 } #admin-roles-manage .selector, +#admin-roles-assign .selector, #admin-roles-override .selector { text-align:center; + margin-bottom:1em; } #admin-roles-manage table.roledesc,