summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSimon Rettberg2013-11-09 18:31:40 +0100
committerSimon Rettberg2013-11-09 18:31:40 +0100
commit3a6abc666fe815c789fbb5068d011acd8766e1e7 (patch)
tree84006a3f701307bd2f9072fd0b7ee0475848b548 /templates
parentMake download work (diff)
downloadslx-admin-3a6abc666fe815c789fbb5068d011acd8766e1e7.tar.gz
slx-admin-3a6abc666fe815c789fbb5068d011acd8766e1e7.tar.xz
slx-admin-3a6abc666fe815c789fbb5068d011acd8766e1e7.zip
Add custom config.tgz upload functionality
Diffstat (limited to 'templates')
-rw-r--r--templates/page-tgz-list.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/templates/page-tgz-list.html b/templates/page-tgz-list.html
index fec5af63..65654766 100644
--- a/templates/page-tgz-list.html
+++ b/templates/page-tgz-list.html
@@ -6,5 +6,15 @@
<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>
+ <a class="btn btn-lg btn-primary" href="#" data-toggle="collapse" data-target="#uploadform">Eigene Konfiguration hochladen</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>