summaryrefslogtreecommitdiffstats
path: root/modules-available/sysconfig/templates
diff options
context:
space:
mode:
authorJannik Schönartz2020-01-17 00:09:23 +0100
committerJannik Schönartz2020-01-17 00:09:23 +0100
commit44f999c0cb6e62affec2a2e9817a3abb10a3a75b (patch)
treef4e0c1ec9cb98fda7616d20e4d2a83e55bda484b /modules-available/sysconfig/templates
parent[serversetup-bwlp-ipxe] Add required tags to required inputs in the menu entr... (diff)
downloadslx-admin-44f999c0cb6e62affec2a2e9817a3abb10a3a75b.tar.gz
slx-admin-44f999c0cb6e62affec2a2e9817a3abb10a3a75b.tar.xz
slx-admin-44f999c0cb6e62affec2a2e9817a3abb10a3a75b.zip
[sysconfig] Screensaver: Add a full fledged back button experience
Processing of Screensaver_Text is now only handled in the Screensaver_text preprocess
Diffstat (limited to 'modules-available/sysconfig/templates')
-rw-r--r--modules-available/sysconfig/templates/screensaver-start.html3
-rw-r--r--modules-available/sysconfig/templates/screensaver-text.html9
2 files changed, 8 insertions, 4 deletions
diff --git a/modules-available/sysconfig/templates/screensaver-start.html b/modules-available/sysconfig/templates/screensaver-start.html
index ab1382bd..38610365 100644
--- a/modules-available/sysconfig/templates/screensaver-start.html
+++ b/modules-available/sysconfig/templates/screensaver-start.html
@@ -89,7 +89,8 @@
<hr>
<div class="btn-group">
- <a class="btn btn-default" id="btn-back" tabindex="5" onclick="window.history.back()">{{lang_back}}</a>
+ <a class="btn btn-default" id="btn-back" tabindex="5"
+ {{#edit}}href="?do=sysconfig"{{/edit}}{{^edit}}href="?do=SysConfig&action=addmodule"{{/edit}}>{{lang_back}}</a>
</div>
<div class="btn-group pull-right">
<button type="submit" id="btn-next" tabindex="6" class="btn btn-primary">{{lang_next}} &raquo;</button>
diff --git a/modules-available/sysconfig/templates/screensaver-text.html b/modules-available/sysconfig/templates/screensaver-text.html
index 1aa45a90..9fd0cea4 100644
--- a/modules-available/sysconfig/templates/screensaver-text.html
+++ b/modules-available/sysconfig/templates/screensaver-text.html
@@ -1,6 +1,6 @@
<form role="form" enctype="multipart/form-data" method="post" action="?do=SysConfig&amp;action=addmodule&amp;step={{step}}">
<input type="hidden" name="token" value="{{token}}">
- <input type="hidden" name="next" value="{{next}}">
+ <input type="hidden" id="next" name="next" value="{{next}}">
<input type="hidden" name="id" value="{{id}}">
<input type="hidden" name="edit" value="{{edit}}">
@@ -47,7 +47,7 @@
</div>
<div class="btn-group">
- <a class="btn btn-default" onclick="window.history.back()" tabindex="5">{{lang_back}}</a>
+ <button class="btn btn-default" type="submit" onclick="goBack()" tabindex="5">{{lang_back}}</button>
</div>
<div class="btn-group pull-right">
<button type="submit" class="btn btn-primary" tabindex="6">
@@ -80,7 +80,6 @@
switchMode({{inherit_locked}});
}, false);
-
function switchMode(mode) {
// true = inherit on
// false = inherit off
@@ -98,6 +97,10 @@
$('#inherit_locked').val(false);
}
}
+
+ function goBack() {
+ $('#next').val('{{prev}}');
+ }
</script>
<style>