ref: master
plugins/orders/views/orders_plugin_admin/_index.html.slim
h1 = t('orders_plugin.lib.plugin.panel_button') = button :back, _('Back to control panel'), controller: 'profile_editor' div - if @purchases.present? and @sales.present? ul#orders-tabs.nav.nav-pills data-tabs="orders-tabs" li.active data-toggle="orders-tabs" a href="#purchases" = t('orders_plugin.terms.purchase.plural') li class=("#{'active' if @purchases.blank?}") data-toggle="orders-tabs" a href="#sales" = t('orders_plugin.terms.sale.plural') - if @purchases.present? #purchases.tab-pane = render 'orders_plugin_admin/purchases', actors: profile.purchases_all_suppliers, orders_owner: profile, orders: @purchases, month: @purchases_month, year: @purchases_year, wireframe_size: false - if @sales.present? #sales.tab-pane = render 'orders_plugin_admin/sales', actors: profile.sales_all_consumers, orders_owner: profile, orders: @sales, month: @sales_month, year: @purchases_year, wireframe_size: false