fix Dashboard

This commit is contained in:
jojo aquino 2024-12-16 17:30:27 +00:00
parent aa7c41169f
commit 1b17da99b0
2 changed files with 9 additions and 9 deletions

View File

@ -69,8 +69,8 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@if(Model.CompletedDocuments.Count > 0){ @if(Model.IncompleteDocuments.Count > 0){
@foreach (var item in Model.CompletedDocuments) @foreach (var item in Model.IncompleteDocuments)
{ {
<tr> <tr>
<td>@item.Type</td> <td>@item.Type</td>
@ -104,9 +104,9 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@if (Model.CompletedDocuments.Count > 0) @if (Model.IdentificationDocuments.Count > 0)
{ {
@foreach (var item in Model.CompletedDocuments) @foreach (var item in Model.IdentificationDocuments)
{ {
<tr> <tr>
<td>@item.Type</td> <td>@item.Type</td>
@ -127,10 +127,10 @@
</table> </table>
</div> </div>
<div> <div>
<button class="btn btn-primary btn-sm" type="button"> <a href="/Principal/IdentificationDocument/IdentificationDocument/" class="btn btn-primary btn-sm" type="button">
<i class="fas fa-upload me-1"></i> <i class="fas fa-upload me-1"></i>
Upload Upload
</button> </a>
</div> </div>
</div> </div>
</div> </div>

View File

@ -8,8 +8,8 @@ namespace EnotaryoPH.Web.Pages.Principal.Dashboard
{ {
public class DashboardModel : PageModel public class DashboardModel : PageModel
{ {
private readonly NotaryoDBContext _notaryoDBContext;
private readonly ICurrentUserService _currentUserService; private readonly ICurrentUserService _currentUserService;
private readonly NotaryoDBContext _notaryoDBContext;
public DashboardModel(NotaryoDBContext notaryoDBContext, ICurrentUserService currentUserService) public DashboardModel(NotaryoDBContext notaryoDBContext, ICurrentUserService currentUserService)
{ {
@ -49,13 +49,13 @@ namespace EnotaryoPH.Web.Pages.Principal.Dashboard
{ {
Date = id.UploadedOn, Date = id.UploadedOn,
Type = id.Type, Type = id.Type,
Link = "#" Link = $"/Principal/IdentificationDocument/IdentificationDocument/{id.IdentificationDocument_UID}"
}) })
.ToList(); .ToList();
} }
public List<DashboardItem> CompletedDocuments { get; set; } public List<DashboardItem> CompletedDocuments { get; set; }
public List<DashboardItem> IncompleteDocuments { get; set; }
public List<DashboardItem> IdentificationDocuments { get; set; } public List<DashboardItem> IdentificationDocuments { get; set; }
public List<DashboardItem> IncompleteDocuments { get; set; }
} }
} }