summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics_reporting/templates
diff options
context:
space:
mode:
authorUdo Walter2017-01-16 18:59:46 +0100
committerUdo Walter2017-01-16 18:59:46 +0100
commit9cd078d34d5f3172e8e770fce3c3ec7d6445a460 (patch)
treeeb549108705ae18d9c7000a5116ef8a8e0bd420f /modules-available/statistics_reporting/templates
parent[statistics_reporting] improved anonymization (diff)
downloadslx-admin-9cd078d34d5f3172e8e770fce3c3ec7d6445a460.tar.gz
slx-admin-9cd078d34d5f3172e8e770fce3c3ec7d6445a460.tar.xz
slx-admin-9cd078d34d5f3172e8e770fce3c3ec7d6445a460.zip
[statistics_reporting] added ui to disable the reporting
Diffstat (limited to 'modules-available/statistics_reporting/templates')
-rw-r--r--modules-available/statistics_reporting/templates/columnChooser.html46
1 files changed, 45 insertions, 1 deletions
diff --git a/modules-available/statistics_reporting/templates/columnChooser.html b/modules-available/statistics_reporting/templates/columnChooser.html
index 09551fc1..47fef2a5 100644
--- a/modules-available/statistics_reporting/templates/columnChooser.html
+++ b/modules-available/statistics_reporting/templates/columnChooser.html
@@ -22,6 +22,7 @@
<div id="upper-handle" class="ui-slider-handle"></div>
</div>
<button id="applybound" type="button" class="btn btn-sm btn-primary" onclick="reloadPage()">{{lang_apply}}</button>
+ <button id="button-settings" type="button" class="pull-right btn btn-default" data-toggle="modal" data-target="#modal-settings" onclick="loadSettings()"><span class="glyphicon glyphicon-cog"></span></button>
</div>
<div class="col-md-12 buttonbar">
<button id="button-location" type="button" class="column-toggle btn btn-primary" onclick="toggleButton('location')">{{lang_location}}</button>
@@ -37,6 +38,30 @@
</div>
</div>
+
+<div id="modal-settings" class="modal fade" role="dialog">
+ <div class="modal-dialog">
+
+ <!-- Modal content-->
+ <div class="modal-content">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal">&times;</button>
+ <h4 class="modal-title"><b>Settings</b></h4>
+ </div>
+ <div class="modal-body">
+ <label class="checkbox-inline" style="padding-left: 40px">
+ <input id="checkbox-reporting" type="checkbox" value="" style="margin-top: 0; margin-left: -30px">
+ {{lang_reportingDescription}}
+ </label>
+ </div>
+ <div class="modal-footer">
+ <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="saveSettings()">{{lang_save}}</button>
+ </div>
+ </div>
+
+ </div>
+</div>
+
<script type="application/javascript">
document.addEventListener("DOMContentLoaded", function () {
var lowerHandle = $("#lower-handle");
@@ -87,7 +112,7 @@
$("tr").removeAttr('style');
$("[id^=table-]").hide();
$('#table-'+v).show();
- $("[id^=button-]").hide();
+ $('.buttonbar').find("[id^=button-]").hide();
var re = /column-(\w+)/g;
var match;
while (match = re.exec($('thead', '#table-'+v).html())) {
@@ -149,4 +174,23 @@
}
return(false);
}
+
+ function loadSettings() {
+ $.ajax({
+ url: '?do=statistics_reporting',
+ type: 'GET',
+ data: { action: "getReporting"},
+ success: function(value) {
+ $("#checkbox-reporting").prop("checked", value == "on");
+ }
+ });
+ }
+
+ function saveSettings() {
+ $.ajax({
+ url: '?do=statistics_reporting',
+ type: 'GET',
+ data: { action: "setReporting", reporting: $("#checkbox-reporting").is(":checked") ? "on" : "off" }
+ });
+ }
</script> \ No newline at end of file