Include AM/PM in datetime fields
parent
15f5ba7b47
commit
5b7bd5140c
|
@ -40,7 +40,7 @@
|
||||||
<PropertyColumn Property="e => e.Length" Sortable Title="Size">
|
<PropertyColumn Property="e => e.Length" Sortable Title="Size">
|
||||||
@ByteSize.FromBytes(context.Length)
|
@ByteSize.FromBytes(context.Length)
|
||||||
</PropertyColumn>
|
</PropertyColumn>
|
||||||
<PropertyColumn Property="e => e.LastWriteTime" Format="MM/dd/yyyy hh:mm" Sortable Title="Modified" />
|
<PropertyColumn Property="e => e.LastWriteTime" Format="MM/dd/yyyy hh:mm tt" Sortable Title="Modified" />
|
||||||
|
|
||||||
</Table>
|
</Table>
|
||||||
</GridCol>
|
</GridCol>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<PropertyColumn Property="a => a.CreatedBy">
|
<PropertyColumn Property="a => a.CreatedBy">
|
||||||
@context.CreatedBy?.UserName
|
@context.CreatedBy?.UserName
|
||||||
</PropertyColumn>
|
</PropertyColumn>
|
||||||
<PropertyColumn Property="a => a.CreatedOn" Format="MM/dd/yyyy hh:mm" />
|
<PropertyColumn Property="a => a.CreatedOn" Format="MM/dd/yyyy hh:mm tt" />
|
||||||
<ActionColumn Title="">
|
<ActionColumn Title="">
|
||||||
<Space Style="display: flex; justify-content: end">
|
<Space Style="display: flex; justify-content: end">
|
||||||
<SpaceItem>
|
<SpaceItem>
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
</Column>
|
</Column>
|
||||||
<PropertyColumn Property="g => g.ClaimedOn" Format="MM/dd/yyyy hh:mm" Sortable />
|
<PropertyColumn Property="g => g.ClaimedOn" Format="MM/dd/yyyy hh:mm tt" Sortable />
|
||||||
<ActionColumn Title="">
|
<ActionColumn Title="">
|
||||||
<Space>
|
<Space>
|
||||||
<SpaceItem>
|
<SpaceItem>
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
<PropertyColumn Property="s => s.CreatedBy">
|
<PropertyColumn Property="s => s.CreatedBy">
|
||||||
@context.CreatedBy?.UserName
|
@context.CreatedBy?.UserName
|
||||||
</PropertyColumn>
|
</PropertyColumn>
|
||||||
<PropertyColumn Property="s => s.CreatedOn" Format="MM/dd/yyyy hh:mm" />
|
<PropertyColumn Property="s => s.CreatedOn" Format="MM/dd/yyyy hh:mm tt" />
|
||||||
<ActionColumn Title="">
|
<ActionColumn Title="">
|
||||||
<Space Style="display: flex; justify-content: end">
|
<Space Style="display: flex; justify-content: end">
|
||||||
<SpaceItem>
|
<SpaceItem>
|
||||||
|
|
|
@ -3,33 +3,35 @@
|
||||||
@inject GameService GameService
|
@inject GameService GameService
|
||||||
@inject NavigationManager NavigationManager
|
@inject NavigationManager NavigationManager
|
||||||
|
|
||||||
<Card Title="Games">
|
<PageHeader Title="Games">
|
||||||
<Body>
|
<PageHeaderExtra>
|
||||||
<Table TItem="Game" DataSource="@Games" Loading="@Loading">
|
<Button OnClick="() => Add()" Type="@ButtonType.Primary">Add Game</Button>
|
||||||
<Column TData="string">
|
</PageHeaderExtra>
|
||||||
<Image Src="@GetIcon(context)" Height="32" Width="32" Preview="false"></Image>
|
</PageHeader>
|
||||||
</Column>
|
|
||||||
<PropertyColumn Property="g => g.Title" Sortable />
|
<Table TItem="Game" DataSource="@Games" Loading="@Loading">
|
||||||
<PropertyColumn Property="g => g.SortTitle" Sortable />
|
<Column TData="string">
|
||||||
<PropertyColumn Property="g => g.ReleasedOn" Format="MM/dd/yyyy" Sortable />
|
<Image Src="@GetIcon(context)" Height="32" Width="32" Preview="false"></Image>
|
||||||
<PropertyColumn Property="g => g.CreatedOn" Format="MM/dd/yyyy hh:mm" Sortable />
|
</Column>
|
||||||
<PropertyColumn Property="g => g.CreatedBy" Sortable>
|
<PropertyColumn Property="g => g.Title" Sortable />
|
||||||
@context.CreatedBy?.UserName
|
<PropertyColumn Property="g => g.SortTitle" Sortable />
|
||||||
</PropertyColumn>
|
<PropertyColumn Property="g => g.ReleasedOn" Format="MM/dd/yyyy" Sortable />
|
||||||
<PropertyColumn Property="g => g.UpdatedOn" Format="MM/dd/yyyy hh:mm" Sortable />
|
<PropertyColumn Property="g => g.CreatedOn" Format="MM/dd/yyyy hh:mm tt" Sortable />
|
||||||
<PropertyColumn Property="g => g.UpdatedBy" Sortable>
|
<PropertyColumn Property="g => g.CreatedBy" Sortable>
|
||||||
@context.UpdatedBy?.UserName
|
@context.CreatedBy?.UserName
|
||||||
</PropertyColumn>
|
</PropertyColumn>
|
||||||
<ActionColumn Title="">
|
<PropertyColumn Property="g => g.UpdatedOn" Format="MM/dd/yyyy hh:mm tt" Sortable />
|
||||||
<Space Style="display: flex; justify-content: end">
|
<PropertyColumn Property="g => g.UpdatedBy" Sortable>
|
||||||
<SpaceItem>
|
@context.UpdatedBy?.UserName
|
||||||
<Button Type="@ButtonType.Text" Icon="@IconType.Outline.Edit" OnClick="() => Edit(context)" />
|
</PropertyColumn>
|
||||||
</SpaceItem>
|
<ActionColumn Title="">
|
||||||
</Space>
|
<Space>
|
||||||
</ActionColumn>
|
<SpaceItem>
|
||||||
</Table>
|
<Button OnClick="() => Edit(context)">Edit</Button>
|
||||||
</Body>
|
</SpaceItem>
|
||||||
</Card>
|
</Space>
|
||||||
|
</ActionColumn>
|
||||||
|
</Table>
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
IEnumerable<Game> Games { get; set; } = new List<Game>();
|
IEnumerable<Game> Games { get; set; } = new List<Game>();
|
||||||
|
@ -53,6 +55,11 @@
|
||||||
return $"/api/Games/{game.Id}/Icon.png";
|
return $"/api/Games/{game.Id}/Icon.png";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void Add()
|
||||||
|
{
|
||||||
|
NavigationManager.NavigateTo("/Games/Add");
|
||||||
|
}
|
||||||
|
|
||||||
private void Edit(Game game)
|
private void Edit(Game game)
|
||||||
{
|
{
|
||||||
NavigationManager.NavigateTo($"/Games/{game.Id}/Edit");
|
NavigationManager.NavigateTo($"/Games/{game.Id}/Edit");
|
||||||
|
|
Loading…
Reference in New Issue