Вытащил солюшен на уровень выше, чтобы прощё было дотнетить
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is failing
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone/push Build is failing
				
			This commit is contained in:
		| @@ -0,0 +1,38 @@ | ||||
| @using VisaApiClient | ||||
| <div> | ||||
|     <div > | ||||
|         <label > | ||||
|             Country:<br/> | ||||
|             <InputText class="rounded" @bind-Value="Address.Country"/> | ||||
|         </label><br/> | ||||
|         <ValidationMessage For="() => Address.Country"></ValidationMessage><br/> | ||||
|     </div> | ||||
|  | ||||
|     <div > | ||||
|         <label > | ||||
|             City:<br/> | ||||
|             <InputText class="rounded" @bind-Value="Address.City"/> | ||||
|         </label><br/> | ||||
|         <ValidationMessage For="() => Address.City"></ValidationMessage><br/> | ||||
|     </div> | ||||
|  | ||||
|     <div > | ||||
|         <label > | ||||
|             Street:<br/> | ||||
|             <InputText class="rounded" @bind-Value="Address.Street"/> | ||||
|         </label><br/> | ||||
|         <ValidationMessage For="() => Address.Street"></ValidationMessage><br/> | ||||
|     </div> | ||||
|  | ||||
|     <div > | ||||
|         <label > | ||||
|             Building:<br/> | ||||
|             <InputText class="rounded" @bind-Value="Address.Building"/> | ||||
|         </label><br/> | ||||
|         <ValidationMessage For="() => Address.Building"></ValidationMessage> | ||||
|     </div> | ||||
| </div> | ||||
|  | ||||
| @code { | ||||
|     [Parameter, EditorRequired] public AddressModel Address { get; set; } = null!; | ||||
| } | ||||
| @@ -0,0 +1,22 @@ | ||||
| @using VisaApiClient | ||||
| <div> | ||||
|     <div > | ||||
|         <label > | ||||
|             Email:<br/> | ||||
|             <InputText class="rounded" @bind-Value="AuthData.Email"/> | ||||
|         </label><br/> | ||||
|         <ValidationMessage For="() => AuthData.Email"></ValidationMessage><br/> | ||||
|     </div> | ||||
|  | ||||
|     <div > | ||||
|         <label > | ||||
|             Password:<br/> | ||||
|             <InputText type="password" class="rounded" @bind-Value="AuthData.Password"/> | ||||
|         </label><br/> | ||||
|         <ValidationMessage For="() => AuthData.Password"></ValidationMessage> | ||||
|     </div> | ||||
| </div> | ||||
|  | ||||
| @code { | ||||
|     [Parameter, EditorRequired] public AuthData AuthData { get; set; } = null!; | ||||
| } | ||||
| @@ -0,0 +1,30 @@ | ||||
| @using VisaApiClient | ||||
| <div> | ||||
|     <div > | ||||
|         <label> | ||||
|             First name@(Constants.RequiredFieldMarkup):<br/> | ||||
|             <InputText DisplayName="First name" class="rounded" @bind-Value="Name.FirstName"/> | ||||
|         </label><br/> | ||||
|         <ValidationMessage For="() => Name.FirstName"></ValidationMessage> | ||||
|     </div><br/> | ||||
|  | ||||
|     <div > | ||||
|         <label> | ||||
|             Surname@(Constants.RequiredFieldMarkup):<br/> | ||||
|             <InputText class="rounded" @bind-Value="Name.Surname"/> | ||||
|         </label><br/> | ||||
|         <ValidationMessage For="() => Name.Surname"></ValidationMessage> | ||||
|     </div><br/> | ||||
|  | ||||
|     <div > | ||||
|         <label> | ||||
|             Patronymic:<br/> | ||||
|             <InputText class="rounded" @bind-Value="Name.Patronymic"/> | ||||
|         </label><br/> | ||||
|         <ValidationMessage For="() => Name.Patronymic"></ValidationMessage> | ||||
|     </div> | ||||
| </div> | ||||
|  | ||||
| @code { | ||||
|     [Parameter, EditorRequired] public NameModel Name { get; set; } = null!; | ||||
| } | ||||
| @@ -0,0 +1,51 @@ | ||||
| @using BlazorWebAssemblyVisaApiClient.Infrastructure.Services.DateTimeProvider | ||||
| @using VisaApiClient | ||||
| <div> | ||||
|     <div > | ||||
|         <label> | ||||
|             Passport number:<br/> | ||||
|             <InputText DisplayName="Passport number" class="rounded" @bind-Value="Passport.Number"/> | ||||
|         </label><br/> | ||||
|         <ValidationMessage For="() => Passport.Number"></ValidationMessage> | ||||
|     </div><br/> | ||||
|  | ||||
|     <div > | ||||
|         <label> | ||||
|             Issuer:<br/> | ||||
|             <InputText class="rounded" @bind-Value="Passport.Issuer"/> | ||||
|         </label><br/> | ||||
|         <ValidationMessage For="() => Passport.Issuer"></ValidationMessage> | ||||
|     </div><br/> | ||||
|  | ||||
|     <div > | ||||
|         <label> | ||||
|             Issue date:<br/> | ||||
|             <InputDate DisplayName="Issue date" class="rounded" @bind-Value="Passport.IssueDate" max="@formattedDate"/> | ||||
|         </label><br/> | ||||
|         <ValidationMessage For="() => Passport.IssueDate"></ValidationMessage> | ||||
|     </div><br/> | ||||
|  | ||||
|     <div > | ||||
|         <label> | ||||
|             Expiration date:<br/> | ||||
|             <InputDate DisplayName="Expiration date" class="rounded" @bind-Value="Passport.ExpirationDate" min="@formattedDate"/> | ||||
|         </label><br/> | ||||
|         <ValidationMessage For="() => Passport.ExpirationDate"></ValidationMessage> | ||||
|     </div> | ||||
| </div> | ||||
|  | ||||
| @code { | ||||
|     private string formattedDate = null!; | ||||
|  | ||||
|     [Parameter, EditorRequired] public PassportModel Passport { get; set; } = null!; | ||||
|  | ||||
|     [Inject] IDateTimeProvider DateTimeProvider { get; set; } = null!; | ||||
|  | ||||
|     protected override void OnInitialized() | ||||
|     { | ||||
|         Passport.IssueDate = DateTime.Now; | ||||
|         Passport.ExpirationDate = DateTime.Now; | ||||
|         formattedDate = DateTimeProvider.FormattedNow(); | ||||
|     } | ||||
|  | ||||
| } | ||||
| @@ -0,0 +1,22 @@ | ||||
| @using BlazorWebAssemblyVisaApiClient.Validation.Applicants.Models | ||||
| <div> | ||||
|     <div > | ||||
|         <label > | ||||
|             Name:<br/> | ||||
|             <InputText class="rounded" @bind-Value="PlaceOfWork.Name"/> | ||||
|         </label><br/> | ||||
|         <ValidationMessage For="() => PlaceOfWork.Name"></ValidationMessage><br/> | ||||
|     </div> | ||||
|  | ||||
|     <div > | ||||
|         <label > | ||||
|             Phone number:<br/> | ||||
|             <InputText DisplayName="Phone number" class="rounded" @bind-Value="PlaceOfWork.PhoneNum"/> | ||||
|         </label><br/> | ||||
|         <ValidationMessage For="() => PlaceOfWork.PhoneNum"></ValidationMessage> | ||||
|     </div> | ||||
| </div> | ||||
|  | ||||
| @code { | ||||
|     [Parameter, EditorRequired] public PlaceOfWorkModel PlaceOfWork { get; set; } = null!; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user