@page "/projects"
@page "/projects/all"
@using Microsoft.AspNetCore.Authorization
@using Microsoft.AspNetCore.Components.Authorization
@rendermode @(new InteractiveServerRenderMode(prerender: false))
@attribute [Microsoft.AspNetCore.Authorization.Authorize]
@inject ApiClientService ApiClient
@inject NavigationManager Navigation
@inject IJSRuntime JS
@inject AuthenticationStateProvider AuthStateProvider
@inject MenuAuthorizationService MenuAuthorization
@(isAdmin ? "Manage all projects." : "Your assigned projects.")
| No. | Name | Start Date | End Date | Created | Actions |
|---|---|---|---|---|---|
| @((currentPage - 1) * pageSize + entry.index + 1) |
@if (!string.IsNullOrEmpty(project.Description))
{
@project.Description } |
@DisplayFormats.Date(project.StartDate) | @DisplayFormats.Date(project.EndDate) | @DisplayFormats.Date(project.CreatedAt) |
@if (canEditProject || canDeleteProject)
{
@if (canEditProject)
{
}
@if (canDeleteProject)
{
}
}
|
@nameErrorMessage
}@dateErrorMessage
} @if (!string.IsNullOrEmpty(errorMessage)) {@errorMessage
Project: @assigningProjectName
Select users to assign to this project. They will only see this project's tasks when they log in.
@if (isLoadingUsers) {@selectedUserIds.Count user(s) selected
} @if (!string.IsNullOrEmpty(assignError)) {@assignError
@assignSuccess