summaryrefslogtreecommitdiff
path: root/views/predict.haml
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2017-01-16 16:55:31 +0000
committergebele <gebele@in-silico.ch>2017-01-16 16:55:31 +0000
commit1106dbf48614d5329d601e12e53684ac6bd4188c (patch)
tree94dc3f6a2b6d7f634a24ce169b89b49bb85538bd /views/predict.haml
parent052e7689a6a79594ad89e6141190e0b40033fd9d (diff)
parente6b8488b757f1d6036fd74b75f44d8c75ed3779f (diff)
merged development1.1.1
Diffstat (limited to 'views/predict.haml')
-rw-r--r--views/predict.haml13
1 files changed, 8 insertions, 5 deletions
diff --git a/views/predict.haml b/views/predict.haml
index 010ed12..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
@@ -125,11 +125,13 @@
%br
%input{:type => 'text', :name => 'identifier', :id => 'identifier', :size => '60'}
%p
- %label{:for=>"fileselect"}
+ -#%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"}
+ -#%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=>"hidden", :name=> "fileselect", :id=>"fileselect", :accept=>"text/csv", :disabled=>"disabled"}
%fieldset#middle.well
%h2 2. Select one or more endpoints
@@ -162,6 +164,7 @@
document.getElementById("details#{model.id}").appendChild(details);
$(button).show();
$(image).hide();
+ addExternalLinks();
});
}
}