Update display of expired balances on portfolio funding
This commit is contained in:
parent
ba97117a74
commit
c2101b007d
@ -21,7 +21,8 @@ export default {
|
||||
name: 'task-order-list',
|
||||
|
||||
props: {
|
||||
data: Array
|
||||
data: Array,
|
||||
expired: Boolean
|
||||
},
|
||||
|
||||
components: {
|
||||
@ -53,7 +54,7 @@ export default {
|
||||
sortFunc: numericSort
|
||||
},
|
||||
{
|
||||
displayName: 'Balance',
|
||||
displayName: this.expired ? 'Expired Balance' : 'Balance',
|
||||
attr: 'budget',
|
||||
class: "table-cell--align-right",
|
||||
sortFunc: numericSort
|
||||
|
@ -96,4 +96,10 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
table {
|
||||
td.unused-balance {
|
||||
color: $color-red;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -12,10 +12,11 @@
|
||||
</a>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro TaskOrderList(task_orders, label='success') %}
|
||||
{% macro TaskOrderList(task_orders, label='success', expired=False) %}
|
||||
<task-order-list
|
||||
inline-template
|
||||
v-bind:data='{{ task_orders | tojson }}'
|
||||
v-bind:expired='{{ 'true' if expired else 'false' }}'
|
||||
v-cloak
|
||||
>
|
||||
<div class='responsive-table-wrapper'>
|
||||
@ -56,8 +57,8 @@
|
||||
<td class="table-cell--align-right">
|
||||
<span v-html='formatDollars(taskOrder.budget)'></span>
|
||||
</td>
|
||||
<td class="table-cell--align-right">
|
||||
<span v-html='formatDollars(taskOrder.budget)'></span>
|
||||
<td v-bind:class="{ 'table-cell--align-right': true, 'unused-balance': expired && taskOrder.balance > 0 }">
|
||||
<span v-html='formatDollars(taskOrder.balance)'></span>
|
||||
</td>
|
||||
<td>
|
||||
<a v-bind:href="taskOrder.url" class="icon-link view-task-order-link">
|
||||
@ -134,7 +135,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% if expired_task_orders %}
|
||||
{{ TaskOrderList(expired_task_orders, label='') }}
|
||||
{{ TaskOrderList(expired_task_orders, label='', expired=True) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user