-
-
Notifications
You must be signed in to change notification settings - Fork 719
/
_tabs.html.haml
18 lines (17 loc) · 974 Bytes
/
_tabs.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- if (@order&.distributor || current_distributor) == current_distributor
#shop-tabs{"data-controller": "tabs-and-panels", "data-action": "orderCycleSelected@window->tabs-and-panels#activateDefaultPanel", "data-tabs-and-panels-class-name-value": "selected"}
.tab-buttons
.flex.row
.columns.small-12.large-8
- shop_tabs.each do |tab|
.page
%a{ href: "##{tab[:name]}_panel", data: { action: "tabs-and-panels#activate", "tabs-and-panels-target": "tab" }, class: ("selected" if tab[:default]) }=tab[:title]
.columns.large-4.show-for-large-up
= render partial: "shopping_shared/order_cycles"
- shop_tabs.each do |tab|
%div{id: "#{tab[:name]}_panel", "data-tabs-and-panels-target": "panel #{'default' if tab[:default]}" }
.page-view
- if tab[:custom]
= render "shopping_shared/tabs/custom"
- else
= render "shopping_shared/tabs/#{tab[:name]}"