1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
:javascript
function getsmiles() {
if (document.JME.smiles() != '') {
document.form.identifier.value = document.JME.smiles() ;
}
}
.input
%p Use this service to obtain predictions from OpenTox models.
- unless @models.empty?
%form{:name => "form", :action => url_for('/predict'), :method => "post", :enctype => "multipart/form-data" }
%fieldset
%legend Draw a compound
%label
.jme
%applet{:code => "JME.class", :name => "JME", :archive => "JME.jar", :width => "500", :height => "360"}
%param{ :name => "options", :value => "polarnitro"}
Please enable Java and JavaScript in your browser to use the JME editor.
%span{:style=>"font-size:75%"}
©
%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, ...
%label{:for => 'identifier'} or enter a Smiles string
%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")}
%br
%br
%input{:type => 'hidden', :name => 'subjectid', :id => 'subjectid', :value => session[:subjectid]}
%input{ :type => "submit", :value => "Predict", :onclick => "getsmiles();"}
= link_to 'Cancel', '/predict'
|