mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-15 04:14:24 +00:00
WIP: BOM Refactor, adding for_line_items action to enterprises controller
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
%div{ ng: { app: 'admin.enterprises', controller: 'enterprisesCtrl' } }
|
||||
.row{ 'ng-hide' => '!loaded()' }
|
||||
.row{ 'ng-hide' => '!loaded' }
|
||||
.controls{ :class => "sixteen columns alpha", :style => "margin-bottom: 15px;" }
|
||||
.four.columns.alpha
|
||||
%input{ :class => "fullwidth", :type => "text", :id => 'quick_search', 'ng-model' => 'quickSearch', :placeholder => 'Search By Name' }
|
||||
@@ -19,15 +19,15 @@
|
||||
%div.menu_item{ :class => "three columns alpha", 'ng-repeat' => "column in columns", 'ofn-toggle-column' => true }
|
||||
%span{ :class => 'one column alpha', :style => 'text-align: center'} {{ column.visible && "✓" || !column.visible && " " }}
|
||||
%span{ :class => 'two columns omega' } {{column.name }}
|
||||
.row{ 'ng-if' => '!loaded()' }
|
||||
.row{ 'ng-if' => '!loaded' }
|
||||
.sixteen.columns.alpha#loading
|
||||
%img.spinner{ src: "/assets/spinning-circles.svg" }
|
||||
%h1 LOADING ENTERPRISES
|
||||
.row{ :class => "sixteen columns alpha", 'ng-show' => 'loaded() && filteredEnterprises.length == 0'}
|
||||
.row{ :class => "sixteen columns alpha", 'ng-show' => 'loaded && filteredEnterprises.length == 0'}
|
||||
%h1#no_results No enterprises found.
|
||||
|
||||
|
||||
.row{ ng: { show: "loaded() && filteredEnterprises.length > 0" }, bindonce: true }
|
||||
.row{ ng: { show: "loaded && filteredEnterprises.length > 0" }, bindonce: true }
|
||||
%table.index#enterprises
|
||||
%col.name{ width: "28%", ng: { show: 'columns.name.visible' } }
|
||||
%col.producer{ width: "18%", ng: { show: 'columns.producer.visible' }}
|
||||
|
||||
Reference in New Issue
Block a user