From ddbe5c5478c7dd71d9c851008340e28a61d5ba33 Mon Sep 17 00:00:00 2001 From: gebele Date: Tue, 27 Oct 2015 12:24:58 +0000 Subject: enabled batch --- views/predict.haml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'views/predict.haml') diff --git a/views/predict.haml b/views/predict.haml index 9863cd9..0dc767b 100644 --- a/views/predict.haml +++ b/views/predict.haml @@ -125,12 +125,11 @@ %br %input{:type => 'text', :name => 'identifier', :id => 'identifier', :size => '60'} %p - // disable for public version %label{:for=>"fileselect"} or upload a CSV file for batch predictions (disabled in public version) %br %span.btn.btn-default.btn-file - %input{:type=>"file", :name=> "fileselect", :id=>"fileselect", :accept=>"text/csv", :disabled=>"disabled"} + %input{:type=>"file", :name=> "fileselect", :id=>"fileselect", :accept=>"text/csv"} %fieldset#middle.well %h2 2. Select one or more endpoints -- cgit v1.2.3 From 41f948d58ba99a635ae7e04573bd368d9ab34d99 Mon Sep 17 00:00:00 2001 From: gebele Date: Tue, 27 Oct 2015 12:26:14 +0000 Subject: enabled batch --- views/predict.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/predict.haml') diff --git a/views/predict.haml b/views/predict.haml index 0dc767b..a4fa080 100644 --- a/views/predict.haml +++ b/views/predict.haml @@ -126,7 +126,7 @@ %input{:type => 'text', :name => 'identifier', :id => 'identifier', :size => '60'} %p %label{:for=>"fileselect"} - or upload a CSV file for batch predictions (disabled in public version) + or upload a CSV file for batch predictions %br %span.btn.btn-default.btn-file %input{:type=>"file", :name=> "fileselect", :id=>"fileselect", :accept=>"text/csv"} -- cgit v1.2.3 From b452a81e9c0a470bf9aa51f0192378f5fba5177a Mon Sep 17 00:00:00 2001 From: gebele Date: Thu, 29 Oct 2015 09:54:15 +0000 Subject: trim and log SMILES input --- views/predict.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/predict.haml') diff --git a/views/predict.haml b/views/predict.haml index a4fa080..7f19071 100644 --- a/views/predict.haml +++ b/views/predict.haml @@ -24,7 +24,7 @@ }); function getInput(){ - identifier = document.getElementById("identifier").value; + identifier = document.getElementById("identifier").value.trim(); fileselect = document.getElementById("fileselect").value; if (fileselect != ""){ return 1; -- cgit v1.2.3 From f86c084311282036ffa7b4588c0fa0d5b59af95b Mon Sep 17 00:00:00 2001 From: gebele Date: Thu, 24 Nov 2016 16:03:09 +0000 Subject: several fixes; works with lazar tree e111369ce5564f159b3f5f85c92afdd22352eaa1 --- views/predict.haml | 1 + 1 file changed, 1 insertion(+) (limited to 'views/predict.haml') diff --git a/views/predict.haml b/views/predict.haml index 010ed12..8ae5684 100644 --- a/views/predict.haml +++ b/views/predict.haml @@ -162,6 +162,7 @@ document.getElementById("details#{model.id}").appendChild(details); $(button).show(); $(image).hide(); + addExternalLinks(); }); } } -- cgit v1.2.3 From c5ca09fb039e38abd89005d49ef373cf18b79039 Mon Sep 17 00:00:00 2001 From: gebele Date: Mon, 28 Nov 2016 14:13:18 +0000 Subject: bumped version;training dataset download;show warnings for batch;csv info and upload catch;code cleanup --- views/predict.haml | 1 + 1 file changed, 1 insertion(+) (limited to 'views/predict.haml') diff --git a/views/predict.haml b/views/predict.haml index 66006d4..9a7d0d4 100644 --- a/views/predict.haml +++ b/views/predict.haml @@ -127,6 +127,7 @@ %p %label{:for=>"fileselect"} or upload a CSV file for batch predictions + %a.btn.glyphicon.glyphicon-info-sign{:href=>"javascript:void(0)", :title=>"File format", :tabindex=>"0", data: {trigger:"focus", toggle:"popover", placement:"auto", html:"true", content:"One column with compounds and keyword SMILES or InChI in the first row."}} %br %span.btn.btn-default.btn-file %input{:type=>"file", :name=> "fileselect", :id=>"fileselect", :accept=>"text/csv"} -- cgit v1.2.3 From 55bf06381a42c9bb1e1e991e990f5d6e90c8e33e Mon Sep 17 00:00:00 2001 From: gebele Date: Wed, 7 Dec 2016 12:07:13 +0000 Subject: rebuild code for public release;prepared to work with lazar v1.0.0;reintroduced compound details --- views/predict.haml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'views/predict.haml') diff --git a/views/predict.haml b/views/predict.haml index 9a7d0d4..b7a4087 100644 --- a/views/predict.haml +++ b/views/predict.haml @@ -125,12 +125,12 @@ %br %input{:type => 'text', :name => 'identifier', :id => 'identifier', :size => '60'} %p - %label{:for=>"fileselect"} - or upload a CSV file for batch predictions - %a.btn.glyphicon.glyphicon-info-sign{:href=>"javascript:void(0)", :title=>"File format", :tabindex=>"0", data: {trigger:"focus", toggle:"popover", placement:"auto", html:"true", content:"One column with compounds and keyword SMILES or InChI in the first row."}} - %br - %span.btn.btn-default.btn-file - %input{:type=>"file", :name=> "fileselect", :id=>"fileselect", :accept=>"text/csv"} + -#%label{:for=>"fileselect"} + or upload a CSV file for batch predictions (disabled in public version) + -#%a.btn.glyphicon.glyphicon-info-sign{:href=>"javascript:void(0)", :title=>"File format", :tabindex=>"0", data: {trigger:"focus", toggle:"popover", placement:"auto", html:"true", content:"One column with compounds and keyword SMILES or InChI in the first row."}} + -#%br + -#%span.btn.btn-default.btn-file + %input{:type=>"file", :name=> "fileselect", :id=>"fileselect", :accept=>"text/csv", :disabled=>"disabled"} %fieldset#middle.well %h2 2. Select one or more endpoints -- cgit v1.2.3 From e6b8488b757f1d6036fd74b75f44d8c75ed3779f Mon Sep 17 00:00:00 2001 From: gebele Date: Mon, 16 Jan 2017 16:53:13 +0000 Subject: issue fixes;added faq --- views/predict.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'views/predict.haml') diff --git a/views/predict.haml b/views/predict.haml index b7a4087..59630d0 100644 --- a/views/predict.haml +++ b/views/predict.haml @@ -111,7 +111,7 @@ }; // whole site content needs to be in one form. Input and checkboxes are proofed by js functions. -%form{:name => "form", :action => to('/predict'), :method => "post", :enctype => "multipart/form-data", :onsubmit => "return !!(showcircle())" } +%form{:name => "form", :action => to('/predict'), :method => "post", :enctype => "multipart/form-data", :onsubmit => "return !!(showcircle())" } %fieldset#top.well %h2 1. Draw a chemical structure #insert @@ -130,7 +130,8 @@ -#%a.btn.glyphicon.glyphicon-info-sign{:href=>"javascript:void(0)", :title=>"File format", :tabindex=>"0", data: {trigger:"focus", toggle:"popover", placement:"auto", html:"true", content:"One column with compounds and keyword SMILES or InChI in the first row."}} -#%br -#%span.btn.btn-default.btn-file - %input{:type=>"file", :name=> "fileselect", :id=>"fileselect", :accept=>"text/csv", :disabled=>"disabled"} + -#%input{:type=>"file", :name=> "fileselect", :id=>"fileselect", :accept=>"text/csv", :disabled=>"disabled"} + %input{:type=>"hidden", :name=> "fileselect", :id=>"fileselect", :accept=>"text/csv", :disabled=>"disabled"} %fieldset#middle.well %h2 2. Select one or more endpoints -- cgit v1.2.3