Using correct syntax for attributes on columns

This commit is contained in:
Rob Harrington
2016-05-19 12:43:28 +10:00
parent 604418d699
commit 924d155012
2 changed files with 5 additions and 5 deletions

View File

@@ -43,9 +43,9 @@
%input.red{ type: "button", value: "Save Changes", ng: { click: "submitAll(customers_form)", disabled: "!customers_form.$dirty" } }
%table.index#customers
%col.email{ width: "20%"}
%col.code{ width: "20%"}
%col.tags{ width: "50%"}
%col.email{ width: "20%", 'ng-show' => 'columns.email.visible' }
%col.code{ width: "20%", 'ng-show' => 'columns.code.visible' }
%col.tags{ width: "50%", 'ng-show' => 'columns.tags.visible' }
%col.actions{ width: "10%"}
%thead
%tr{ ng: { controller: "ColumnsCtrl" } }

View File

@@ -1,6 +1,6 @@
%tr.product.even
%td.producer{ ng: { show: 'columns.producer.visible' }, ng: { bind: '::producersByID[product.producer_id].name'} }
%td.product{ ng: { show: 'columns.product.visible' }, ng: { bind: '::product.name'} }
%td.producer{ ng: { show: 'columns.producer.visible', bind: '::producersByID[product.producer_id].name'} }
%td.product{ ng: { show: 'columns.product.visible', bind: '::product.name'} }
%td.sku{ ng: { show: 'columns.sku.visible' } }
%td.price{ ng: { show: 'columns.price.visible' } }
%td.on_hand{ ng: { show: 'columns.on_hand.visible' } }