summaryrefslogtreecommitdiff
path: root/views/predict.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/predict.haml')
-rw-r--r--views/predict.haml13
1 files changed, 10 insertions, 3 deletions
diff --git a/views/predict.haml b/views/predict.haml
index d8c34a2..ec667e6 100644
--- a/views/predict.haml
+++ b/views/predict.haml
@@ -18,18 +18,25 @@
%param{ :name => "options", :value => "polarnitro"}
Please enable Java and JavaScript in your browser to use the JME editor.
+ %jme_info
+ <span style="font-size:75%">&copy;
+ %a{:href => 'http://www.molinspiration.com/jme/index.html', :rel => "external"} JME Editor
+ courtesy of Peter Ertl, Novartis</span>
+ %br
%label{:for => 'identifier'} or enter a Name, InChI, Smiles, CAS, ...
%input{:type => 'text', :name => 'identifier', :id => 'identifier', :size => '60'}
+ %br
%fieldset
%legend
Choose one or more prediction models
+ %br
- @models.each do |model|
+ %input{:type => 'checkbox', :name => "selection[#{model.id}]", :value => true, :id => "model#{model.id}", :disabled => false}
%label{:for => "model#{model.id}"}
= model.name
- -#%input{:type => 'checkbox', :name => "selection[#{model.id}]", :value => true, :id => model.id, :disabled => !is_authorized(model.uri, "GET")}
- %input{:type => 'checkbox', :name => "selection[#{model.id}]", :value => true, :id => "model#{model.id}", :disabled => false}
+ -#%input{:type => 'checkbox', :name => "selection[#{model.id}]", :value => true, :id => model.id, :disabled => !is_authorized(model.uri, "GET")}
%br
-
+ %br
%input{:type => 'hidden', :name => 'subjectid', :id => 'subjectid', :value => session[:subjectid]}
%input{ :type => "submit", :value => "Predict", :onclick => "getsmiles();"}
= link_to 'Cancel', '/predict'