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:
@@ -37,7 +37,7 @@
|
||||
<tbody>
|
||||
@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>
|
||||
<span class="badge bg-info">@account.AccountType</span>
|
||||
@@ -46,7 +46,8 @@
|
||||
<td>@account.Owner</td>
|
||||
<td>@(string.IsNullOrEmpty(account.Nickname) ? "-" : account.Nickname)</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>
|
||||
@if (account.TransactionCount == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user