Basic styling for variant unit fields on BPE

This commit is contained in:
Rohan Mitchell
2013-12-06 14:30:38 +11:00
parent 8f6f37355c
commit 6956eb3f94
2 changed files with 14 additions and 3 deletions

View File

@@ -46,4 +46,15 @@ ul.column-list{
border-radius: 3px;
border: solid 1px darkgray;
list-style:none
}
}
table#listing_products.bulk {
td.unit {
input, select {
width: 100%;
}
select {
margin-bottom: 0.5em;
}
}
}

View File

@@ -27,7 +27,7 @@
{{ column.name }}
%br.clear
%br.clear
%table.index#listing_products
%table.index#listing_products.bulk
%thead
%tr
%th.left-actions
@@ -48,7 +48,7 @@
%select.select2{ 'ng-model' => 'product.supplier', :name => 'supplier', 'ofn-track-product' => 'supplier', 'ng-options' => 's.name for s in suppliers' }
%td{ 'ng-show' => 'columns.price.visible' }
%input{ 'ng-model' => 'product.price', 'ofn-decimal' => :true, :name => 'price', 'ofn-track-product' => 'price', :type => 'text' }
%td{ 'ng-show' => 'columns.unit.visible' }
%td.unit{ 'ng-show' => 'columns.unit.visible' }
%select.select2{ 'ng-model' => 'product.variant_unit_with_scale', :name => 'variant_unit_with_scale', 'ofn-track-product' => 'variant_unit_with_scale', 'ng-options' => 'unit[1] as unit[0] for unit in variant_unit_options' }
%input{ 'ng-model' => 'product.variant_unit_name', :name => 'variant_unit_name', 'ofn-track-product' => 'variant_unit_name', :type => 'text' }
%td{ 'ng-show' => 'columns.on_hand.visible' }