mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-08 22:56:06 +00:00
ng-cloak order cycles selector, tabs and shopfront
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
%shop.darkswarm
|
||||
- content_for :order_cycle_form do
|
||||
|
||||
%div{"ng-controller" => "OrderCycleChangeCtrl"}
|
||||
%div{"ng-controller" => "OrderCycleChangeCtrl", "ng-cloak" => true}
|
||||
%closing{"ng-if" => "OrderCycle.selected()"}
|
||||
Next order closing
|
||||
%strong {{ OrderCycle.orders_close_at() | date_in_words }}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
%products.small-12.columns{"ng-controller" => "ProductsCtrl", "ng-show" => "order_cycle.order_cycle_id != null",
|
||||
%products.small-12.columns{"ng-controller" => "ProductsCtrl", "ng-show" => "order_cycle.order_cycle_id != null", "ng-cloak" => true,
|
||||
"infinite-scroll" => "incrementLimit()", "infinite-scroll-distance" => "1"}
|
||||
|
||||
// TODO: Needs an ng-show to slide content down
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#tabs{"ng-controller" => "TabsCtrl"}
|
||||
#tabs{"ng-controller" => "TabsCtrl", "ng-cloak" => true}
|
||||
.row
|
||||
%tabset
|
||||
-# Build all tabs.
|
||||
- for name, heading_cols in { about: ["About #{current_distributor.name}", 6],
|
||||
producers: ["Producers",2],
|
||||
- for name, heading_cols in { about: ["About #{current_distributor.name}", 6],
|
||||
producers: ["Producers",2],
|
||||
contact: ["Contact",2],
|
||||
groups: ["Groups",2]}
|
||||
groups: ["Groups",2]}
|
||||
-# tabs take tab path in 'active' and 'select' functions defined in TabsCtrl.
|
||||
- heading, cols = heading_cols
|
||||
%tab.columns{heading: heading,
|
||||
|
||||
Reference in New Issue
Block a user