diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/download-error.html | 2 | ||||
-rw-r--r-- | templates/download-progress.html | 6 | ||||
-rw-r--r-- | templates/exec-error.html | 1 | ||||
-rw-r--r-- | templates/exec-progress.html | 4 | ||||
-rw-r--r-- | templates/main-menu.html | 7 | ||||
-rw-r--r-- | templates/page-ipxe.html | 17 | ||||
-rw-r--r-- | templates/page-main.html | 9 | ||||
-rw-r--r-- | templates/page-minilinux.html | 24 | ||||
-rw-r--r-- | templates/page-tgz-list.html | 2 | ||||
-rw-r--r-- | templates/txt-ipxeconfig.html | 7 | ||||
-rw-r--r-- | templates/txt-pxeconfig.html | 68 |
11 files changed, 140 insertions, 7 deletions
diff --git a/templates/download-error.html b/templates/download-error.html index ca40acee..70826234 100644 --- a/templates/download-error.html +++ b/templates/download-error.html @@ -1 +1 @@ -<div class="alert alert-danger">Downloading {{file}} from {{remote}} failed! ({{code}})</div> +<div class="alert alert-danger">Downloading {{file}} {{#remote}} from {{remote}} {{/remote}} failed! ({{code}})</div> diff --git a/templates/download-progress.html b/templates/download-progress.html new file mode 100644 index 00000000..81b31901 --- /dev/null +++ b/templates/download-progress.html @@ -0,0 +1,6 @@ +<div class="progress progress-striped active"> + <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="{{percent}}" aria-valuemin="0" aria-valuemax="100" style="width: {{percent}}%"> + <span class="sr-only">{{percent}}% Complete</span> + </div> + <script> setTimeout(function() { $('#{{id}}').load('api.php?do=download&progress={{progress}}&file={{file}}&id={{id}}&pid={{pid}}'); }, 2000); // </script> +</div> diff --git a/templates/exec-error.html b/templates/exec-error.html new file mode 100644 index 00000000..0a82e1df --- /dev/null +++ b/templates/exec-error.html @@ -0,0 +1 @@ +<div class="alert alert-danger"><p>Ausführung fehlgeschlagen!</p>{{error}}</div> diff --git a/templates/exec-progress.html b/templates/exec-progress.html new file mode 100644 index 00000000..0583a74a --- /dev/null +++ b/templates/exec-progress.html @@ -0,0 +1,4 @@ +<div class="well well-sm"> + <pre>{{text}}</pre> + {{#running}}<script> setTimeout(function() { $('#{{id}}').load('api.php?do=exec&progress={{progress}}&id={{id}}&pid={{pid}}'); }, 2000); // </script>{{/running}} +</div> diff --git a/templates/main-menu.html b/templates/main-menu.html index 021daf6d..799d92be 100644 --- a/templates/main-menu.html +++ b/templates/main-menu.html @@ -7,7 +7,7 @@ <span class="icon-bar"></span> <span class="icon-bar"></span> </button> - <a class="navbar-brand" href="#">OpenSLX Admin</a> + <a class="navbar-brand" href="?do=main">OpenSLX Admin</a> </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> @@ -16,8 +16,9 @@ <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Einstellungen<b class="caret"></b></a> <ul class="dropdown-menu"> - <li><a href="?do=baseconfig">Basis</a></li> - <li><a href="?do=sysconfig">System</a></li> + <li><a href="?do=minilinux">MiniLinux</a></li> + <li><a href="?do=baseconfig">KonfigurationsVariablen</a></li> + <li><a href="?do=sysconfig">SystemKonfiguration</a></li> <li><a href="?do=printconfig">Drucken</a></li> <li class="divider"></li> <li class="dropdown-header">Nav header</li> diff --git a/templates/page-ipxe.html b/templates/page-ipxe.html new file mode 100644 index 00000000..7910c5af --- /dev/null +++ b/templates/page-ipxe.html @@ -0,0 +1,17 @@ +<div class="container"> + <div class="panel panel-default"> + <div class="panel-heading"> + Bitte die IP-Adresse auswählen, über die der Server von den Clients angesprochen wird. + </div> + {{#ips}} + <div class="panel-body">{{ip}} + <a class="btn btn-success" href="#" onclick="this.style.display='none';loadContent('#compiler', 'api.php?do=exec&type=ipxe&ip={{ip}}&id=compiler')">Kompilieren</a>{{#current}} (Aktuelle Konfiguration){{/current}} + </div> + {{/ips}} + </div> + <div id="compiler"> + </div> + {{^ips}} + <div class="alert alert-danger">Konnte lokale IP-Adressen nicht ermitteln.</div> + {{/ips}} +</div> diff --git a/templates/page-main.html b/templates/page-main.html index 7ccf43eb..25f6cea6 100644 --- a/templates/page-main.html +++ b/templates/page-main.html @@ -1,6 +1,11 @@ <div class="jumbotron"> <h1>Willkommen, {{user}}</h1> - <p>Du hast es geschafft, dich einzuloggen. Starker Typ!</p> - <p>Du bist der Beste! Du bist der Größte! Ein Hoch auf {{user}}!</p> + <p>Dies ist die bwLehrpool Konfigurationsoberfläche, {{user}}</p> + {{#ipxe}} + <div class="alert alert-warning"> + <p>Das iPXE-Modul des Servers ist veraltet oder nicht vorhanden.</p> + <a class="btn btn-large btn-primary" href="?do=ipxe">iPXE compilieren</a> + </div> + {{/ipxe}} </div> diff --git a/templates/page-minilinux.html b/templates/page-minilinux.html new file mode 100644 index 00000000..e742f82a --- /dev/null +++ b/templates/page-minilinux.html @@ -0,0 +1,24 @@ +<div class="container"> + {{#files}} + <div class="panel panel-default"> + <div class="panel-heading"><h4> + » {{file}} + {{^progress}} + {{#update}} + Neue Version! <a class="btn btn-success" href="#" onclick="this.style.display='none';loadContent('#{{id}}', 'api.php?do=download&type=ml&file={{file}}&id={{id}}')">Download</a> + {{/update}} + {{^update}} + (Aktuell) + {{/update}} + {{/progress}} + </h4></div> + {{#progress}} + <script> setTimeout(function() { loadContent('#{{id}}', 'api.php?do=download&progress={{progress}}&id={{id}}&pid={{pid}}&file={{file}}'); }, 1000); // </script> + {{/progress}} + <div class="panel-body" id="{{id}}">{{description}}</div> + </div> + {{/files}} + {{^files}} + <div class="row well well-sm">Keine Konfigurationspakete gefunden!</div> + {{/files}} +</div> diff --git a/templates/page-tgz-list.html b/templates/page-tgz-list.html index 65654766..ac70d510 100644 --- a/templates/page-tgz-list.html +++ b/templates/page-tgz-list.html @@ -1,6 +1,6 @@ <div class="container"> {{#files}} - <div class="row well well-sm">{{file}}</div> + <div class="row well well-sm">{{file}} <a class="btn btn-primary" href="?do=sysconfig&action=activate&file={{file}}&token={{token}}">Aktivieren</a></div> {{/files}} {{^files}} <div class="row well well-sm">Keine Konfigurationspakete gefunden!</div> diff --git a/templates/txt-ipxeconfig.html b/templates/txt-ipxeconfig.html new file mode 100644 index 00000000..df8fb90f --- /dev/null +++ b/templates/txt-ipxeconfig.html @@ -0,0 +1,7 @@ +#!ipxe +set use-cached 1 +dhcp net0 +set net0.dhcp/next-server {{{SERVER}}} +set net0.dhcp/filename ipxelinux.0 +imgload pxelinux.0 +boot pxelinux.0 diff --git a/templates/txt-pxeconfig.html b/templates/txt-pxeconfig.html new file mode 100644 index 00000000..6998a205 --- /dev/null +++ b/templates/txt-pxeconfig.html @@ -0,0 +1,68 @@ +DEFAULT vesamenu.c32 + +NOESCAPE 1 +PROMPT 0 + +MENU BACKGROUND openslx.png +MENU WIDTH 78 +MENU MARGIN 9 +MENU PASSWORDMARGIN 9 +MENU ROWS 10 +MENU TABMSGROW 16 +MENU CMDLINEROW 16 +MENU ENDROW -1 +MENU PASSWORDROW 16 +MENU TIMEOUTROW 20 +MENU HELPMSGROW 16 +MENU HELPMSGENDROW -1 +MENU HSHIFT 0 +MENU VSHIFT 7 + +menu color screen 37;40 #80ffffff #00000000 std +menu color border 37;40 #40000000 #ff8093a1 std +menu color title 1;37;40 #ffff8b00 #ff8093a1 std +menu color unsel 37;40 #fff0f0f0 #ff8093a1 std +menu color hotkey 1;37;40 #ffff8b00 #ff8093a1 std +menu color sel 7;37;40 #ff1c2a33 #667799bb all +menu color hotsel 1;7;37;40 #ffff8b00 #667799bb all +menu color disabled 1;37;40 #ffff8b00 #ff8093a1 std +menu color scrollbar 37;40 #40000000 #ee000000 std +menu color tabmsg 37;40 #ffff8b00 #ff8093a1 std +menu color cmdmark 1;37;40 #ffff8b00 #ff8093a1 std +menu color cmdline 37;40 #fff0f0f0 #ff8093a1 std +menu color pwdborder 37;40 #40000000 #ff8093a1 std +menu color pwdheader 37;40 #ffff8b00 #ff8093a1 std +menu color pwdentry 37;40 #ffff8b00 #ff8093a1 std +menu color timeout_msg 37;40 #fff0f0f0 #ff8093a1 std +menu color timeout 1;37;40 #ffff8b00 #ff8093a1 std +menu color help 37;40 #ff1c2a33 #00000000 none +MENU MSGCOLOR #ff1c2a33 #00000000 none + + +TIMEOUT 10 +TOTALTIMEOUT 120 +MENU TITLE bwLehrpool ALPHA VERSION +ONTIMEOUT {{{DEFAULT}}} + + + +LABEL shutdown + MENU HIDE + KERNEL kernel-shutdown + APPEND initrd=initramfs-shutdown quiet + + + +LABEL openslx + MENU LABEL bwLehrpool ^Kursumgebung + KERNEL http://{{{SERVER}}}/boot/default/kernel + INITRD http://{{{SERVER}}}/boot/default/initramfs-stage31 + APPEND slxsrv={{{SERVER}}} slxbase=boot/default + IPAPPEND 3 + +LABEL hddboot + MENU LABEL Von ^lokaler Festplatte booten + LOCALBOOT 0 + + + |