Improve layout of Account view
This commit is contained in:
parent
58683a33fb
commit
e85cf0ea55
@ -14,30 +14,34 @@ export default {
|
||||
|
||||
<template>
|
||||
<v-container>
|
||||
<table class="container col-lg-12" id="content">
|
||||
<h1>{{$store.getters.CurrentAccount.Name}}</h1>
|
||||
<p>
|
||||
Current Balance: {{$store.getters.CurrentAccount.Balance.Int / 100}}
|
||||
</p>
|
||||
<table>
|
||||
<tr v-for="transaction in $store.getters.Transactions" class="{{transaction.Date.After now ? 'future' : ''}}">
|
||||
<td>{{transaction.Date.substring(0, 10)}}</td>
|
||||
<td style="width: 90px;">{{transaction.Date.substring(0, 10)}}</td>
|
||||
<!--<td>
|
||||
{{transaction.Account}}
|
||||
</td>-->
|
||||
<td>
|
||||
<td style="max-width: 150px;">
|
||||
{{transaction.Payee}}
|
||||
</td>
|
||||
<td>
|
||||
<td style="max-width: 200px;">
|
||||
{{transaction.CategoryGroup ? transaction.CategoryGroup + " : " + transaction.Category : ""}}
|
||||
</td>
|
||||
<td>
|
||||
{{transaction.GroupID ? "☀" : ""}}
|
||||
</td>
|
||||
<td class="cutoff">
|
||||
<a :href="'/budget/'+$store.getters.CurrentBudget.ID+'/transaction/'+transaction.ID">{{transaction.Memo}}</a>
|
||||
</td>
|
||||
<td>
|
||||
<td style="width: 80px;" :class="transaction.Amount.Int < 0 ? 'negative' : ''">
|
||||
{{transaction.Amount.Int / 100}}
|
||||
</td>
|
||||
<td>
|
||||
<td style="width: 20px;">
|
||||
{{transaction.Status == "Reconciled" ? "✔" : (transaction.Status == "Uncleared" ? "" : "*")}}
|
||||
</td>
|
||||
<td style="width: 20px;">
|
||||
{{transaction.GroupID ? "☀" : ""}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</v-container>
|
||||
|
Loading…
x
Reference in New Issue
Block a user