mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Adding icons to shipping selectors
This commit is contained in:
@@ -7,8 +7,10 @@ Darkswarm.directive "shippingTypeSelector", (FilterSelectorsService)->
|
||||
delivery: false
|
||||
|
||||
scope.selectors =
|
||||
delivery: FilterSelectorsService.new()
|
||||
pickup: FilterSelectorsService.new()
|
||||
delivery: FilterSelectorsService.new
|
||||
icon: "ofn-i_039-delivery"
|
||||
pickup: FilterSelectorsService.new
|
||||
icon: "ofn-i_038-takeaway"
|
||||
|
||||
scope.emit = ->
|
||||
scope.shippingTypes =
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
%ul.small-block-grid-4
|
||||
%active-selector{"ng-repeat" => "(name, selector) in selectors"}
|
||||
%i{"ng-class" => "selector.icon"}
|
||||
{{ name | capitalize }}
|
||||
|
||||
Reference in New Issue
Block a user