diff options
author | gebele <gebele@in-silico.ch> | 2016-01-22 13:49:16 +0100 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2016-01-22 13:49:16 +0100 |
commit | dfffcd555607ce21645eb481bb151c7873c367ab (patch) | |
tree | 92ae4810064a320ac9be0816c779897a2c5fad0e /views/predict.haml |
initial commit
hard copied nanoparticles.rb and data.json from @helma nano-lazar
Diffstat (limited to 'views/predict.haml')
-rw-r--r-- | views/predict.haml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/views/predict.haml b/views/predict.haml new file mode 100644 index 0000000..6b9bf95 --- /dev/null +++ b/views/predict.haml @@ -0,0 +1,18 @@ +%div.well + %form{:role=>"form", :action=> to("/predict"), :method=>"post"} + %span.help-block + some help text to explain + #input + - size = @example.size + - @example.each_with_index do |v,id| + - id = id + 1 + - key = v[0] + - val = v[1] + %div.form-group + %h3= 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} + %input.form-control{:id=>"example",:type=>"hidden",:name=>"size",:value=>size} + %hr + #predict + %button.btn.btn-info{:type=>"submit"} predict |