mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Role assignment form buttons have no text MDL-7721; original patch by Nick Freear
This commit is contained in:
parent
2493fc103c
commit
b6e5a6e6f0
2 changed files with 31 additions and 24 deletions
|
@ -6,18 +6,11 @@
|
||||||
<input type="hidden" name="sesskey" value="<?php p(sesskey()) ?>" />
|
<input type="hidden" name="sesskey" value="<?php p(sesskey()) ?>" />
|
||||||
<input type="hidden" name="contextid" value="<?php p($contextid) ?>" />
|
<input type="hidden" name="contextid" value="<?php p($contextid) ?>" />
|
||||||
<input type="hidden" name="roleid" value="<?php p($roleid) ?>" />
|
<input type="hidden" name="roleid" value="<?php p($roleid) ?>" />
|
||||||
<table align="center" border="0" cellpadding="5" cellspacing="0">
|
<table summary="" align="center" border="0" cellpadding="5" cellspacing="0">
|
||||||
<tr>
|
|
||||||
<th valign="top">
|
|
||||||
<?php print_string('existingusers', 'role', count($contextusers)); ?>
|
|
||||||
</th>
|
|
||||||
<th></th>
|
|
||||||
<th valign="top">
|
|
||||||
<?php print_string('potentialusers', 'role', $usercount); ?>
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top">
|
<td valign="top">
|
||||||
|
<label for="removeselect"><?php print_string('existingusers', 'role', count($contextusers)); ?></label>
|
||||||
|
<br />
|
||||||
<select name="removeselect[]" size="20" id="removeselect" multiple="multiple"
|
<select name="removeselect[]" size="20" id="removeselect" multiple="multiple"
|
||||||
onfocus="document.assignform.add.disabled=true;
|
onfocus="document.assignform.add.disabled=true;
|
||||||
document.assignform.remove.disabled=false;
|
document.assignform.remove.disabled=false;
|
||||||
|
@ -36,17 +29,21 @@
|
||||||
|
|
||||||
</select></td>
|
</select></td>
|
||||||
<td valign="top">
|
<td valign="top">
|
||||||
<input type="checkbox" name="hidden" value="1" />
|
|
||||||
<img src="<?php echo $CFG->pixpath; ?>/t/hide.gif" alt="<?php print_string('hiddenassign') ?>" class="hide-show-image" />
|
|
||||||
<br />
|
|
||||||
<input name="add" type="submit" id="add" value="←" />
|
|
||||||
<br />
|
|
||||||
<input name="remove" type="submit" id="remove" value="→" />
|
|
||||||
<br />
|
<br />
|
||||||
|
<label title="<?php print_string('hiddenassign') ?>">
|
||||||
|
<input type="checkbox" name="hidden" value="1" />
|
||||||
|
<img src="<?php echo $CFG->pixpath; ?>/t/hide.gif" alt="<?php print_string('hiddenassign') ?>" class="hide-show-image" />
|
||||||
|
</label>
|
||||||
|
<?php check_theme_arrows(); ?>
|
||||||
|
<p class="arrow_button">
|
||||||
|
<input name="add" id="add" type="submit" value="<?php echo ' '.$THEME->larrow.' '.get_string('add'); ?>" title="<?php print_string('add'); ?>" />
|
||||||
|
<br />
|
||||||
|
<input name="remove" id="remove" type="submit" value="<?php echo ' '.$THEME->rarrow.' '.get_string('remove'); ?>" title="<?php print_string('remove'); ?>" />
|
||||||
|
</p>
|
||||||
</td>
|
</td>
|
||||||
<td valign="top">
|
<td valign="top">
|
||||||
<label for="addselect"><?php print_string('potentialusers', 'role', $usercount); ?></label>
|
<label for="addselect"><?php print_string('potentialusers', 'role', $usercount); ?></label>
|
||||||
<br />
|
<br />
|
||||||
<select name="addselect[]" size="20" id="addselect" multiple="multiple"
|
<select name="addselect[]" size="20" id="addselect" multiple="multiple"
|
||||||
onfocus="document.assignform.add.disabled=false;
|
onfocus="document.assignform.add.disabled=false;
|
||||||
document.assignform.remove.disabled=true;
|
document.assignform.remove.disabled=true;
|
||||||
|
@ -83,7 +80,8 @@
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
<br />
|
<br />
|
||||||
<input type="text" name="searchtext" size="30" value="<?php p($searchtext, true) ?>"
|
<label for="searchtext" class="accesshide"><?php p($strsearch) ?></label>
|
||||||
|
<input type="text" name="searchtext" id="searchtext" size="30" value="<?php p($searchtext, true) ?>"
|
||||||
onfocus ="document.assignform.add.disabled=true;
|
onfocus ="document.assignform.add.disabled=true;
|
||||||
document.assignform.remove.disabled=true;
|
document.assignform.remove.disabled=true;
|
||||||
document.assignform.removeselect.selectedIndex=-1;
|
document.assignform.removeselect.selectedIndex=-1;
|
||||||
|
@ -93,10 +91,9 @@
|
||||||
document.assignform.previoussearch.value=1;
|
document.assignform.previoussearch.value=1;
|
||||||
document.assignform.submit();
|
document.assignform.submit();
|
||||||
} " />
|
} " />
|
||||||
<input name="search" id="search" type="submit" value="<?php p($strsearch) ?>" />
|
|
||||||
<?php
|
<?php
|
||||||
if (!empty($searchusers)) {
|
if (!empty($searchtext)) {
|
||||||
echo '<input name="showall" id="showall" type="submit" value="'.$strshowall.'" />'."\n";
|
echo '<br /><input name="showall" id="showall" type="submit" value="'.$strshowall.'" />'."\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -271,6 +271,16 @@ form.popupform {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.arrow_button {
|
||||||
|
margin-top:3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.arrow_button input {
|
||||||
|
width:2.4em;
|
||||||
|
padding:0.3em;
|
||||||
|
overflow:hidden;
|
||||||
|
}
|
||||||
|
|
||||||
/*Accessibility: text 'seen' by screen readers but not visual users. Fixed for RTL languages, example Farsi. */
|
/*Accessibility: text 'seen' by screen readers but not visual users. Fixed for RTL languages, example Farsi. */
|
||||||
.accesshide {
|
.accesshide {
|
||||||
position:absolute;
|
position:absolute;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue