summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSimon Rettberg2014-05-20 19:20:02 +0200
committerSimon Rettberg2014-05-20 19:20:02 +0200
commit4a8725b8dcac3bd0e7afe463968d281e4cf8df6c (patch)
tree8d1374edd2a1e74ed3a99813210ca84e999fb82c /templates
parentOO style modules (diff)
downloadslx-admin-4a8725b8dcac3bd0e7afe463968d281e4cf8df6c.tar.gz
slx-admin-4a8725b8dcac3bd0e7afe463968d281e4cf8df6c.tar.xz
slx-admin-4a8725b8dcac3bd0e7afe463968d281e4cf8df6c.zip
JS Stuff for Taskmanager interaction
More work on AD wizard
Diffstat (limited to 'templates')
-rw-r--r--templates/sysconfig/ad-checkconnection.html42
-rw-r--r--templates/sysconfig/ad-finish.html28
-rw-r--r--templates/sysconfig/ad-start.html1
3 files changed, 71 insertions, 0 deletions
diff --git a/templates/sysconfig/ad-checkconnection.html b/templates/sysconfig/ad-checkconnection.html
new file mode 100644
index 00000000..91b5881e
--- /dev/null
+++ b/templates/sysconfig/ad-checkconnection.html
@@ -0,0 +1,42 @@
+<p>
+ Die Verbindung zum angegebenen AD-Server wird nun überprüft. Bitte haben Sie einen Moment Geduld.
+</p>
+
+<div id="zeug">
+ <div data-tm-id="{{tm-search}}" data-tm-progress="progress">LDAP Test-Query</div>
+ <div data-tm-id="{{tm-dummy}}" data-tm-progress="progress" data-tm-callback="ldapCb">Dummy</div>
+</div>
+<br>
+<div class="pull-left">
+ <form role="form" method="post" action="?do=SysConfig&amp;action=addmodule&amp;step=AdModule_Start">
+ <input type="hidden" name="token" value="{{token}}">
+ <input name="server" value="{{server}}" type="hidden">
+ <input name="searchbase" value="{{searchbase}}" type="hidden">
+ <input name="binddn" value="{{binddn}}" type="hidden">
+ <input name="bindpw" value="{{bindpw}}" type="hidden">
+ <button type="submit" class="btn btn-primary">&laquo; Zurück</button>
+ </form>
+</div>
+<div class="pull-right">
+ <form role="form" method="post" action="?do=SysConfig&amp;action=addmodule&amp;step={{step}}">
+ <input type="hidden" name="token" value="{{token}}">
+ <input name="server" value="{{server}}" type="hidden">
+ <input name="searchbase" value="{{searchbase}}" type="hidden">
+ <input name="binddn" value="{{binddn}}" type="hidden">
+ <input name="bindpw" value="{{bindpw}}" type="hidden">
+ <button id="nextbutton" type="submit" class="btn btn-primary">Überspringen &raquo;</button>
+ </form>
+</div>
+<script type="text/javascript">
+function ldapCb(task)
+{
+ if (!task || !task.statusCode)
+ return;
+ if (task.statusCode === 'TASK_FINISHED') {
+ $('#nextbutton').html('Weiter &raquo;');
+ }
+ if (task.statusCode === 'TASK_ERROR' || task.statusCode === 'PARENT_FAILED') {
+ $('#nextbutton').html('Trotzdem weiter &raquo;');
+ }
+}
+</script>
diff --git a/templates/sysconfig/ad-finish.html b/templates/sysconfig/ad-finish.html
new file mode 100644
index 00000000..f20a2ce1
--- /dev/null
+++ b/templates/sysconfig/ad-finish.html
@@ -0,0 +1,28 @@
+<p>
+ Der AD-Proxy wird nun konfiguriert und gestartet...
+</p>
+
+<div id="zeug">
+ <div data-tm-id="{{tm-tgz}}" data-tm-log="message">Konfiguration erzeugen</div>
+ <div data-tm-id="{{tm-ldadp}}" data-tm-log="message" data-tm-callback="ldapCb">ldadp starten</div>
+</div>
+<br>
+<div id="back" class="pull-left" style="display:none">
+ <a href="?do=SysConfig&amp;action=addmodule&amp;step=AdModule_Start" class="btn btn-primary">Assistent neustarten</a>
+</div>
+<div id="finish" class="pull-right" style="display:none">
+ <a href="?do=SysConfig" class="btn btn-primary">Zur Systemkonfiguration</a>
+</div>
+<script type="text/javascript">
+function ldapCb(task)
+{
+ if (!task || !task.statusCode)
+ return;
+ if (task.statusCode === 'TASK_FINISHED') {
+ $('#finish').attr('style', '');
+ }
+ if (task.statusCode === 'TASK_ERROR' || task.statusCode === 'PARENT_FAILED') {
+ $('#back').attr('style', '');
+ }
+}
+</script>
diff --git a/templates/sysconfig/ad-start.html b/templates/sysconfig/ad-start.html
index 0ce4bbf3..f3d8235a 100644
--- a/templates/sysconfig/ad-start.html
+++ b/templates/sysconfig/ad-start.html
@@ -16,6 +16,7 @@
</p>
<form role="form" method="post" action="?do=SysConfig&amp;action=addmodule&amp;step={{step}}">
+ <input type="hidden" name="token" value="{{token}}">
<div class="input-group">
<span class="input-group-addon slx-ga">Server</span>
<input name="server" value="{{server}}" type="text" class="form-control" placeholder="dc0.institution.example.com">