[#4182] Style the labor and overhead sections of the table a bit.
This commit is contained in:
1 parent
5cc66ddb09
commit
e199c77bae
2 files changed
+5
-3
No files matched your search
@@ -8,9 +8,8 @@ module ContractsHelper
|
|||||||
|
|
||||||
def format_budget_for_deliverable(deliverable, spent, total)
|
def format_budget_for_deliverable(deliverable, spent, total)
|
||||||
if total > 0 || spent > 0
|
if total > 0 || spent > 0
|
||||||
content_tag(:span, h(number_to_currency(spent, :unit => '')), :class => 'spent-amount') +
|
content_tag(:div, h(number_to_currency(spent, :unit => '')), :class => 'spent-amount') +
|
||||||
" " +
|
content_tag(:div, h(number_to_currency(total, :unit => '')), :class => 'total-amount')
|
||||||
content_tag(:span, h(number_to_currency(total, :unit => '')), :class => 'total-amount')
|
|
||||||
else
|
else
|
||||||
'---'
|
'---'
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -23,3 +23,6 @@ a.contract-delete {color: red; }
|
|||||||
/* Positioning */
|
/* Positioning */
|
||||||
#deliverable-finances ol li { display: inline; }
|
#deliverable-finances ol li { display: inline; }
|
||||||
#deliverable-finances ol li label { float: none; margin-left: 0; }
|
#deliverable-finances ol li label { float: none; margin-left: 0; }
|
||||||
|
|
||||||
|
#deliverables td.labor, #deliverables td.overhead, #deliverables td.fixed { text-align: center; }
|
||||||
|
#deliverables td.labor div, #deliverables td.overhead div, #deliverables td.fixed div { text-align: right; display: inline; padding: 0 5px; width: 50%; }
|
||||||
Reference in new issue
Block a user