MDL-77375 core_grades: set boundary of the dropdowns in grade setup page

This commit is contained in:
Shamim Rezaie 2023-07-01 23:53:43 +10:00
parent 91c29c250f
commit 848efb3f13
4 changed files with 7 additions and 2 deletions

View File

@ -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)

View File

@ -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):

View File

@ -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>

View File

@ -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}}}