diff options
Diffstat (limited to 'views/predict.haml')
-rw-r--r-- | views/predict.haml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/views/predict.haml b/views/predict.haml index d638451..0afcc99 100644 --- a/views/predict.haml +++ b/views/predict.haml @@ -186,8 +186,8 @@ - @endpoints.each do |endpoint| %div{:id=>endpoint.gsub(/\s+/, "_")} %h4.head-back=endpoint - - unless endpoint =~ /^Oral/ - - @models.select{|m| m.endpoint == endpoint}.each do |model| + - if endpoint !~ /^Oral|Mazzatorta/ + - @models.select{|m| endpoint = endpoint.gsub("(lazar)","").strip if endpoint =~ /lazar/; m.endpoint == endpoint}.each do |model| %div.row{:id => model.id,:style=>"margin-bottom:1em;"} %span.col-lg-4.col-md-4.col-sm-4.col-xs-4 %input.check{:type => "checkbox", :name => "selection[#{model.id}]", :id => "selection[#{model.species.gsub(/\s+/, "_")}]", :value => true, :disabled => false} @@ -223,12 +223,18 @@ }); } } - - else + - elsif endpoint =~ /^Oral/ %div.row{:id => "Cramer",:style=>"margin-bottom:1em;"} %span.col-lg-4.col-md-4.col-sm-4.col-xs-4 %input.check{:type => "checkbox", :name => "selection[Cramer]", :id => "selection[Cramer]", :value => true, :disabled => false} %label{:for => "selection[Cramer]"} Cramer rules + - elsif endpoint =~ /Mazzatorta/ + %div.row{:id => "Mazzatorta",:style=>"margin-bottom:1em;"} + %span.col-lg-4.col-md-4.col-sm-4.col-xs-4 + %input.check{:type => "checkbox", :name => "selection[Mazzatorta]", :id => "selection[Mazzatorta]", :value => true, :disabled => false} + %label{:for => "selection[Mazzatorta]"} + Rats %fieldset#bottom.well %div.row %div.col-md-2 |