From 77bdec498c6b7529ebcd2e76005f329d9c92c3bf Mon Sep 17 00:00:00 2001 From: Firmlyzhu Date: Tue, 2 Apr 2019 17:15:38 +0800 Subject: [PATCH] update oss mount on create job page --- web/templates/batch/batch_create.html | 43 ++++++++++++++++----------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/web/templates/batch/batch_create.html b/web/templates/batch/batch_create.html index 469f560..eb7238f 100644 --- a/web/templates/batch/batch_create.html +++ b/web/templates/batch/batch_create.html @@ -130,17 +130,26 @@ var table = $("#storage_mapping_" + obj.id)[0]; var new_mapping = table.insertRow(); new_mapping.id = "mapping_" + task_number + "_" + mapping_number; - var local_dir = new_mapping.insertCell(); - var remote_dir = new_mapping.insertCell(); - var source = new_mapping.insertCell(); + var provider = new_mapping.insertCell(); + var bucket_name = new_mapping.insertCell(); + var accessKey = new_mapping.insertCell(); + var secretKey = new_mapping.insertCell(); + var endpoint = new_mapping.insertCell(); + var mountpath = new_mapping.insertCell(); var remove = new_mapping.insertCell(); - local_dir.innerHTML = ''; - remote_dir.innerHTML = ''; - source.innerHTML = ''; + secretKey.innerHTML = ''; + endpoint.innerHTML = 'http://'; + mountpath.innerHTML = ''; + provider.innerHTML = ''; + +''; remove.innerHTML = '
'; } @@ -324,18 +333,18 @@ +'' +'' +'
' - +'' - +'' - +'' + +'' + +'
' +'' - +'' - +'' + +'' +'' +'' +'' - +'
Local DirRemote DirsourceOperation
ProviderBucket NameAccessKey IDAccessKey SecretEndpointMount PathRemove
' - +'
' + +'' + +'' + +'
' +'' $(task_html).appendTo("#accordion"); }