summaryrefslogtreecommitdiff
path: root/views/prediction.haml
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2010-07-29 19:34:34 +0200
committerChristoph Helma <helma@in-silico.ch>2010-07-29 19:34:34 +0200
commitdeb9d2c9a005c152983a70c17c227fc59c917f0b (patch)
treefde5715579c1e15b6501cc1c6bf18f364d11caa2 /views/prediction.haml
parent617fee94e1824515dc699a6265260c7b92a0fcea (diff)
html representation of lazar predictions moved from model service to toxcreate
Diffstat (limited to 'views/prediction.haml')
-rw-r--r--views/prediction.haml7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/prediction.haml b/views/prediction.haml
index 1edb2e8..94d7987 100644
--- a/views/prediction.haml
+++ b/views/prediction.haml
@@ -6,7 +6,7 @@
%th{:colspan => @predictions.size+1}
= @identifier
%tr
- %th
+ %td
%img{:src => @compound.image_uri, :alt => @compound.smiles}
- @predictions.each do |p|
%td
@@ -55,6 +55,11 @@
$("dl#confidence").toggle();
});
)
+ %br
+ %form{:name => "form", :action => url_for('/lazar'), :method => "post", :enctype => "multipart/form-data" }
+ %input{:type => :hidden, :name => :compound_uri, :value => @compound.uri}
+ %input{:type => :hidden, :name => :model_uri, :value => p[:model_uri]}
+ %input{ :type => "submit", :value => "Details"}
%dl#confidence{ :style => "display: none;" }
%dt Confidence: