diff options
Diffstat (limited to 'modules/dozmod/templates')
| -rw-r--r-- | modules/dozmod/templates/images-delete.html | 57 | ||||
| -rw-r--r-- | modules/dozmod/templates/mailconfig.html | 91 | ||||
| -rw-r--r-- | modules/dozmod/templates/orglist.html | 51 | ||||
| -rw-r--r-- | modules/dozmod/templates/userlist.html | 62 |
4 files changed, 0 insertions, 261 deletions
diff --git a/modules/dozmod/templates/images-delete.html b/modules/dozmod/templates/images-delete.html deleted file mode 100644 index c4cbfd34..00000000 --- a/modules/dozmod/templates/images-delete.html +++ /dev/null @@ -1,57 +0,0 @@ -<h2>{{lang_heading}}</h2> - -<div class="panel panel-default"> - <div class="panel-heading"> - {{lang_subHeading}} - </div> - <div class="panel-body"> - <p>{{lang_description}}</p> - <div class="table-responsive"> - <form id="delform" method="post" action="?do=DozMod" onsubmit="return slxPostdel()"> - <input type="hidden" name="token" value="{{token}}"> - <input type="hidden" name="action" value="delimages"> - <table class="table table-stripped table-condensed"> - <thead> - <tr> - <th>{{lang_image}}</th> - <th>{{lang_version}}</th> - <th>{{lang_owner}}</th> - <th><span class="glyphicon glyphicon-upload" title="{{lang_hasNewer}}"></th> - <th>{{lang_size}}</th> - <th><span class="glyphicon glyphicon-trash" title="{{lang_delete}}"></span></th> - </tr> - </thead> - <tbody> - {{#images}} - <tr> - <td class="text-left slx-nowrap {{name_extra_class}}">{{displayname}}<br><span class="small">{{imageversionid}}</span></td> - <td class="text-left slx-nowrap">{{version}}</td> - <td class="text-left slx-nowrap"><a href="mailto:{{email}}">{{lastname}}, {{firstname}}</a></td> - <td class="text-left slx-nowrap"><span class="glyphicon {{hasNewerClass}}"></span></td> - <td class="text-right slx-nowrap">{{filesize}}</td> - <td><input name="images[{{imageversionid}}]" type="checkbox" checked="checked"></td> - </tr> - {{/images}} - </tbody> - </table> - <button id="delbtn" class="btn btn-danger" type="submit" name="button" value="save">{{lang_delButton}}</button> - </form> - <pre style="display:none" id="deloutput"></pre> - </div> - </div> -</div> - -<script type="text/javascript"><!-- - -function slxPostdel() { - var f = $('#delform'); - $('#delbtn').prop('disabled', true); - $.post('?do=DozMod', f.serialize()).done(function (data) { - $('#deloutput').text(data).css('display', ''); - }).fail(function () { - $('#deloutput').text('ERROR').css('display', ''); - }); - return false; -} - ---> </script>
\ No newline at end of file diff --git a/modules/dozmod/templates/mailconfig.html b/modules/dozmod/templates/mailconfig.html deleted file mode 100644 index b19776c0..00000000 --- a/modules/dozmod/templates/mailconfig.html +++ /dev/null @@ -1,91 +0,0 @@ -<h2>{{lang_mailConfigHeadline}}</h2> - -<div class="panel panel-default"> - <div class="panel-heading"> - {{lang_mailConfig}} - </div> - <div class="panel-body"> - <p>{{lang_mailDescription}}</p> - <p>[BETA] Diese Funktionalität ist neu. Wir bitten um Nachsicht, falls es Situationen gibt, in denen zu viele - oder zu wenige Nachrichten verschickt werden.</p> - <form action="?do=DozMod" method="post" id="mailconf"> - <input type="text" name="prevent_autofill" id="prevent_autofill" value="" style="display:none;"> - <input type="password" name="password_fake" id="password_fake" value="" style="display:none;"> - <div class="input-group"> - <label class="input-group-addon slx-ga2" for="host-id">{{lang_host}} *</label> - <input type="text" name="host" id ="host-id" class="form-control" placeholder="smtp.example.com" value="{{host}}"> - </div> - <div class="input-group"> - <label class="input-group-addon slx-ga2" for="port-id">{{lang_port}} *</label> - <input type="text" name="port" id ="port-id" class="form-control" placeholder="465" value="{{port}}"> - </div> - <div class="input-group"> - <label class="input-group-addon slx-ga2" for="ssl-id">{{lang_ssl}} *</label> - <select class="form-control" name="ssl" id="ssl-id"> - <option value="NONE" {{set_NONE}}>{{lang_sslNone}}</option> - <option value="IMPLICIT" {{set_IMPLICIT}}>{{lang_sslImplicit}}</option> - <option value="EXPLICIT" {{set_EXPLICIT}}>{{lang_sslExplicit}}</option> - </select> - </div> - <div class="input-group"> - <label class="input-group-addon slx-ga2" for="senderAddress-id">{{lang_senderAddress}} *</label> - <input type="text" name="senderAddress" id ="senderAddress-id" class="form-control" placeholder="smtp-username@hs-example.com" value="{{senderAddress}}"> - </div> - <div class="input-group"> - <label class="input-group-addon slx-ga2" for="serverName-id">{{lang_senderName}}</label> - <input type="text" name="serverName" id ="serverName-id" class="form-control" placeholder="bwLehrpool HS Example" value="{{serverName}}"> - </div> - <div class="input-group"> - <label class="input-group-addon slx-ga2" for="replyTo-id">{{lang_replyTo}}</label> - <input type="text" name="replyTo" id ="replyTo-id" class="form-control" placeholder="helpdesk@hs-example.com" value="{{replyTo}}"> - </div> - <div class="input-group"> - <label class="input-group-addon slx-ga2" for="username-id">{{lang_username}}</label> - <input type="text" name="username" id ="username-id" class="form-control" placeholder="smtp-username" value="{{username}}"> - </div> - <div class="input-group"> - <label class="input-group-addon slx-ga2" for="password-id">{{lang_password}}</label> - <input type="{{password_type}}" name="password" id ="password-id" class="form-control" placeholder="geheim" value="{{password}}"> - </div> - <p>{{lang_asteriskRequired}}</p> - <br> - <p>{{lang_testConfiguration}}</p> - <div class="input-group"> - <label class="input-group-addon slx-ga2" for="test-id">{{lang_testRecipient}}</label> - <input type="text" name="recipient" id ="test-id" class="form-control" placeholder="test@example.com" value=""> - </div> - <br> - <button class="btn btn-primary btn-sm" type="button" id="test-button" name="button" value="test" onclick="slxTestConfig()">{{lang_test}}</button> - <span id="test-spin" style="display:none"><span class="glyphicon glyphicon-refresh slx-rotation"></span></span> - <pre id="test-output" style="display:none"></pre> - <button class="btn btn-primary btn-sm" type="submit" name="button" value="save">{{lang_save}}</button> - <br> - <input type="hidden" name="token" value="{{token}}"> - <input type="hidden" name="action" value="mail"> - </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>
\ No newline at end of file diff --git a/modules/dozmod/templates/orglist.html b/modules/dozmod/templates/orglist.html deleted file mode 100644 index d325cc4d..00000000 --- a/modules/dozmod/templates/orglist.html +++ /dev/null @@ -1,51 +0,0 @@ -<h2>{{lang_organizationList}}</h2> - -<div class="panel panel-default"> - <div class="panel-heading"> - {{lang_organizationListHeader}} - </div> - <div class="panel-body"> - <div class="table-responsive"> - <table class="table table-stripped table-condensed"> - <thead> - <tr> - <th>{{lang_organization}}</th> - <th><span class="glyphicon glyphicon-ok" title="{{lang_canLogin}}"></span></th> - </tr> - </thead> - <tbody> - {{#organizations}} - <tr> - <td class="text-left slx-nowrap">{{displayname}}</td> - <td><input onclick="seto('setorglogin', this, '{{organizationid}}')" type="checkbox" {{{canlogin}}}></td> - </tr> - {{/organizations}} - </tbody> - </table> - </div> - </div> -</div> - -<script type="text/javascript"><!-- - -function seto(action, el, orgid) { - 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, organizationid: orgid, 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 diff --git a/modules/dozmod/templates/userlist.html b/modules/dozmod/templates/userlist.html deleted file mode 100644 index a76eae5e..00000000 --- a/modules/dozmod/templates/userlist.html +++ /dev/null @@ -1,62 +0,0 @@ -<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 |
