summaryrefslogtreecommitdiff
path: root/views/predict.haml
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2010-01-31 19:09:16 +0100
committerChristoph Helma <helma@in-silico.de>2010-01-31 19:09:16 +0100
commita90c9ea8332e40f9f056128fde10630e7f39c197 (patch)
treea00b2941266ba48dfa0dab6a290c809bf0f73994 /views/predict.haml
parent9d5ca57de4ebce305e1e4f53701e502e49a6d4c8 (diff)
Upload facilities added, Ambit disabled
Diffstat (limited to 'views/predict.haml')
-rw-r--r--views/predict.haml45
1 files changed, 23 insertions, 22 deletions
diff --git a/views/predict.haml b/views/predict.haml
index da3d71a..7c4b980 100644
--- a/views/predict.haml
+++ b/views/predict.haml
@@ -1,24 +1,25 @@
-- unless @models.nil?
- %form{ :action => '/predict', :method => "post", :enctype => "multipart/form-data" }
- %ol
- %li
- Enter a compound identifier (Name, InChI, Smiles, CAS, ...):
- %p
- %input{:type => 'text', :name => 'identifier'}
- %li
- Choose one or more prediction models:
- %ul
- - @models.each do |model|
- - yaml = RestClient.get model, :accept => 'application/x-yaml'
- - yaml = YAML.load yaml
- %br
- -# %input{:type => 'checkbox', :name => 'model_uri', :value => model}
- -# %input{:type => 'checkbox', :name => "selection[#{model}]", :value => true}
- %input{:type => 'checkbox', :name => "selection[#{model}]", :value => true}
- = yaml[:endpoint].split(/#/).last
+.upload
+ - unless @models.nil?
+ %form{ :action => url_for('/predict'), :method => "post", :enctype => "multipart/form-data" }
+ %ol
+ %li
+ %label{:for => 'identifier'}Enter a compound identifier:
+ %input{:type => 'text', :name => 'identifier', :id => 'identifier'}
+ (Name, InChI, Smiles, CAS, ...)
+ %li
+ %label{:for => 'model'}Choose one or more prediction models:
+ %ul
+ - @models.each do |model|
+ - yaml = RestClient.get model, :accept => 'application/x-yaml'
+ - yaml = YAML.load yaml
+ %br
+ -# %input{:type => 'checkbox', :name => 'model_uri', :value => model}
+ -# %input{:type => 'checkbox', :name => "selection[#{model}]", :value => true}
+ %input{:type => 'checkbox', :name => "selection[#{model}]", :value => true, :id => 'model'}
+ = yaml[:endpoint].split(/#/).last
- %li
- %p
- %input{ :type => "submit", :value => "Predict"}
- %a{:href => '/'} Cancel
+ %li
+ %p
+ %input{ :type => "submit", :value => "Predict"}
+ = link_to 'Cancel', '/'