summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSimon Rettberg2013-11-05 20:25:55 +0100
committerSimon Rettberg2013-11-05 20:25:55 +0100
commite277baed387b642bb7e6707b49e55da4719a9c79 (patch)
tree350343881ddc35fe53862e971506bc405a9a7fad /templates
parentTolle neue APIs Sachen (diff)
downloadslx-admin-e277baed387b642bb7e6707b49e55da4719a9c79.tar.gz
slx-admin-e277baed387b642bb7e6707b49e55da4719a9c79.tar.xz
slx-admin-e277baed387b642bb7e6707b49e55da4719a9c79.zip
Working on download of remote configs
Diffstat (limited to 'templates')
-rw-r--r--templates/download-complete.html1
-rw-r--r--templates/main-menu.html2
-rw-r--r--templates/remote-tgz-list.html11
-rw-r--r--templates/tgz-list.html10
4 files changed, 23 insertions, 1 deletions
diff --git a/templates/download-complete.html b/templates/download-complete.html
new file mode 100644
index 00000000..619f2551
--- /dev/null
+++ b/templates/download-complete.html
@@ -0,0 +1 @@
+<div class="alert alert-success">Download von {{file}} abgeschlossen</div>
diff --git a/templates/main-menu.html b/templates/main-menu.html
index d3d88d0f..021daf6d 100644
--- a/templates/main-menu.html
+++ b/templates/main-menu.html
@@ -17,7 +17,7 @@
<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=authconfig">Authentifizierung</a></li>
+ <li><a href="?do=sysconfig">System</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/remote-tgz-list.html b/templates/remote-tgz-list.html
new file mode 100644
index 00000000..e7abc78a
--- /dev/null
+++ b/templates/remote-tgz-list.html
@@ -0,0 +1,11 @@
+<div class="container">
+ {{#files}}
+ <div class="panel panel-default">
+ <div class="panel-heading"><h4><a class="btn btn-success" href="#" onclick="this.style.display='none';loadContent('#download{{id}}', 'api.php?do=download&amp;type=tgz&amp;file={{file}}&amp;id={{id}}')">Download</a> &raquo; {{file}}</h4></div>
+ <div class="panel-body" id="download{{id}}">{{description}}</div>
+ </div>
+ {{/files}}
+ {{^files}}
+ <div class="row well well-sm">Keine Konfigurationspakete gefunden!</div>
+ {{/files}}
+</div>
diff --git a/templates/tgz-list.html b/templates/tgz-list.html
new file mode 100644
index 00000000..fec5af63
--- /dev/null
+++ b/templates/tgz-list.html
@@ -0,0 +1,10 @@
+<div class="container">
+ {{#files}}
+ <div class="row well well-sm">{{file}}</div>
+ {{/files}}
+ {{^files}}
+ <div class="row well well-sm">Keine Konfigurationspakete gefunden!</div>
+ {{/files}}
+ <a class="btn btn-lg btn-primary" href="?do=sysconfig&amp;action=remotelist">Konfigurationen herunterladen</a>
+ <a class="btn btn-lg btn-primary" href="?do=sysconfig&amp;action=upload">Eigene Konfiguration hochladen</a>
+</div>