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; $context->divider2 = false;
} }
if ($mode == 'setup') {
$context->databoundary = 'window';
}
if (!empty($USER->editing) || isset($context->gradeanalysisurl) || isset($context->gradesonlyurl) if (!empty($USER->editing) || isset($context->gradeanalysisurl) || isset($context->gradesonlyurl)
|| isset($context->aggregatesonlyurl) || isset($context->fullmodeurl) || isset($context->reporturl0) || isset($context->aggregatesonlyurl) || isset($context->fullmodeurl) || isset($context->reporturl0)
|| isset($context->ascendingfirstnameurl) || isset($context->ascendingurl) || isset($context->ascendingfirstnameurl) || isset($context->ascendingurl)

View file

@ -15,7 +15,7 @@
along with Moodle. If not, see <http://www.gnu.org/licenses/>. 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. This template renders action menu for a given cell.
Example context (json): Example context (json):

View file

@ -42,6 +42,7 @@
<div class="dropdown"> <div class="dropdown">
<button class="btn btn-link btn-icon icon-size-3 cellmenubtn" <button class="btn btn-link btn-icon icon-size-3 cellmenubtn"
type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
{{#databoundary}}data-boundary="{{databoundary}}"{{/databoundary}}
{{#datatype}}data-type="{{datatype}}"{{/datatype}} {{#datatype}}data-type="{{datatype}}"{{/datatype}}
{{#dataid}}data-id="{{dataid}}"{{/dataid}}> {{#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> <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}} {{/notification}}
<div class="gradetree-wrapper d-none"> <div class="gradetree-wrapper d-none">
<form id="gradetreeform" method="post" action="{{actionurl}}" > <form id="gradetreeform" method="post" action="{{actionurl}}" >
<div> <div class="position-relative">
<input type="hidden" name="sesskey" value="{{sesskey}}"> <input type="hidden" name="sesskey" value="{{sesskey}}">
{{{table}}} {{{table}}}
{{{stickyfooter}}} {{{stickyfooter}}}