mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-11 23:17:48 +00:00
Renaming to state_name
This commit is contained in:
committed by
Rohan Mitchell
parent
659462327c
commit
e8045cac42
@@ -2,7 +2,7 @@ class Api::AddressSerializer < ActiveModel::Serializer
|
||||
cached
|
||||
delegate :cache_key, to: :object
|
||||
|
||||
attributes :id, :zipcode, :city, :state
|
||||
attributes :id, :zipcode, :city, :state, :state_id
|
||||
|
||||
def state
|
||||
object.state.andand.abbr
|
||||
|
||||
@@ -29,20 +29,3 @@
|
||||
{{ enterprise.name }}
|
||||
%div{"bo-if" => "!hub.producers"}
|
||||
|
||||
|
||||
/ .row.active_table_row.link{"ng-show" => "open()"}
|
||||
/ .cta-container.columns.small-12
|
||||
/ .row
|
||||
/ .columns.small-12
|
||||
/ %h5
|
||||
/ %span{"active-table-hub-link" => "hub", change: "Change hub to", shop: "Shop at"}
|
||||
/ .row
|
||||
/ .columns.small-12
|
||||
/ %a.button.hub{"bo-href" => "hub.path",
|
||||
/ "ng-class" => "{primary: hub.active, secondary: !hub.active}",
|
||||
/ "ofn-empties-cart" => "hub"}
|
||||
/ %i.ofn-i_033-open-sign{"bo-if" => "hub.active"}
|
||||
/ %i.ofn-i_032-closed-sign{"bo-if" => "!hub.active"}
|
||||
/ {{hub.name}}
|
||||
/ .button-address {{ [hub.address.city, hub.address.state] | printArray }}
|
||||
/ %i.ofn-i_007-caret-right
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
.columns.small-4.medium-2.large-2
|
||||
{{ hub.address.city }}
|
||||
.columns.small-2.medium-1.large-1
|
||||
{{ hub.address.state | uppercase }}
|
||||
{{ hub.address.state_name | uppercase }}
|
||||
|
||||
.columns.small-6.medium-3.large-4.text-right{"bo-if" => "hub.active"}
|
||||
%a.hub{"bo-href" => "hub.path", "ng-class" => "{primary: hub.active, secondary: !hub.active}", "ofn-empties-cart" => "hub"}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
attributes :city, :zipcode, :phone
|
||||
node :state do |address|
|
||||
node :state_name do |address|
|
||||
address.state.abbr
|
||||
end
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.highlight
|
||||
.highlight-top
|
||||
%p.right
|
||||
{{ [enterprise.address.city, enterprise.address.state] | printArray}}
|
||||
{{ [enterprise.address.city, enterprise.address.state_name] | printArray}}
|
||||
%h3
|
||||
%i.ofn-i_036-producers
|
||||
{{ enterprise.name }}
|
||||
|
||||
@@ -34,5 +34,5 @@
|
||||
%i.ofn-i_033-open-sign{"bo-if" => "hub.active"}
|
||||
%i.ofn-i_032-closed-sign{"bo-if" => "!hub.active"}
|
||||
{{hub.name}}
|
||||
.button-address {{ [hub.address.city, hub.address.state] | printArray }}
|
||||
.button-address {{ [hub.address.city, hub.address.state_name] | printArray }}
|
||||
%i.ofn-i_007-caret-right
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
.columns.small-6.medium-3.large-3
|
||||
{{ producer.address.city }}
|
||||
.columns.small-4.medium-3.large-4
|
||||
{{ producer.address.state | uppercase }}
|
||||
{{ producer.address.state_name | uppercase }}
|
||||
.columns.small-2.medium-2.large-1.text-right
|
||||
/ This forces line-height to be triggered
|
||||
%span
|
||||
%i{"ng-class" => "{'ofn-i_005-caret-down' : !open(), 'ofn-i_006-caret-up' : open()}"}
|
||||
%i{"ng-class" => "{'ofn-i_005-caret-down' : !open(), 'ofn-i_006-caret-up' : open()}"}
|
||||
|
||||
Reference in New Issue
Block a user