summaryrefslogtreecommitdiffstats
path: root/templates/sysconfig
diff options
context:
space:
mode:
authorSimon Rettberg2014-05-23 20:49:02 +0200
committerSimon Rettberg2014-05-23 20:49:02 +0200
commitfe6ac16498b05d0f0c8ed7fda394273815d3d6da (patch)
treecadf5f103ef3db7ba1b40d59d85937c998aad22f /templates/sysconfig
parentServer Setup page (diff)
downloadslx-admin-fe6ac16498b05d0f0c8ed7fda394273815d3d6da.tar.gz
slx-admin-fe6ac16498b05d0f0c8ed7fda394273815d3d6da.tar.xz
slx-admin-fe6ac16498b05d0f0c8ed7fda394273815d3d6da.zip
Stuff (WIP)
Diffstat (limited to 'templates/sysconfig')
-rw-r--r--templates/sysconfig/ad-finish.html4
-rw-r--r--templates/sysconfig/cfg-finish.html12
-rw-r--r--templates/sysconfig/cfg-start.html35
-rw-r--r--templates/sysconfig/custom-fileselect.html4
-rw-r--r--templates/sysconfig/custom-upload.html1
5 files changed, 52 insertions, 4 deletions
diff --git a/templates/sysconfig/ad-finish.html b/templates/sysconfig/ad-finish.html
index f20a2ce1..e79e4262 100644
--- a/templates/sysconfig/ad-finish.html
+++ b/templates/sysconfig/ad-finish.html
@@ -3,8 +3,8 @@
</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 data-tm-id="{{tm-config}}" data-tm-log="error">Konfiguration erzeugen</div>
+ <div data-tm-id="{{tm-ldadp}}" data-tm-log="error" data-tm-callback="ldapCb">ldadp starten</div>
</div>
<br>
<div id="back" class="pull-left" style="display:none">
diff --git a/templates/sysconfig/cfg-finish.html b/templates/sysconfig/cfg-finish.html
new file mode 100644
index 00000000..2bf63420
--- /dev/null
+++ b/templates/sysconfig/cfg-finish.html
@@ -0,0 +1,12 @@
+<p>
+ Die Konfiguration wurde erfolgreich erstellt.
+</p>
+
+<form role="form" method="post" action="?do=SysConfig">
+ <input type="hidden" name="token" value="{{token}}">
+ <input type="hidden" name="action" value="config">
+ <input type="hidden" name="activate" value="{{configid}}">
+ <div class="pull-left">
+ <button type="submit" class="btn btn-primary">Konfiguration aktivieren</button>
+ </div>
+</form>
diff --git a/templates/sysconfig/cfg-start.html b/templates/sysconfig/cfg-start.html
new file mode 100644
index 00000000..b6eaf9c9
--- /dev/null
+++ b/templates/sysconfig/cfg-start.html
@@ -0,0 +1,35 @@
+<form role="form" method="post" action="?do=SysConfig&amp;action=addconfig&amp;step={{step}}">
+ <input type="hidden" name="token" value="{{token}}">
+ <div class="input-group">
+ <span class="input-group-addon">Name</span>
+ <input type="text" name="title" class="form-control" placeholder="Meine Konfiguration" autofocus="autofocus">
+ </div>
+ <hr>
+ <p>Bitte wählen Sie, welche Module für diese Konfiguration verwendet werden sollen.</p>
+ {{#groups}}
+ <div class="panel panel-default">
+ <div class="slx-litehead">{{group}}</div>
+ <div class="panel-body">
+ {{#modules}}
+ <div class="input-group">
+ <span class="input-group-addon">
+ {{#unique}}
+ <input type="radio" name="module[{{groupid}}]" value="{{moduleid}}">
+ {{/unique}}
+ {{^unique}}
+ <input type="checkbox" name="module[{{moduleid}}]" value="{{moduleid}}">
+ {{/unique}}
+ </span>
+ <span class="form-control">{{title}}</span>
+ {{#missing}}
+ <span class="input-group-addon" title="Modul beschädigt! Bitte neu generieren."><span class="red glyphicon glyphicon-exclamation-sign"></span></span>
+ {{/missing}}
+ </div>
+ {{/modules}}
+ </div>
+ </div>
+ {{/groups}}
+ <div class="pull-right">
+ <button type="submit" class="btn btn-primary">Weiter &raquo;</button>
+ </div>
+</form>
diff --git a/templates/sysconfig/custom-fileselect.html b/templates/sysconfig/custom-fileselect.html
index 5a0a26f3..21537c49 100644
--- a/templates/sysconfig/custom-fileselect.html
+++ b/templates/sysconfig/custom-fileselect.html
@@ -1,12 +1,12 @@
<form role="form" method="post" action="?do=SysConfig&amp;action=addmodule&amp;step={{step}}">
<input type="hidden" name="modid" value="{{modid}}">
+ <input type="hidden" name="token" value="{{token}}">
<div class="input-group">
<span class="input-group-addon">Modulname</span>
<input type="text" name="title" class="form-control" placeholder="Mein Konfigurationsmodul" autofocus="autofocus">
</div>
<hr>
- <p>Hier haben Sie die Möglichkeit, den Inhalt des Archivs noch einmal zu überprüfen, und
- die Liste der zu übernehmenden Dateien bei Bedarf noch einschränken.</p>
+ <p>Hier haben Sie die Möglichkeit, den Inhalt des Archivs noch einmal zu überprüfen.</p>
<table class="table table-bordered table-condensed">
{{#files}}
<tr>
diff --git a/templates/sysconfig/custom-upload.html b/templates/sysconfig/custom-upload.html
index c5a43522..1f312009 100644
--- a/templates/sysconfig/custom-upload.html
+++ b/templates/sysconfig/custom-upload.html
@@ -7,6 +7,7 @@
so wird auf einem gebooteten Client diese Datei als <strong>/etc/beispiel.conf</strong> zu finden sein.</p>
<form role="form" enctype="multipart/form-data" 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">Archiv</span>
<input class="form-control" type="file" name="modulefile">