fix Dashboard
This commit is contained in:
parent
aa7c41169f
commit
1b17da99b0
@ -69,8 +69,8 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(Model.CompletedDocuments.Count > 0){
|
||||
@foreach (var item in Model.CompletedDocuments)
|
||||
@if(Model.IncompleteDocuments.Count > 0){
|
||||
@foreach (var item in Model.IncompleteDocuments)
|
||||
{
|
||||
<tr>
|
||||
<td>@item.Type</td>
|
||||
@ -104,9 +104,9 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (Model.CompletedDocuments.Count > 0)
|
||||
@if (Model.IdentificationDocuments.Count > 0)
|
||||
{
|
||||
@foreach (var item in Model.CompletedDocuments)
|
||||
@foreach (var item in Model.IdentificationDocuments)
|
||||
{
|
||||
<tr>
|
||||
<td>@item.Type</td>
|
||||
@ -127,10 +127,10 @@
|
||||
</table>
|
||||
</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>
|
||||
Upload
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -8,8 +8,8 @@ namespace EnotaryoPH.Web.Pages.Principal.Dashboard
|
||||
{
|
||||
public class DashboardModel : PageModel
|
||||
{
|
||||
private readonly NotaryoDBContext _notaryoDBContext;
|
||||
private readonly ICurrentUserService _currentUserService;
|
||||
private readonly NotaryoDBContext _notaryoDBContext;
|
||||
|
||||
public DashboardModel(NotaryoDBContext notaryoDBContext, ICurrentUserService currentUserService)
|
||||
{
|
||||
@ -49,13 +49,13 @@ namespace EnotaryoPH.Web.Pages.Principal.Dashboard
|
||||
{
|
||||
Date = id.UploadedOn,
|
||||
Type = id.Type,
|
||||
Link = "#"
|
||||
Link = $"/Principal/IdentificationDocument/IdentificationDocument/{id.IdentificationDocument_UID}"
|
||||
})
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public List<DashboardItem> CompletedDocuments { get; set; }
|
||||
public List<DashboardItem> IncompleteDocuments { get; set; }
|
||||
public List<DashboardItem> IdentificationDocuments { get; set; }
|
||||
public List<DashboardItem> IncompleteDocuments { get; set; }
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user