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