mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-77375 core_grades: set boundary of the dropdowns in grade setup page
This commit is contained in:
parent
91c29c250f
commit
848efb3f13
@ -2663,6 +2663,10 @@ class grade_structure {
|
||||
$context->divider2 = false;
|
||||
}
|
||||
|
||||
if ($mode == 'setup') {
|
||||
$context->databoundary = 'window';
|
||||
}
|
||||
|
||||
if (!empty($USER->editing) || isset($context->gradeanalysisurl) || isset($context->gradesonlyurl)
|
||||
|| isset($context->aggregatesonlyurl) || isset($context->fullmodeurl) || isset($context->reporturl0)
|
||||
|| isset($context->ascendingfirstnameurl) || isset($context->ascendingurl)
|
||||
|
@ -15,7 +15,7 @@
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template core_grades/cellmenu
|
||||
@template core_grades/category_settings
|
||||
|
||||
This template renders action menu for a given cell.
|
||||
Example context (json):
|
||||
|
@ -42,6 +42,7 @@
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-link btn-icon icon-size-3 cellmenubtn"
|
||||
type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
|
||||
{{#databoundary}}data-boundary="{{databoundary}}"{{/databoundary}}
|
||||
{{#datatype}}data-type="{{datatype}}"{{/datatype}}
|
||||
{{#dataid}}data-id="{{dataid}}"{{/dataid}}>
|
||||
<i class="icon fa fa-ellipsis-h fa-fw m-0" title="{{#str}} cellactions, gradereport_grader {{/str}}" aria-hidden="true"></i>
|
||||
|
@ -42,7 +42,7 @@
|
||||
{{/notification}}
|
||||
<div class="gradetree-wrapper d-none">
|
||||
<form id="gradetreeform" method="post" action="{{actionurl}}" >
|
||||
<div>
|
||||
<div class="position-relative">
|
||||
<input type="hidden" name="sesskey" value="{{sesskey}}">
|
||||
{{{table}}}
|
||||
{{{stickyfooter}}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user