diff options
author | gebele <gebele@in-silico.ch> | 2016-01-28 21:27:26 +0100 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2016-01-28 21:27:26 +0100 |
commit | 2b6ae54466d9854bb8898e1136c125d40b2d3444 (patch) | |
tree | 8167e00632368ce4631d933ab5f92e087e1e57a3 /views/predict.haml | |
parent | b72906cf99507b1be887b7ecf98f596135099412 (diff) |
restyled prediction table
Diffstat (limited to 'views/predict.haml')
-rw-r--r-- | views/predict.haml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/views/predict.haml b/views/predict.haml index 4584cbf..7fa52ed 100644 --- a/views/predict.haml +++ b/views/predict.haml @@ -1,18 +1,23 @@ %div.well %form{:role=>"form", :action=> to("/predict"), :method=>"post"} %h3.help-block - Please characterise a Gold nanoparticle + Please characterise a nanoparticle + %hr #input - size = @example.size + %div.form-group + %h5 Core + %input.input-sm.form-control{:id=>"Au",:type=>"text",:name=>"input_value_Au",:value=>"[Au]", :disabled=>"true"} - @example.each_with_index do |v,id| - id = id + 1 - key = v[0] - val = v[1] - %div.form-group - %h5= key - %input.form-control{:id=>id,:type=>"hidden",:name=>"input_key_#{id}",:value=>key} - %input.form-control{:id=>id,:type=>"text",:name=>"input_value_#{id}",:value=>val} + %h5= key.gsub(/\sMean/, '') + %input.form-control{:id=>id,:type=>"hidden",:name=>"input_key_#{id}",:value=>key} + %input.input-sm.form-control{:id=>id,:type=>"text",:name=>"input_value_#{id}",:value=>val} %input.form-control{:id=>"example",:type=>"hidden",:name=>"size",:value=>size} %hr #predict - %button.btn.btn-info{:type=>"submit"} predict + %button.btn.btn-success{:type=>"submit"} + Find similar nano particles + %span.glyphicon.glyphicon-chevron-right |