Application creating but without past visas and visits
This commit is contained in:
		| @@ -13,7 +13,7 @@ | ||||
|         Expiration date:<br/> | ||||
|         <InputDate DisplayName="Expiration date of permission to destination Country" class="rounded" | ||||
|                    @bind-Value="PermissionToDestCountry.ExpirationDate" | ||||
|                    max="@formattedDate"/> | ||||
|                    min="@formattedDate"/> | ||||
|     </label><br/> | ||||
|     <ValidationMessage For="() => PermissionToDestCountry.ExpirationDate"></ValidationMessage> | ||||
| </div> | ||||
|   | ||||
| @@ -0,0 +1,34 @@ | ||||
| @using BlazorWebAssemblyVisaApiClient.Infrastructure.Services.DateTimeProvider | ||||
| @using VisaApiClient | ||||
|  | ||||
| <div> | ||||
|     <label> | ||||
|         Number:<br/> | ||||
|         <InputText DisplayName="Number of re-entry permit" class="rounded" | ||||
|                    @bind-Value="ReentryPermit.Number"/> | ||||
|     </label><br/> | ||||
|     <ValidationMessage For="() => ReentryPermit.Number"></ValidationMessage><br/> | ||||
|  | ||||
|     <label> | ||||
|         Expiration date:<br/> | ||||
|         <InputDate DisplayName="Expiration date of re-entry permit" class="rounded" | ||||
|                    @bind-Value="ReentryPermit.ExpirationDate" | ||||
|                    min="@formattedDate"/> | ||||
|     </label><br/> | ||||
|     <ValidationMessage For="() => ReentryPermit.ExpirationDate"></ValidationMessage> | ||||
| </div> | ||||
|  | ||||
| @code { | ||||
|     private string formattedDate = null!; | ||||
|  | ||||
|     [Parameter, EditorRequired] public ReentryPermitModel ReentryPermit { get; set; } = null!; | ||||
|  | ||||
|     [Inject] IDateTimeProvider DateTimeProvider { get; set; } = null!; | ||||
|  | ||||
|     protected override void OnInitialized() | ||||
|     { | ||||
|         formattedDate = DateTimeProvider.FormattedNow(); | ||||
|         ReentryPermit.ExpirationDate = DateTimeProvider.Now(); | ||||
|     } | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user