diff options
author | Jonathan Bauer | 2016-04-01 16:50:13 +0200 |
---|---|---|
committer | Jonathan Bauer | 2016-04-01 16:50:13 +0200 |
commit | dbc0d9614421e064cc62aacf116ebb783c83f2f3 (patch) | |
tree | 091844b8578ff1d9ac18edfd3cee3e63210133d7 /modules/dozmod/templates/userlist.html | |
parent | [ldapauth] Add homedir conf to ldap wizard (diff) | |
download | slx-admin-dbc0d9614421e064cc62aacf116ebb783c83f2f3.tar.gz slx-admin-dbc0d9614421e064cc62aacf116ebb783c83f2f3.tar.xz slx-admin-dbc0d9614421e064cc62aacf116ebb783c83f2f3.zip |
[merge] merging c3sl / fr - initial commit
Diffstat (limited to 'modules/dozmod/templates/userlist.html')
-rw-r--r-- | modules/dozmod/templates/userlist.html | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/modules/dozmod/templates/userlist.html b/modules/dozmod/templates/userlist.html new file mode 100644 index 00000000..a76eae5e --- /dev/null +++ b/modules/dozmod/templates/userlist.html @@ -0,0 +1,62 @@ +<h2>{{lang_userList}}</h2> + +<div class="panel panel-default"> + <div class="panel-heading"> + {{lang_userListHeader}} + </div> + <div class="panel-body"> + <p>{{lang_userListDescription}}</p> + <div class="table-responsive"> + <table class="table table-stripped table-condensed"> + <thead> + <tr> + <th>{{lang_user}}</th> + <th>{{lang_organization}}</th> + <th>{{lang_lastLogin}}</th> + <th>{{lang_email}}</th> + <th><span class="glyphicon glyphicon-envelope" title="{{lang_emailNotifications}}"></span></th> + <th><span class="glyphicon glyphicon-king" title="{{lang_superUser}}"></span></th> + <th><span class="glyphicon glyphicon-ok" title="{{lang_canLogin}}"></span></th> + </tr> + </thead> + <tbody> + {{#users}} + <tr> + <td class="text-left slx-nowrap">{{lastname}}, {{firstname}}</td> + <td class="text-left slx-nowrap">{{orgname}}</td> + <td class="text-left slx-nowrap">{{lastlogin}}</td> + <td class="text-left slx-nowrap"><a href="mailto:{{email}}">{{email}}</a></td> + <td><input onclick="setu('setmail', this, '{{userid}}')" type="checkbox" {{{emailnotifications}}}></td> + <td><input onclick="setu('setsu', this, '{{userid}}')" type="checkbox" {{{issuperuser}}}></td> + <td><input onclick="setu('setlogin', this, '{{userid}}')" type="checkbox" {{{canlogin}}}></td> + </tr> + {{/users}} + </tbody> + </table> + </div> + </div> +</div> + +<script type="text/javascript"><!-- + +function setu(action, el, uid) { + var box = $(el); + var v = el.checked ? '1' : '0'; + var old = el.checked == true; + box.css('display', 'none'); + $.post('?do=DozMod', { token: TOKEN, action: action, userid: uid, value: v }).done(function (data) { + if (data != 1 && data != 0) { + el.checked = !old; + box.parent().css('background-color', 'red !important'); + } else { + el.checked = (data == 1); + } + box.css('display', ''); + }).fail(function() { + el.checked = !old; + box.parent().css('background-color', 'red !important'); + box.css('display', ''); + }); +} + +--> </script>
\ No newline at end of file |