version 1.1471, 2025/03/18 18:57:28
|
version 1.1472, 2025/03/19 15:18:59
|
Line 2848 Args:
|
Line 2848 Args:
|
$hash - the elements should be 'option' => 'shown text' |
$hash - the elements should be 'option' => 'shown text' |
(shown text should already have been &mt()) |
(shown text should already have been &mt()) |
$order - (optional) array ref of the order to show the elements in |
$order - (optional) array ref of the order to show the elements in |
$id = (optional) id for <select> element |
$id = (optional) id for <select> element |
|
|
=cut |
=cut |
|
|
Line 2890 sub multiple_select_form {
|
Line 2890 sub multiple_select_form {
|
|
|
=pod |
=pod |
|
|
=item * &select_form($defdom,$name,$hashref,$onchange,$readonly,$id) |
=item * &select_form($defdom,$name,$hashref,$onchange,$readonly,$id,$aria_labelledby) |
|
|
Returns a string containing a <select name='$name' size='1'> form to |
Returns a string containing a <select name='$name' size='1'> form to |
allow a user to select options from a ref to a hash containing: |
allow a user to select options from a ref to a hash containing: |
Line 2899 a javascript onchange item, e.g., onchan
|
Line 2899 a javascript onchange item, e.g., onchan
|
An optional arg -- $readonly -- if true will cause the select form |
An optional arg -- $readonly -- if true will cause the select form |
to be disabled, e.g., for the case where an instructor has a section- |
to be disabled, e.g., for the case where an instructor has a section- |
specific role, and is viewing/modifying parameters. An optional arg |
specific role, and is viewing/modifying parameters. An optional arg |
-- $id -- will be used as the id attribute of the select element. |
-- $id -- will be used as the id attribute of the select element. An |
|
optional arg -- $aria_labelledby -- will be included as the aria-labelledby |
|
attribute of the select element. |
|
|
See lonrights.pm for an example invocation and use. |
See lonrights.pm for an example invocation and use. |
|
|
Line 2907 See lonrights.pm for an example invocati
|
Line 2909 See lonrights.pm for an example invocati
|
|
|
#------------------------------------------- |
#------------------------------------------- |
sub select_form { |
sub select_form { |
my ($def,$name,$hashref,$onchange,$readonly,$id) = @_; |
my ($def,$name,$hashref,$onchange,$readonly,$id,$aria_labelledby) = @_; |
return unless (ref($hashref) eq 'HASH'); |
return unless (ref($hashref) eq 'HASH'); |
if ($onchange) { |
if ($onchange) { |
$onchange = ' onchange="'.$onchange.'"'; |
$onchange = ' onchange="'.$onchange.'"'; |
Line 2919 sub select_form {
|
Line 2921 sub select_form {
|
if ($id ne '') { |
if ($id ne '') { |
$id = ' id="'.$id.'"'; |
$id = ' id="'.$id.'"'; |
} |
} |
my $selectform = "<select name=\"$name\" size=\"1\"$onchange$disabled$id>\n"; |
if ($aria_labelledby ne '') { |
|
$aria_labelledby = ' aria-labelledby="'.$aria_labelledby.'"'; |
|
} |
|
my $selectform = "<select name=\"$name\" size=\"1\"$onchange$disabled$id$aria_labelledby>\n"; |
my @keys; |
my @keys; |
if (exists($hashref->{'select_form_order'})) { |
if (exists($hashref->{'select_form_order'})) { |
@keys=@{$hashref->{'select_form_order'}}; |
@keys=@{$hashref->{'select_form_order'}}; |
Line 7361 form, .inline {
|
Line 7366 form, .inline {
|
font-size: 1.0em; |
font-size: 1.0em; |
} |
} |
|
|
|
h1.LC_search_results { |
|
font-size: 1.0em; |
|
font-weight: normal; |
|
} |
|
|
.LC_menus_content.shown{ |
.LC_menus_content.shown{ |
display: block; |
display: block; |
} |
} |