diff options
Diffstat (limited to 'modules-available/locationinfo/templates/credentials.html')
-rw-r--r-- | modules-available/locationinfo/templates/credentials.html | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/modules-available/locationinfo/templates/credentials.html b/modules-available/locationinfo/templates/credentials.html index 70e96982..f8c04bcb 100644 --- a/modules-available/locationinfo/templates/credentials.html +++ b/modules-available/locationinfo/templates/credentials.html @@ -1,31 +1,31 @@ <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> + <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>\ + // {{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}} + } + {{/credentials}} </script> |