| @@ -60,7 +60,7 @@ | |||
| </div> | |||
| <div class="row no-gutters align-items-center w-100"> | |||
| <div class="col-12"> | |||
| <MatTextField Class="w-100" Label="@I18n["Phone"]" Outlined="true" type="text" @bind-Value="@Account.Phone" Required="true" | |||
| <MatTextField Class="w-100" Label="@I18n["Phone"]" Outlined="true" type="text" @bind-Value="@Account.Phone" | |||
| OnKeyDown="@InputCursorHandler.OnConstrainedFieldKeyDownHandlerAsync" maxlength="20" pattern="^([0-9]*)$"></MatTextField> | |||
| </div> | |||
| </div> | |||
| @@ -72,7 +72,7 @@ | |||
| </div> | |||
| <div class="row no-gutters align-items-center w-100"> | |||
| <div class="col-12"> | |||
| <MatStringField Class="w-100" Label="@I18n["Mail"]" Outlined="true" type="email" @bind-Value="@Account.Email" | |||
| <MatStringField Class="w-100" Label="@I18n["Mail"]" Outlined="true" type="email" @bind-Value="@Account.Email" Required="true" | |||
| OnKeyDown="@InputCursorHandler.OnKeyDownHandlerAsync" maxlength="50"></MatStringField> | |||
| </div> | |||
| </div> | |||
| @@ -161,7 +161,6 @@ | |||
| Toaster.ShowSuccess(I18n.GetString("Success.SaveUserdata.Title"), I18n.GetString("Success.SaveUserdata.Msg")); | |||
| NavigationManager.NavigateTo("caritas_services"); | |||
| } catch (ArgumentException) { | |||
| Toaster.ShowSuccess(I18n.GetString("Success.SaveUserdata.Title"), I18n.GetString("Success.SaveUserdata.Msg")); | |||
| Toaster.ShowWarning(I18n.GetString("Warning.MandatoryFields.Title"), I18n.GetString("Warning.MandatoryFields.Msg")); | |||
| } | |||
| } | |||
| @@ -171,7 +170,7 @@ | |||
| } | |||
| private string getZipCityLbl() { | |||
| return String.Format("{0} {1} ({2})", I18n.GetString("Zip"), I18n.GetString("City"), I18n.GetString("PlaceOfDiscovery")); | |||
| return String.Format("{0} {1}", I18n.GetString("Zip"), I18n.GetString("City")); | |||
| } | |||
| private void Next() { | |||
| @@ -76,7 +76,7 @@ | |||
| </div> | |||
| <div class="row no-gutters align-items-center w-100"> | |||
| <div class="col-12"> | |||
| <MatStringField Class="w-100" Label="@I18n["Mail"]" Outlined="true" type="text" @bind-Value="pucEmail" | |||
| <MatStringField Class="w-100" Label="@I18n["Mail"]" Outlined="true" type="email" @bind-Value="pucEmail" Required="true" | |||
| OnKeyDown="@InputCursorHandler.OnKeyDownHandlerAsync" maxlength="50"></MatStringField> | |||
| </div> | |||
| </div> | |||
| @@ -145,7 +145,7 @@ | |||
| } | |||
| private string getZipCityLbl() { | |||
| return String.Format("{0} {1} ({2})", I18n.GetString("Zip"), I18n.GetString("City"), I18n.GetString("PlaceOfDiscovery")); | |||
| return String.Format("{0} {1}", I18n.GetString("Zip"), I18n.GetString("City")); | |||
| } | |||
| private void refreshGUIFromDto() { | |||
| @@ -347,11 +347,11 @@ | |||
| private string getAddressLbl() { | |||
| return I18n.GetString("Street") + " (" + I18n.GetString("PlaceOfDiscovery") + ")"; | |||
| return I18n.GetString("Street"); | |||
| } | |||
| private string getZipCityLbl() { | |||
| return String.Format("{0} {1} ({2})", I18n.GetString("Zip"), I18n.GetString("City"), I18n.GetString("PlaceOfDiscovery")); | |||
| return String.Format("{0} {1}", I18n.GetString("Zip"), I18n.GetString("City")); | |||
| } | |||
| private async Task OnGatheringPicture(InputFileChangeEventArgs e) { | |||
| @@ -39,6 +39,7 @@ namespace cwebplusApp.Shared.Services { | |||
| notValid += String.IsNullOrEmpty(report.AbholStrasse) ? 1 : 0; | |||
| notValid += String.IsNullOrEmpty(report.AbholPLZ) ? 1 : 0; | |||
| notValid += String.IsNullOrEmpty(report.AbholOrt) ? 1 : 0; | |||
| notValid += String.IsNullOrEmpty(report.AbholMail) ? 1 : 0; | |||
| if (notValid > 0) { | |||
| throw new ArgumentException("ValidationException"); | |||
| } | |||
| @@ -61,7 +62,7 @@ namespace cwebplusApp.Shared.Services { | |||
| notValid += String.IsNullOrEmpty(account.Salutation) ? 1 : 0; | |||
| notValid += String.IsNullOrEmpty(account.Firstname) ? 1 : 0; | |||
| notValid += String.IsNullOrEmpty(account.Lastname) ? 1 : 0; | |||
| notValid += String.IsNullOrEmpty(account.Phone) ? 1 : 0; | |||
| notValid += String.IsNullOrEmpty(account.Email) ? 1 : 0; | |||
| if (notValid > 0) { | |||
| throw new ArgumentException("ValidationException"); | |||
| } | |||
| @@ -10,7 +10,7 @@ | |||
| <PropertyGroup> | |||
| <TargetFramework>net5.0</TargetFramework> | |||
| <ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest> | |||
| <Version>0.9.8</Version> | |||
| <Version>0.9.9</Version> | |||
| </PropertyGroup> | |||
| <ItemGroup> | |||
| @@ -1,6 +1,8 @@ | |||
| { | |||
| "host_base_url": "https://integrate.dynalias.net:9443/Fundvelo/", | |||
| //"host_base_url": "http://localhost:63733/", | |||
| //"host_base_url": "https://vm-caritas/Fundvelo/", | |||
| "host_base_url": "https://integrate.dynalias.net:9443/Fundvelo/", | |||
| //"host_base_url": "https://cwebplus.ch/Fundvelo/", | |||
| "subresource_url_colors": "api/{0}/{1}/fundvelo/colors", | |||
| "subresource_url_brands": "api/{0}/{1}/fundvelo/brands", | |||
| "subresource_url_types": "api/{0}/{1}/fundvelo/types", | |||
| @@ -3,7 +3,9 @@ | |||
| <head> | |||
| <title>Caritas PWA</title> | |||
| <base href="/" /> | |||
| <base href="/" /> <!--For localhost development--> | |||
| <!--<base href="/cwebplusApp/" />--> <!--For VM-CARITAS--> | |||
| <!--<base href="/cwebplusApp/" />--> <!--For cwebplus.ch--> | |||
| <meta charset="utf-8" /> | |||
| <meta name="description" content="Caritas PWA, developed by INTEGRATE AG, Switzerland"> | |||
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes" /> | |||
| @@ -2,7 +2,7 @@ | |||
| // This is because caching would make development more difficult (changes would not | |||
| // be reflected on the first load after each change). | |||
| const staticCacheName = 'site-static-v-0-9-8'; // IMPORTANT: CHANGE THE VERSION IN THIS NAME EVERY TIME THE APP IS DEPLOYED ON SERVER WITH CHANGES!!! | |||
| const staticCacheName = 'site-static-v-0-9-9'; // IMPORTANT: CHANGE THE VERSION IN THIS NAME EVERY TIME THE APP IS DEPLOYED ON SERVER WITH CHANGES!!! | |||
| const appsettings_url = 'appsettings.json'; | |||
| const assets = [ | |||
| './', | |||