From db73229e114de49d514539a2b6ec22357e4fb6e1 Mon Sep 17 00:00:00 2001 From: Firmlyzhu Date: Sat, 11 May 2019 18:41:56 +0800 Subject: [PATCH] update batch create page --- web/templates/batch/batch_create.html | 144 ++++++++++++++------------ 1 file changed, 79 insertions(+), 65 deletions(-) diff --git a/web/templates/batch/batch_create.html b/web/templates/batch/batch_create.html index 9a873ad..1cd0e03 100644 --- a/web/templates/batch/batch_create.html +++ b/web/templates/batch/batch_create.html @@ -224,6 +224,7 @@ var masterip=$("select#masterselector").children('option:selected').val(); //mapping_number = 0; var task_html = ''; + var images = images_info task_html += '
' +'
' @@ -235,6 +236,77 @@ +'
' +'
' +'
' + +'' + +'
' + +'
' + +'' + +'
' + +'
' + + task_html += + '
' + +'
' + +'' + +"" + +"" + +"" + +"" + +"" + +"" + +"" + +"" + +"" + +"" + +"" + +"" + +"" + +"" + +"" + +"" + +"" + +'' + +""; + for(var index in images[masterip].private) { + var image = images[masterip].private[index]; + task_html += + "" + +"" + +"" + +"" + +"" + +'' + +'' + +""; + } + for(var p_user in images[masterip].public) { + for(var index in images[masterip].public[p_user]) { + image=images[masterip].public[p_user][index]; + task_html += + "" + +"" + +"" + +"" + +"" + +'' + +'' + +""; + } + } + task_html += + '
ImageNameTypeOwnerSizeDescriptionChoose
basepublicdocklet--A base image for you
"+image.name+"private{{user}}"+image.size_format+"' + image.description + '
"+image.name+"public" + p_user + ""+image.size_format+"' + image.description + '
' + +'
' + +'
' + task_html += + '
' + +'' + +'
' + +'
' + +'
' +'' +'
' +'
' @@ -256,11 +328,11 @@ +'
' +'
' +'
' - +'' - +'
' + +'' + +'
' +'
' +'' - +'
' + +'
' +'
Seconds
' +'
' +'' @@ -270,74 +342,15 @@ +'
' +'
' +'
' - +'' - +'
' - +'
' - +'' - +'
' - +'
' - +'
' +'' +'
All vnodes  ' +' One vnode(master)
' +'' +'
' +'
' - var images = images_info + task_html += - '
' - +'
' - +'' - +"" - +"" - +"" - +"" - +"" - +"" - +"" - +"" - +"" - +"" - +"" - +"" - +"" - +"" - +"" - +"" - +"" - +'' - +""; - for(var index in images[masterip].private) { - var image = images[masterip].private[index]; - task_html += - "" - +"" - +"" - +"" - +"" - +'' - +'' - +""; - } - for(var p_user in images[masterip].public) { - for(var index in images[masterip].public[p_user]) { - image=images[masterip].public[p_user][index]; - task_html += - "" - +"" - +"" - +"" - +"" - +'' - +'' - +""; - } - } - task_html += - '
ImageNameTypeOwnerSizeDescriptionChoose
basepublicdocklet--A base image for you
"+image.name+"private{{user}}"+image.size_format+"' + image.description + '
"+image.name+"public" + p_user + ""+image.size_format+"' + image.description + '
' - +'
' - +'
' - +'
' + '
' +'' @@ -349,8 +362,9 @@ +'' +'
' +'
' - +'
' +'
' + +'
' + +'
' $(task_html).appendTo("#accordion"); } addTask();