mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Fix date binding.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<Version>3.0.99.1246</Version>
|
||||
<Version>3.0.99.1253</Version>
|
||||
<Company>Canary Islands Computer Museum</Company>
|
||||
<Copyright>Copyright © 2003-2020 Natalia Portillo</Copyright>
|
||||
<Product>Canary Islands Computer Museum Website</Product>
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
@if (!_editing || !_unknownFounded)
|
||||
{
|
||||
<Validation Validator="@ValidateFounded">
|
||||
<DateEdit TValue="DateTime?" ReadOnly="!_editing" @bind-Text="@_model.Founded" >
|
||||
<DateEdit TValue="DateTime?" ReadOnly="!_editing" @bind-Date="@_model.Founded" >
|
||||
<Feedback>
|
||||
<ValidationError>@L["Please enter a valid foundation date."]</ValidationError>
|
||||
</Feedback>
|
||||
@@ -270,7 +270,7 @@
|
||||
!_unknownSold)
|
||||
{
|
||||
<Validation Validator="@ValidateSold">
|
||||
<DateEdit TValue="DateTime?" ReadOnly="!_editing" @bind-Text="@_model.Sold">
|
||||
<DateEdit TValue="DateTime?" ReadOnly="!_editing" @bind-Date="@_model.Sold">
|
||||
<Feedback>
|
||||
<ValidationError>@L["Please enter a valid sold/merge/bankruptcy date."]</ValidationError>
|
||||
</Feedback>
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
<Field>
|
||||
<FieldLabel>@L["Birth date"]</FieldLabel>
|
||||
<Validation Validator="@ValidateBirthDate">
|
||||
<DateEdit TValue="DateTime" ReadOnly="!_editing" @bind-Text="@_model.BirthDate" >
|
||||
<DateEdit TValue="DateTime" ReadOnly="!_editing" @bind-Date="@_model.BirthDate" >
|
||||
<Feedback>
|
||||
<ValidationError>@L["Please enter a valid birth date."]</ValidationError>
|
||||
</Feedback>
|
||||
@@ -174,7 +174,7 @@
|
||||
@if (!_editing || !_unknownDeathDate)
|
||||
{
|
||||
<Validation Validator="@ValidateDeathDate">
|
||||
<DateEdit TValue="DateTime?" ReadOnly="!_editing" @bind-Text="@_model.DeathDate" >
|
||||
<DateEdit TValue="DateTime?" ReadOnly="!_editing" @bind-Date="@_model.DeathDate" >
|
||||
<Feedback>
|
||||
<ValidationError>@L["Please enter a valid death date."]</ValidationError>
|
||||
</Feedback>
|
||||
|
||||
Reference in New Issue
Block a user