diff options
author | Christian Hofmaier | 2017-11-30 16:35:04 +0100 |
---|---|---|
committer | Christian Hofmaier | 2017-11-30 16:35:04 +0100 |
commit | 9d9bb6390020c3cb138b9c62a8acd1fd8e274c6b (patch) | |
tree | 5137e6e2875704969784b7db53ed2d2457e33799 /modules-available/statistics_reporting/templates | |
parent | [news] reworked permission system from "click and you get error" to "button i... (diff) | |
download | slx-admin-9d9bb6390020c3cb138b9c62a8acd1fd8e274c6b.tar.gz slx-admin-9d9bb6390020c3cb138b9c62a8acd1fd8e274c6b.tar.xz slx-admin-9d9bb6390020c3cb138b9c62a8acd1fd8e274c6b.zip |
[statistics_reporting] reworked permission system from "click and you get error" to "button is disabled due to lack of permission"
Diffstat (limited to 'modules-available/statistics_reporting/templates')
-rw-r--r-- | modules-available/statistics_reporting/templates/columnChooser.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules-available/statistics_reporting/templates/columnChooser.html b/modules-available/statistics_reporting/templates/columnChooser.html index 0059e681..a6561c47 100644 --- a/modules-available/statistics_reporting/templates/columnChooser.html +++ b/modules-available/statistics_reporting/templates/columnChooser.html @@ -15,7 +15,7 @@ <div class="col-md-2"> <select name="type" id="select-table" class="form-control"> {{#tables}} - <option value="{{value}}" {{selected}}>{{name}}</option> + <option {{^allowed}}disabled{{/allowed}} value="{{value}}" {{selected}}>{{name}}</option> {{/tables}} </select> </div> @@ -45,7 +45,7 @@ <option value="xml">XML</option> </select> <div class="input-group-btn"> - <button type="submit" class="btn btn-default" name="action" value="export">{{lang_export}}</button> + <button {{^allowedExport}}disabled {{/allowedExport}} type="submit" class="btn btn-default" name="action" value="export">{{lang_export}}</button> </div> </div> </div> @@ -86,18 +86,18 @@ </div> <div class="modal-body"> <div class="checkbox"> - <input id="checkbox-reporting" type="checkbox" value="on" {{reportChecked}}> - <label for="checkbox-reporting" style="padding-left: 40px">{{lang_reportingLabel}}</label> + <input {{^allowedReportChange}}disabled {{/allowedReportChange}} id="checkbox-reporting" type="checkbox" value="on" {{reportChecked}}> + <label for="checkbox-reporting" style="padding-left: 20px">{{lang_reportingLabel}}</label> </div> <div> <p>{{lang_reportingDescription}}</p> <p><a href="https://www.bwlehrpool.de/doku.php/satellite/statistics_reporting" target="_blank">{{lang_reportMoreInfo}}</a></p> - <a class="btn btn-success" href="?do=statistics_reporting&action=getreport">{{lang_downloadReport}}</a> </div> </div> <div class="modal-footer"> + <button {{^allowedDownload}}disabled {{/allowedDownload}} class="btn btn-warning pull-left" onclick="window.location.href='?do=statistics_reporting&action=getreport'">{{lang_downloadReport}}</button> <button type="button" class="btn btn-default" data-dismiss="modal">{{lang_cancel}}</button> - <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="saveSettings()">{{lang_save}}</button> + <button {{^allowedReportChange}}disabled {{/allowedReportChange}} type="button" class="btn btn-primary" data-dismiss="modal" onclick="saveSettings()">{{lang_save}}</button> </div> </div> |