mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Update rendering and shipping_type_selector directive
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
angular.module('Darkswarm').directive "shippingTypeSelector", ->
|
||||
# Builds selector for shipping types
|
||||
restrict: 'E'
|
||||
replace: true
|
||||
templateUrl: 'shipping_type_selector.html'
|
||||
restrict: 'C'
|
||||
link: (scope, elem, attr)->
|
||||
scope.shippingTypes =
|
||||
pickup: false
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
.light
|
||||
= t :hubs_filter_by
|
||||
= t :hubs_filter_delivery
|
||||
%shipping-type-selector
|
||||
= render "shops/shipping_type_selector"
|
||||
|
||||
.small-12.large-12.columns
|
||||
%h5.tdhead
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
%ul.small-block-grid-2.medium-block-grid-4.large-block-grid-2
|
||||
%ul.shipping-type-selector.small-block-grid-2.medium-block-grid-4.large-block-grid-2
|
||||
%active-selector{"ng-repeat" => "(name, selector) in selectors"}
|
||||
%i{"ng-class" => "selector.icon"}
|
||||
{{ selector.translation_key | t | capitalize }}
|
||||
{{ selector.translation_key | t | capitalize }}
|
||||
|
||||
Reference in New Issue
Block a user