diff options
author | Simon Rettberg | 2017-02-08 15:44:28 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-02-08 15:44:28 +0100 |
commit | 9f04cb08401e10e4a2df5d0a716bde6138949214 (patch) | |
tree | ad3f25ed62c145fa18bf86e81a5cb82839a37f7a /modules-available/dozmod/templates | |
parent | [render.inc] Add collapse.js (diff) | |
download | slx-admin-9f04cb08401e10e4a2df5d0a716bde6138949214.tar.gz slx-admin-9f04cb08401e10e4a2df5d0a716bde6138949214.tar.xz slx-admin-9f04cb08401e10e4a2df5d0a716bde6138949214.zip |
[dozmod] Add options to enable/disable login by default for new users
Diffstat (limited to 'modules-available/dozmod/templates')
-rw-r--r-- | modules-available/dozmod/templates/runtimeconfig.html | 35 |
1 files changed, 11 insertions, 24 deletions
diff --git a/modules-available/dozmod/templates/runtimeconfig.html b/modules-available/dozmod/templates/runtimeconfig.html index e538dee8..9bdc44b0 100644 --- a/modules-available/dozmod/templates/runtimeconfig.html +++ b/modules-available/dozmod/templates/runtimeconfig.html @@ -91,6 +91,17 @@ </table> </fieldset> + <fieldset> + <h3>{{lang_miscOptions}}</h3> + <div class="checkbox"> + <input type="hidden" name="allowLoginByDefault" value="0"> + <input type="checkbox" name="allowLoginByDefault" value="1" {{allowLoginByDefault}} id ="allowLoginByDefault" class="form-control"> + <label> + {{lang_allowLoginByDefault}} + </label> + <p><i>{{lang_allowLoginDescription}}</i></p> + </div> + </fieldset> <br> <input type="hidden" name="token" value="{{token}}"> @@ -99,27 +110,3 @@ </form> </div> </div> - -<script type="text/javascript"><!-- -function slxTestConfig() { - $('#test-button').prop('disabled', true); - $('#test-spin').css('display', ''); - var str = $('#mailconf').serialize(); - str += '&button=test'; - console.log(str); - $.post('?do=DozMod', str).done(function(data) { - console.log('Success'); - console.log(data); - checkRes(data); - }).fail(function() { - checkRes('DozMod refused the connection'); - }).always(function() { - $('#test-button').prop('disabled', false); - $('#test-spin').css('display', 'none'); - }); - } - - function checkRes(text) { - $('#test-output').css('display', '').text(text); - } -// --> </script> |