MDL-87304 mod_data: Remove sticky footer other usages

* Remove sticky footer in presets, import, templates and field pages
This commit is contained in:
Laurent David
2026-01-27 13:39:20 +01:00
parent e6ce408bbc
commit d78bd0d23a
6 changed files with 26 additions and 50 deletions
+1 -4
View File
@@ -463,10 +463,7 @@ class data_field_base { // Base class for Database Field Types (see field/*/
'class' => 'btn btn-primary mx-1'
]);
$actionbuttons .= html_writer::end_div();
$stickyfooter = new core\output\sticky_footer($actionbuttons);
echo $OUTPUT->render($stickyfooter);
echo $actionbuttons;
echo '</form>';
echo $OUTPUT->box_end();
+1 -4
View File
@@ -121,10 +121,7 @@ class mod_data_renderer extends plugin_renderer_base {
'value' => get_string('continue'),
]);
$actionbuttons .= html_writer::end_div();
$stickyfooter = new core\output\sticky_footer($actionbuttons);
$html .= $this->render($stickyfooter);
$html .= $actionbuttons;
$html .= html_writer::end_tag('div');
$html .= html_writer::end_tag('form');
$html .= html_writer::end_tag('div');
@@ -21,11 +21,6 @@
"pageurl": "http://yoursite/mod/data/field.php"
}
}}
{{< core/sticky_footer }}
{{$ stickyclasses }} justify-content-start{{/ stickyclasses }}
{{$ stickycontent }}
<div class="ps-3">
<a href="{{pageurl}}">{{#str}} viewtemplates, mod_data {{/str}}</a>
</div>
{{/ stickycontent }}
{{/ core/sticky_footer }}
<div class="ps-3">
<a href="{{pageurl}}">{{#str}} viewtemplates, mod_data {{/str}}</a>
</div>
@@ -31,18 +31,14 @@
{{{preview}}}
</div>
</div>
{{< core/sticky_footer }}
{{$ stickycontent }}
<form method="post" action="{{formactionurl}}">
<input type="hidden" name="cmid" value="{{cmid}}">
<input type="hidden" name="mode" value="usepreset">
<input type="hidden" name="action" value="select">
<input type="hidden" name="fullname" value="{{userid}}/{{shortname}}">
<input type="submit" name="selectpreset" data-action="selectpreset" value="{{#str}}usepreset, mod_data{{/str}}" class="btn btn-primary"
data-cmid="{{cmid}}" data-presetname="{{userid}}/{{shortname}}">
</form>
{{/ stickycontent }}
{{/ core/sticky_footer }}
<form method="post" action="{{formactionurl}}">
<input type="hidden" name="cmid" value="{{cmid}}">
<input type="hidden" name="mode" value="usepreset">
<input type="hidden" name="action" value="select">
<input type="hidden" name="fullname" value="{{userid}}/{{shortname}}">
<input type="submit" name="selectpreset" data-action="selectpreset" value="{{#str}}usepreset, mod_data{{/str}}" class="btn btn-primary"
data-cmid="{{cmid}}" data-presetname="{{userid}}/{{shortname}}">
</form>
{{#js}}
require(['mod_data/importmappingdialogue'], function(importPreset) {
+8 -13
View File
@@ -96,19 +96,14 @@
</tbody>
</table>
</fieldset>
{{< core/sticky_footer }}
{{$ stickycontent }}
<input
type="submit"
name="selectpreset"
data-action="selectpreset"
value="{{#str}}usepreset, mod_data{{/str}}"
class="btn btn-secondary"
disabled
>
{{/ stickycontent }}
{{/ core/sticky_footer }}
<input
type="submit"
name="selectpreset"
data-action="selectpreset"
value="{{#str}}usepreset, mod_data{{/str}}"
class="btn btn-secondary"
disabled
>
</form>
{{#js}}
@@ -110,15 +110,11 @@
</div>
</div>
{{/disableeditor}}
{{< core/sticky_footer }}
{{$ stickycontent }}
<div>
<input
class="btn btn-primary mx-1"
<div>
<input
class="btn btn-primary mt-2"
type="submit"
value="{{#str}} save {{/str}}"
/>
</div>
{{/ stickycontent }}
{{/ core/sticky_footer }}
/>
</div>
</form>