spec/dummy/app/views/labs/search.html.haml in medivo-0.0.4 vs spec/dummy/app/views/labs/search.html.haml in medivo-0.0.7
- old
+ new
@@ -1,27 +1,27 @@
// sample template for rendering lab info
%script{:id=>"lab_item_template", :type=>"text/x-handlebars-template"}
%li.lab_info
.lab_image
- -#%img{:src=>"{{image}}", :width=>'12px'}
+ %img{:src=>"{{icon}}", :width=>'12px'}
%div
.lab_name
- {{lab_name}}
+ {{data/lab_name}}
.address
- {{address_without_comma}}, {{titleize city}}, {{state}}
+ {{address_without_comma}}, {{titleize data/city}}, {{data/state}}
.phone
- Tel: {{telephone}}
+ Tel: {{data/telephone}}
.link
// create your own /labs/select via :post method
= form_for :lab, :url=>'/select', :method=>'post' do |f|
- %input{ :type=>:hidden, :name => 'id', :value=>"{{id}}" }
- %input{ :type=>:hidden, :name => 'lab_id', :value=>"{{lab_id}}" }
- %input{ :type=>:hidden, :name => 'lab_info[name]', :value=>"{{lab_name}}" }
+ %input{ :type=>:hidden, :name => 'id', :value=>"{{data/id}}" }
+ %input{ :type=>:hidden, :name => 'lab_id', :value=>"{{data/lab_id}}" }
+ %input{ :type=>:hidden, :name => 'lab_info[name]', :value=>"{{data/lab_name}}" }
%input{ :type=>:hidden, :name => 'lab_info[address]', :value=>"{{address_without_comma}}" }
- %input{ :type=>:hidden, :name => 'lab_info[city]', :value=>"{{titleize city}}" }
- %input{ :type=>:hidden, :name => 'lab_info[state]', :value=>"{{state}}" }
- %input{ :type=>:hidden, :name => 'lab_info[zip]', :value=>"{{zip}}" }
- %input{ :type=>:hidden, :name => 'lab_info[telephone]', :value=>"{{telephone}}" }
+ %input{ :type=>:hidden, :name => 'lab_info[city]', :value=>"{{titleize data/city}}" }
+ %input{ :type=>:hidden, :name => 'lab_info[state]', :value=>"{{data/state}}" }
+ %input{ :type=>:hidden, :name => 'lab_info[zip]', :value=>"{{data/zip}}" }
+ %input{ :type=>:hidden, :name => 'lab_info[telephone]', :value=>"{{data/telephone}}" }
= f.submit 'Select location', :class=>'select_location button'
// map display
#map_canvas_container
#map_canvas{:style => "width:500px; height:350px"}