MDL-87304 mod_data: Remove sticky footer other usages
* Remove sticky footer in presets, import, templates and field pages
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user