mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-10 03:30:22 +00:00
Switching to placeholders and so on
This commit is contained in:
@@ -5,5 +5,3 @@ Darkswarm.directive "ofnDisableEnter", ()->
|
||||
code = e.keyCode || e.which
|
||||
if code == 13
|
||||
e.preventDefault()
|
||||
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
.row
|
||||
.large-9.columns
|
||||
%input{type: :text, "ng-model" => "query", value: "Search postcode, suburb or hub name...",
|
||||
%input{type: :text, "ng-model" => "query", placeholder: "Search postcode, suburb or hub name...",
|
||||
"ofn-disable-enter" => true}
|
||||
.large-3.columns
|
||||
Advanced search
|
||||
|
||||
@@ -2,7 +2,7 @@ collection Enterprise.is_distributor
|
||||
attributes :name, :id
|
||||
|
||||
child :address do
|
||||
attributes :city
|
||||
attributes :city, :zipcode
|
||||
node :state do |address|
|
||||
address.state.abbr
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user