Update Accounts page to link to account details

Make account rows clickable and add View button to navigate to the new AccountDetails page where users can see account info and manage linked cards.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
AJ
2025-10-11 22:30:14 -04:00
parent e0dabdc46d
commit be12d9e53e

View File

@@ -37,7 +37,7 @@
<tbody> <tbody>
@foreach (var account in Model.Accounts) @foreach (var account in Model.Accounts)
{ {
<tr> <tr style="cursor: pointer;" onclick="window.location='@Url.Page("/AccountDetails", new { id = account.Id })'">
<td>@account.Institution</td> <td>@account.Institution</td>
<td> <td>
<span class="badge bg-info">@account.AccountType</span> <span class="badge bg-info">@account.AccountType</span>
@@ -46,7 +46,8 @@
<td>@account.Owner</td> <td>@account.Owner</td>
<td>@(string.IsNullOrEmpty(account.Nickname) ? "-" : account.Nickname)</td> <td>@(string.IsNullOrEmpty(account.Nickname) ? "-" : account.Nickname)</td>
<td>@account.TransactionCount</td> <td>@account.TransactionCount</td>
<td class="text-end"> <td class="text-end" onclick="event.stopPropagation();">
<a asp-page="/AccountDetails" asp-route-id="@account.Id" class="btn btn-sm btn-primary">View</a>
<a asp-page="/EditAccount" asp-route-id="@account.Id" class="btn btn-sm btn-outline-primary">Edit</a> <a asp-page="/EditAccount" asp-route-id="@account.Id" class="btn btn-sm btn-outline-primary">Edit</a>
@if (account.TransactionCount == 0) @if (account.TransactionCount == 0)
{ {