diff options
author | Simon Rettberg | 2013-11-09 18:31:40 +0100 |
---|---|---|
committer | Simon Rettberg | 2013-11-09 18:31:40 +0100 |
commit | 3a6abc666fe815c789fbb5068d011acd8766e1e7 (patch) | |
tree | 84006a3f701307bd2f9072fd0b7ee0475848b548 /templates | |
parent | Make download work (diff) | |
download | slx-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.html | 12 |
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&action=remotelist">Konfigurationen herunterladen</a> - <a class="btn btn-lg btn-primary" href="?do=sysconfig&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> |