Update rendering and shipping_type_selector directive

This commit is contained in:
Matt-Yorkley
2022-01-16 11:02:28 +00:00
parent a6ef7ca17f
commit 31b4c06ea3
3 changed files with 4 additions and 6 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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 }}