diff options
author | Simon Rettberg | 2014-05-15 18:28:24 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-05-15 18:28:24 +0200 |
commit | 63c0cf521f8097b0dadaf1228176dc38c7d897f6 (patch) | |
tree | 83f5da6dc130ac7db575b0eee41ed6c7a2f994fb /templates | |
parent | Fix handle leak in downloading, better error reporting on failed downloads, a... (diff) | |
download | slx-admin-63c0cf521f8097b0dadaf1228176dc38c7d897f6.tar.gz slx-admin-63c0cf521f8097b0dadaf1228176dc38c7d897f6.tar.xz slx-admin-63c0cf521f8097b0dadaf1228176dc38c7d897f6.zip |
Working on config.tgz composition through config modules
Diffstat (limited to 'templates')
-rw-r--r-- | templates/dialog-generic.html | 15 | ||||
-rw-r--r-- | templates/page-sysconfig-main.html | 86 | ||||
-rw-r--r-- | templates/page-tgz-list.html | 33 | ||||
-rw-r--r-- | templates/sysconfig/custom-fileselect.html | 26 | ||||
-rw-r--r-- | templates/sysconfig/custom-upload.html | 16 |
5 files changed, 143 insertions, 33 deletions
diff --git a/templates/dialog-generic.html b/templates/dialog-generic.html new file mode 100644 index 00000000..5e875e8b --- /dev/null +++ b/templates/dialog-generic.html @@ -0,0 +1,15 @@ +<div class="container"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <h4 class="modal-title">{{title}}</h4> + </div> + <div class="modal-body"> + {{{body}}} + </div> + <div class="modal-footer"> + {{#next}}<a class="btn btn-primary" href="{{next}}">Weiter »</a>{{/next}} + </div> + </div> + </div> +</div>
\ No newline at end of file diff --git a/templates/page-sysconfig-main.html b/templates/page-sysconfig-main.html new file mode 100644 index 00000000..c160fd0b --- /dev/null +++ b/templates/page-sysconfig-main.html @@ -0,0 +1,86 @@ +<ol class="breadcrumb"> + <li><a href="?do=main">Start</a></li> + <li class="active">SystemKonfiguration</li> +</ol> +<div class="container"> + <div class="panel panel-default"> + <div class="panel-heading"> + Verfügbare Systemkonfigurationen + <a class="btn btn-default" data-toggle="modal" data-target="#help-config"><span class="glyphicon glyphicon-question-sign"></span></a> + </div> + <table class="table table-condensed"> + {{#files}} + <tr> + <td class=col-md-8">{{file}}</td> + <td class="col-md-4"> + {{^current}} + <a class="btn btn-primary" href="?do=sysconfig&action=activate&file={{file}}&token={{token}}">Aktivieren</a> + {{/current}} + {{#current}} + <span class="btn btn-success">Bereits aktiv</span> + {{/current}} + </td> + </tr> + {{/files}} + </table> + {{^files}} + <div class="alert alert-warning">Keine Systemkonfigurationen gefunden!</div> + {{/files}} + <div class="panel-body"> + <a class="btn btn-primary">Neue Konfiguration zusammenstellen</a> + </div> + </div> + <div class="panel panel-default"> + <div class="panel-heading"> + Verfügbare Konfigurationsmodule + <a class="btn btn-default" data-toggle="modal" data-target="#help-module"><span class="glyphicon glyphicon-question-sign"></span></a> + </div> + <table class="table table-condensed"> + {{#modules}} + <tr> + <td>{{module}}</td> + <td nowrap> + <a class="btn btn-default btn-xs">Bearbeiten</a> + <a class="btn btn-danger btn-xs">Löschen</a> + </td> + </tr> + {{/modules}} + </table> + {{^modules}} + <div class="alert alert-warning">Keine Konfigurationsmodule gefunden!</div> + {{/modules}} + <div class="panel-body"> + <a class="btn btn-primary" href="?do=sysconfig&action=addmodule">Neues Modul erstellen</a> + </div> + </div> +</div> + +<div class="modal fade" id="help-config" tabindex="-1" role="dialog"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header">Systemkonfiguration</div> + <div class="modal-body"> + Über eine Systemkonfiguration wird die grundlegende Lokalisierung des bwLehrpool-Systems + durchgeführt. Dazu gehören Aspekte wie das Authentifizierungsverfahren für Benutzer + (z.B. Active Directory, LDAP), Druckerkonfiguration, Home-Verzeichnisse, etc.<br> + Eine Systemkonfiguration setzt sich aus einem oder mehreren Konfigurationsmodulen zusammen, + welche im unteren Bereich dieser Seite verwaltet werden können. + </div> + <div class="modal-footer"><a class="btn btn-primary" data-dismiss="modal">Schließen</a></div> + </div> + </div> +</div> + +<div class="modal fade" id="help-module" tabindex="-1" role="dialog"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header">Konfigurationsmodule</div> + <div class="modal-body"> + Konfigurationsmodule sind die Bausteine, aus denen eine Systemkonfiguration erstellt wird. + Hier lassen sich sowohl generische Module durch einen Wizard anlegen, als auch komplett eigene + Module erstellen (fortgeschritten, Linuxkenntnisse erforderlich). + </div> + <div class="modal-footer"><a class="btn btn-primary" data-dismiss="modal">Schließen</a></div> + </div> + </div> +</div>
\ No newline at end of file diff --git a/templates/page-tgz-list.html b/templates/page-tgz-list.html deleted file mode 100644 index fdc11933..00000000 --- a/templates/page-tgz-list.html +++ /dev/null @@ -1,33 +0,0 @@ -<ol class="breadcrumb"> - <li><a href="?do=main">Start</a></li> - <li class="active">SystemKonfiguration</li> -</ol> -<div class="container"> - {{#files}} - <div class="row well well-sm"> - {{file}} - {{^current}} - <a class="btn btn-primary" href="?do=sysconfig&action=activate&file={{file}}&token={{token}}">Aktivieren</a> - {{/current}} - {{#current}} - <span class="btn btn-success">Bereits aktiv</span> - {{/current}} - </div> - {{/files}} - {{^files}} - <div class="row well well-sm">Keine Konfigurationspakete gefunden!</div> - {{/files}} - <a class="btn btn-md btn-primary" href="?do=sysconfig&action=remotelist">Konfigurationsvolagen</a> - <a class="btn btn-md btn-primary" href="#" data-toggle="collapse" data-target="#uploadform">Eigene Konfiguration hochladen</a> - <a class="btn btn-md btn-primary" href="/boot/default/config.tgz">Aktive Konfiguration herunterladen</a> - <div class="collapse" id="uploadform"> - <div class="well well-sm" style="margin: 5px 0px"> - <form method="post" action="?do=sysconfig" enctype="multipart/form-data"> - <input type="file" size="40" class="form-control" name="customtgz"> - <input type="hidden" name="action" value="upload"> - <input type="hidden" name="token" value="{{token}}"> - <button class="btn btn-primary form-control-addon" type="submit">Hochladen</button> - </form> - </div> - </div> -</div> diff --git a/templates/sysconfig/custom-fileselect.html b/templates/sysconfig/custom-fileselect.html new file mode 100644 index 00000000..c61edc7f --- /dev/null +++ b/templates/sysconfig/custom-fileselect.html @@ -0,0 +1,26 @@ +<form role="form" method="post" action="?do=sysconfig&action=addmodule&step={{step}}"> + <input type="hidden" name="modid" value="{{modid}}"> + <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> + <table class="table table-bordered table-condensed"> + {{#files}} + <tr> + {{#isdir}} + <td class="fileEntry isdir" colspan="2">{{name}}</td> + {{/isdir}} + {{^isdir}} + <td class="fileEntry">{{name}}</td> + <td>{{size}}</td> + {{/isdir}} + </tr> + {{/files}} + </table> + <div class="pull-right"> + <button type="submit" class="btn btn-primary">Weiter »</button> + </div> +</form> diff --git a/templates/sysconfig/custom-upload.html b/templates/sysconfig/custom-upload.html new file mode 100644 index 00000000..2c0ff723 --- /dev/null +++ b/templates/sysconfig/custom-upload.html @@ -0,0 +1,16 @@ +<p>Über ein benutzerdefiniertes Modul ist es möglich, beliebige Dateien + zum Linux-Grundsystem, das auf den Clients gebootet wird, hinzuzufügen. + Dazu kann ein Archiv mit einer Dateisystemstruktur hochgeladen werden, die + in dieser Form 1:1 in das gebootete Linux extrahiert wird.</p> + +<p>Beispiel: Enthält das hochgeladene Archiv eine Datei <strong>etc/beispiel.conf</strong>, + 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&action=addmodule&step={{step}}"> + <div class="input-group"> + <span class="input-group-addon">Archiv</span> + <input class="form-control" type="file" name="modulefile"> + </div> + <p class="help-block">Unterstützte Archivformate: .tar.gz, .tar.bz2, .zip</p> + <button type="submit" class="btn btn-primary">Hochladen</button> +</form>
\ No newline at end of file |