summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/templates/credentials.html
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/locationinfo/templates/credentials.html')
-rw-r--r--modules-available/locationinfo/templates/credentials.html31
1 files changed, 0 insertions, 31 deletions
diff --git a/modules-available/locationinfo/templates/credentials.html b/modules-available/locationinfo/templates/credentials.html
deleted file mode 100644
index f8c04bcb..00000000
--- a/modules-available/locationinfo/templates/credentials.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<div>
- <form method="post" action="?do=locationinfo" id="credentialsForm">
- <input type="hidden" name="token" value="{{token}}">
- <input type="hidden" name="action" value="updateCredentials">
- <input type="hidden" name="id" value="{{id}}">
- <div id="div"></div>
- <button type="submit" class="btn btn-primary">{{lang_save}}</button>
- </form>
-</div>
-<script type="text/javascript">
-
- // {{name}} name of auth {{type}} type of auth (string, int etc.) {{value}} value from the db
- {{#credentials}}
- if ("{{type}}" == "string") {
- $("#div").before('<label>{{name}}</label><br><input required type="text" name="{{name}}" value="{{value}}" form="credentialsForm"><br><br>');
- } else if ("{{type}}" == "int") {
- $("#div").before('<label>{{name}}</label><br><input required type="number" name="{{name}}" value="{{value}}" form="credentialsForm"><br><br>');
- } else if ("{{type}}" == "bool") {
- $("#div").before('<label>{{name}}</label><br><input type="checkbox" name="{{name}}" value="{{value}}" form="credentialsForm"><br><br>');
- } else if ("{{type}}" == "array") {
- $("#div").before('<label>{{name}}</label><br>\
- <select name="{{name}}" form="credentialsForm">\
- {{#array}}\
- <option value="{{option}}" {{#active}}selected{{/active}}>{{option}}</option>\
- {{/array}}\
- </select>\
- <br><br>');
- }
- {{/credentials}}
-
-</script>