diff options
author | Simon Rettberg | 2015-02-19 18:06:09 +0100 |
---|---|---|
committer | Simon Rettberg | 2015-02-19 18:06:09 +0100 |
commit | 8b0c163527d1500f3dc219f021d07e5a604b4d16 (patch) | |
tree | 1a3c95387189d3b9cee2aa1c4c50602f5d664439 /templates/minilinux/filelist.html | |
parent | Update translations (diff) | |
download | slx-admin-8b0c163527d1500f3dc219f021d07e5a604b4d16.tar.gz slx-admin-8b0c163527d1500f3dc219f021d07e5a604b4d16.tar.xz slx-admin-8b0c163527d1500f3dc219f021d07e5a604b4d16.zip |
MiniLinux download with version selection
Diffstat (limited to 'templates/minilinux/filelist.html')
-rw-r--r-- | templates/minilinux/filelist.html | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/templates/minilinux/filelist.html b/templates/minilinux/filelist.html index 39ed0b43..ca94f4d0 100644 --- a/templates/minilinux/filelist.html +++ b/templates/minilinux/filelist.html @@ -4,6 +4,19 @@ <h4>{{title}}</h4> </div> <div class="panel-body" id="download-{{id}}"> + <div class="input-group pull-right" style="max-width: 400px"> + <span class="input-group-addon slx-ga">{{lang_desiredVersion}}</span> + <select id="versionbox" class="form-control" onchange="loadSystemList($('#versionbox').val())"> + {{#versions}} + {{#selected}} + <option value="{{version}}" selected>{{version}}</option> + {{/selected}} + {{^selected}} + <option value="{{version}}">{{version}}</option> + {{/selected}} + {{/versions}} + </select> + </div> {{#systemChanged}} <p> {{lang_canUpdate1}} <b>{{title}}</b> {{lang_canUpdate2}} @@ -13,6 +26,8 @@ {{^systemChanged}} <p>{{lang_systemUpdated}}</p> {{/systemChanged}} + <hr> + <p><b>{{lang_filesInVersion}} {{version}}</b></p> <ul class="list-group"> {{#files}} <li class="list-group-item" id="{{uid}}"> @@ -43,7 +58,7 @@ function slxUpdate(uid, id, name) { $('#' + uid).html(''); $('#' + uid).load('?do=MiniLinux', - { action : "download", token : TOKEN, id : id, name : name }, + { action : "download", token : TOKEN, id : id, name : name, version : $('#versionbox').val() }, function(response, status, xhr) { if (status === "error") { var msg = "Fehler beim Abruf: "; |