Skip to content

Commit

Permalink
move owner to own column
Browse files Browse the repository at this point in the history
  • Loading branch information
rrelyea committed Jun 19, 2023
1 parent 4687c1d commit 4f3083a
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions Pages/Portfolio.razor
Original file line number Diff line number Diff line change
Expand Up @@ -149,23 +149,27 @@ Portfolio@(stepPath==null?": review":": "+stepPath.Replace('-',' ')) - bogle.too
<br/>
}

@((MarkupString)boldUnderline("Current Retirement Assets:"))&nbsp;
<br/>

@if (familyData.Accounts.Count > 0) {
@((MarkupString)boldUnderline("Current Retirement Assets:"))<br/>
}
<table>
<tr style=vertical-align:bottom>
<th>Account</th>
<th style=padding-left:8px>Type</th>
<th style=padding-left:8px>Ticker</th>
<th style=padding-left:8px><button @onclick=@refreshPrices title=Refresh>🔃</button><br/>$ / share</th>
<th style=padding-left:8px>Shares</th>
<th style=padding-left:8px>$ Value</th>
</tr>
@if (familyData.Accounts.Count > 0) {
<tr style=vertical-align:bottom>
<th>Account</th>
<th style=padding-left:8px></th>
<th style=padding-left:8px>Type</th>
<th style=padding-left:8px>Ticker</th>
<th style=padding-left:8px><button @onclick=@refreshPrices title=Refresh>🔃</button><br/>$ / share</th>
<th style=padding-left:8px>Shares</th>
<th style=padding-left:8px>$ Value</th>
</tr>
}
@foreach (var account in familyData.Accounts) {
@foreach (var investment in account.Investments) {
<tr>
<td>@((account.Custodian != null ? account.Custodian + " ": "")+ account.Note)</td>
<td style=padding-left:8px>@((MarkupString)((account.Identifier != null ? "<span>"+account.Identifier+"&nbsp;</span>" : "") + account.AccountType))</td>
<td style=padding-left:8px>@account.Identifier</td>
<td style=padding-left:8px>@account.AccountType</td>
<td style=padding-left:8px title=@investment.Name>@investment.Ticker</td>
<td style=text-align:right;padding-left:8px>@formatDoubleTwoDecimal(investment.Price)</td>
<td style=text-align:right;padding-left:8px>@formatDoubleFourDecimal(investment.Shares)</td>
Expand Down

0 comments on commit 4f3083a

Please sign in to comment.