summaryrefslogtreecommitdiffstats
path: root/modules-available/sysconfig/templates
diff options
context:
space:
mode:
authorSimon Rettberg2016-09-07 17:44:49 +0200
committerSimon Rettberg2016-09-07 17:44:49 +0200
commit1b25334f090f6b9ba84188b514ab5dcf99f961d3 (patch)
treefd85a619a346bbe0f76b78a5675f0e249e4575ac /modules-available/sysconfig/templates
parentUpdate translations (diff)
downloadslx-admin-1b25334f090f6b9ba84188b514ab5dcf99f961d3.tar.gz
slx-admin-1b25334f090f6b9ba84188b514ab5dcf99f961d3.tar.xz
slx-admin-1b25334f090f6b9ba84188b514ab5dcf99f961d3.zip
[sysconfig] Confirm dialog for deletion; show success message after deleting a config
Diffstat (limited to 'modules-available/sysconfig/templates')
-rw-r--r--modules-available/sysconfig/templates/ad_ldap-homedir.html6
-rw-r--r--modules-available/sysconfig/templates/js.html11
-rw-r--r--modules-available/sysconfig/templates/list-configs.html2
-rw-r--r--modules-available/sysconfig/templates/list-legend.html7
-rw-r--r--modules-available/sysconfig/templates/list-modules.html2
5 files changed, 13 insertions, 15 deletions
diff --git a/modules-available/sysconfig/templates/ad_ldap-homedir.html b/modules-available/sysconfig/templates/ad_ldap-homedir.html
index c6250175..de64e49e 100644
--- a/modules-available/sysconfig/templates/ad_ldap-homedir.html
+++ b/modules-available/sysconfig/templates/ad_ldap-homedir.html
@@ -66,12 +66,6 @@
<label class="control-label"><input type="checkbox" name="shareRemapCreate" {{shareRemapCreate_c}}> {{lang_shareMapCreate}}</label>
</div>
</div>
- <!--hr>
- <div class="slx-bold">{{lang_additionalFolders}}</div>
- <div><i>{{lang_addFoldersInfo}}</i></div>
-
- <br>
- <div><i>{{lang_driveLetterNote}}</i></div-->
<div class="pull-right">
<button type="submit" class="btn btn-primary">{{lang_next}} &raquo;</button>
</div>
diff --git a/modules-available/sysconfig/templates/js.html b/modules-available/sysconfig/templates/js.html
new file mode 100644
index 00000000..9e5da884
--- /dev/null
+++ b/modules-available/sysconfig/templates/js.html
@@ -0,0 +1,11 @@
+<script type="application/javascript"><!--
+document.addEventListener("DOMContentLoaded", function () {
+ checkBuildStatus();
+ $('[data-toggle="tooltip"]').tooltip();
+ $('.confirm-delete').click(function (event) {
+ if (!confirm('{{lang_confirmDeleteQuestion}}')) {
+ event.preventDefault();
+ }
+ });
+}, false);
+// --></script> \ No newline at end of file
diff --git a/modules-available/sysconfig/templates/list-configs.html b/modules-available/sysconfig/templates/list-configs.html
index 222ac43c..99db96bd 100644
--- a/modules-available/sysconfig/templates/list-configs.html
+++ b/modules-available/sysconfig/templates/list-configs.html
@@ -60,7 +60,7 @@
<td class="text-nowrap">
{{^locationid}}
<a class="btn btn-success btn-xs" href="?do=SysConfig&amp;action=addconfig&amp;edit={{configid}}" title="{{lang_edit}}"><span class="glyphicon glyphicon-edit"></span></a>
- <button class="btn btn-danger btn-xs" name="del" value="{{configid}}" title="{{lang_delete}}"><span class="glyphicon glyphicon-trash"></span></button>
+ <button class="btn btn-danger btn-xs confirm-delete" name="del" value="{{configid}}" title="{{lang_delete}}"><span class="glyphicon glyphicon-trash"></span></button>
{{/locationid}}
</td>
</tr>
diff --git a/modules-available/sysconfig/templates/list-legend.html b/modules-available/sysconfig/templates/list-legend.html
index 4a46a6a0..809a0449 100644
--- a/modules-available/sysconfig/templates/list-legend.html
+++ b/modules-available/sysconfig/templates/list-legend.html
@@ -33,10 +33,3 @@
{{/showLocationBadge}}
</div>
</div>
-
-<script type="application/javascript"><!--
-document.addEventListener("DOMContentLoaded", function () {
- checkBuildStatus();
- $('[data-toggle="tooltip"]').tooltip();
-}, false);
-// --></script> \ No newline at end of file
diff --git a/modules-available/sysconfig/templates/list-modules.html b/modules-available/sysconfig/templates/list-modules.html
index 585b3522..e7a3b26c 100644
--- a/modules-available/sysconfig/templates/list-modules.html
+++ b/modules-available/sysconfig/templates/list-modules.html
@@ -29,7 +29,7 @@
{{/needRebuild}}
name="rebuild" value="{{id}}" title="{{lang_rebuild}}"><span class="glyphicon glyphicon-refresh"></span></button>
<a class="btn btn-success btn-xs" href="?do=SysConfig&amp;action=addmodule&amp;step={{moduleType}}_Start&amp;edit={{id}}" title="{{lang_edit}}"><span class="glyphicon glyphicon-edit"></span></a>
- <button class="btn btn-danger btn-xs" name="del" value="{{id}}" title="{{lang_delete}}"><span class="glyphicon glyphicon-trash"></span></button>
+ <button class="btn btn-danger btn-xs confirm-delete" name="del" value="{{id}}" title="{{lang_delete}}"><span class="glyphicon glyphicon-trash"></span></button>
</td>
</tr>
{{/modules}}