| @@ -4,7 +4,7 @@ | |||
| <DebuggerFlavor>ProjectDebugger</DebuggerFlavor> | |||
| </PropertyGroup> | |||
| <PropertyGroup> | |||
| <ActiveDebugProfile>CaritasPWA</ActiveDebugProfile> | |||
| <ActiveDebugProfile>IIS Express</ActiveDebugProfile> | |||
| <NameOfLastUsedPublishProfile>IISProfile</NameOfLastUsedPublishProfile> | |||
| </PropertyGroup> | |||
| <ItemGroup> | |||
| @@ -1,5 +1,4 @@ | |||
| @page "/keydata/{FromRoute}" | |||
| @using BlazorColorPicker | |||
| @inject NavigationManager NavigationManager | |||
| @inject IStringLocalizer<Resources> i18n | |||
| @@ -32,7 +31,7 @@ | |||
| </MatCard> | |||
| </div> | |||
| </div> | |||
| <div class="mat-layout-grid-cell mat-layout-grid-cell-span-1"> | |||
| <div class="mat-layout-grid-cell mat-layout-grid-cell-span-1 justify-content-center"> | |||
| <div> | |||
| <MatIconButton Class="mat-icon-large" Icon="location_on" /> | |||
| </div> | |||
| @@ -46,14 +45,28 @@ | |||
| </MatCard> | |||
| </div> | |||
| </div> | |||
| <div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-8-tablet mat-layout-grid-cell-span-4-desktop"> | |||
| <div class="mat-layout-grid-inner"> | |||
| <div class="mat-layout-grid-cell mat-layout-grid-cell-span-12-phone mat-layout-grid-cell-span-4-tablet mat-layout-grid-cell-span-12-desktop"> | |||
| <MatSelectValue FullWidth="true" Outlined="true" Label="@i18n["Color"]" @bind-Value="colorValue" Items="@colorItems" ValueSelector="@(i=>i.RGB)"> | |||
| <ChildContent> | |||
| <span>@colorValue</span> | |||
| @*<span>@selectedColor?.RGB</span>*@ | |||
| </ChildContent> | |||
| <div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-4-tablet mat-layout-grid-cell-span-12-desktop"> | |||
| <MatStringField Class="w-100 form-check-label" Label="@getAddressLbl()" Outlined="true" type="text"></MatStringField> | |||
| </div> | |||
| <div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-4-tablet mat-layout-grid-cell-span-12-desktop"> | |||
| <MatStringField Class="w-100 form-check-label" Label="@getPlaceLbl()" Outlined="true" type="text"></MatStringField> | |||
| </div> | |||
| <div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-4-tablet mat-layout-grid-cell-span-12-desktop"> | |||
| <MatStringField Class="w-100 form-check-label" Label="@i18n["Latitude"]" Outlined="true" type="text"></MatStringField> | |||
| </div> | |||
| <div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-4-tablet mat-layout-grid-cell-span-12-desktop"> | |||
| <MatStringField Class="w-100 form-check-label" Label="@i18n["Longitude"]" Outlined="true" type="text"></MatStringField> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| <div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-8-tablet mat-layout-grid-cell-span-12-desktop"> | |||
| <div class="mat-layout-grid-inner"> | |||
| <div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-4-tablet mat-layout-grid-cell-span-4-desktop"> | |||
| <MatSelectValue FullWidth="true" Outlined="true" Label="@i18n["Color"]" @bind-Value="selectedColor" Items="@colorItems" ValueSelector="@(i=>i)"> | |||
| <ItemTemplate> | |||
| <div> | |||
| <span class="btn-sm" style="background-color:rgb(@context.RGB); | |||
| @@ -65,10 +78,10 @@ | |||
| </ItemTemplate> | |||
| </MatSelectValue> | |||
| </div> | |||
| <div class="mat-layout-grid-cell mat-layout-grid-cell-span-12-phone mat-layout-grid-cell-span-4-tablet mat-layout-grid-cell-span-12-desktop"> | |||
| <div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-4-tablet mat-layout-grid-cell-span-4-desktop"> | |||
| <MatStringField Class="w-100 form-check-label" Label="@i18n["Brand"]" Outlined="true" type="text"></MatStringField> | |||
| </div> | |||
| <div class="mat-layout-grid-cell mat-layout-grid-cell-span-12-phone mat-layout-grid-cell-span-4-tablet mat-layout-grid-cell-span-12-desktop"> | |||
| <div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-4-tablet mat-layout-grid-cell-span-4-desktop"> | |||
| <MatSelect Class="w-100" Outlined="true" Label="@i18n["Type"]" @bind-Value="value"> | |||
| <MatOptionString></MatOptionString> | |||
| <MatOptionString Value="Mountain-Bike">Mountain-Bike</MatOptionString> | |||
| @@ -78,6 +91,7 @@ | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| @@ -98,7 +112,6 @@ | |||
| public string FromRoute { get; set; } | |||
| string value; | |||
| string colorValue; | |||
| ColorItem selectedColor; | |||
| private void Next() { | |||
| @@ -128,4 +141,13 @@ | |||
| } | |||
| } | |||
| string getAddressLbl() { | |||
| return i18n.GetString("Address") + " (" + getPlaceLbl() + ")"; | |||
| } | |||
| string getPlaceLbl() { | |||
| return @FromRoute == "Found" ? i18n.GetString("PlaceOfDiscovery") : i18n.GetString("PlaceOfLoss"); | |||
| } | |||
| } | |||
| @@ -240,6 +240,15 @@ namespace CaritasPWA.Shared.ResourceFiles { | |||
| } | |||
| } | |||
| /// <summary> | |||
| /// Sucht eine lokalisierte Zeichenfolge, die Latitude ähnelt. | |||
| /// </summary> | |||
| public static string Latitude { | |||
| get { | |||
| return ResourceManager.GetString("Latitude", resourceCulture); | |||
| } | |||
| } | |||
| /// <summary> | |||
| /// Sucht eine lokalisierte Zeichenfolge, die Learn more ähnelt. | |||
| /// </summary> | |||
| @@ -267,6 +276,15 @@ namespace CaritasPWA.Shared.ResourceFiles { | |||
| } | |||
| } | |||
| /// <summary> | |||
| /// Sucht eine lokalisierte Zeichenfolge, die Longitude ähnelt. | |||
| /// </summary> | |||
| public static string Longitude { | |||
| get { | |||
| return ResourceManager.GetString("Longitude", resourceCulture); | |||
| } | |||
| } | |||
| /// <summary> | |||
| /// Sucht eine lokalisierte Zeichenfolge, die E-Mail ähnelt. | |||
| /// </summary> | |||
| @@ -303,6 +321,24 @@ namespace CaritasPWA.Shared.ResourceFiles { | |||
| } | |||
| } | |||
| /// <summary> | |||
| /// Sucht eine lokalisierte Zeichenfolge, die Place Of Discovery ähnelt. | |||
| /// </summary> | |||
| public static string PlaceOfDiscovery { | |||
| get { | |||
| return ResourceManager.GetString("PlaceOfDiscovery", resourceCulture); | |||
| } | |||
| } | |||
| /// <summary> | |||
| /// Sucht eine lokalisierte Zeichenfolge, die Place Of Loss ähnelt. | |||
| /// </summary> | |||
| public static string PlaceOfLoss { | |||
| get { | |||
| return ResourceManager.GetString("PlaceOfLoss", resourceCulture); | |||
| } | |||
| } | |||
| /// <summary> | |||
| /// Sucht eine lokalisierte Zeichenfolge, die Save ähnelt. | |||
| /// </summary> | |||
| @@ -177,6 +177,9 @@ | |||
| <data name="Lastname" xml:space="preserve"> | |||
| <value>Nachname</value> | |||
| </data> | |||
| <data name="Latitude" xml:space="preserve"> | |||
| <value>Geogr. Breite</value> | |||
| </data> | |||
| <data name="Learnmore" xml:space="preserve"> | |||
| <value>Mehr erfahren</value> | |||
| </data> | |||
| @@ -186,6 +189,9 @@ | |||
| <data name="Logout" xml:space="preserve"> | |||
| <value>Logout</value> | |||
| </data> | |||
| <data name="Longitude" xml:space="preserve"> | |||
| <value>Geogr. Länge</value> | |||
| </data> | |||
| <data name="Mail" xml:space="preserve"> | |||
| <value>E-Mail</value> | |||
| </data> | |||
| @@ -198,6 +204,12 @@ | |||
| <data name="Phone" xml:space="preserve"> | |||
| <value>Telefon</value> | |||
| </data> | |||
| <data name="PlaceOfDiscovery" xml:space="preserve"> | |||
| <value>Fundort</value> | |||
| </data> | |||
| <data name="PlaceOfLoss" xml:space="preserve"> | |||
| <value>Verlustort</value> | |||
| </data> | |||
| <data name="Save" xml:space="preserve"> | |||
| <value>Speichern</value> | |||
| </data> | |||
| @@ -177,6 +177,9 @@ | |||
| <data name="Lastname" xml:space="preserve"> | |||
| <value>Nom de famille</value> | |||
| </data> | |||
| <data name="Latitude" xml:space="preserve"> | |||
| <value>Latitude</value> | |||
| </data> | |||
| <data name="Learnmore" xml:space="preserve"> | |||
| <value>En savoir plus</value> | |||
| </data> | |||
| @@ -186,6 +189,9 @@ | |||
| <data name="Logout" xml:space="preserve"> | |||
| <value>Déconnexion</value> | |||
| </data> | |||
| <data name="Longitude" xml:space="preserve"> | |||
| <value>Longitude</value> | |||
| </data> | |||
| <data name="Mail" xml:space="preserve"> | |||
| <value>Courrier</value> | |||
| </data> | |||
| @@ -198,6 +204,12 @@ | |||
| <data name="Phone" xml:space="preserve"> | |||
| <value>Téléphone</value> | |||
| </data> | |||
| <data name="PlaceOfDiscovery" xml:space="preserve"> | |||
| <value>Lieu de découverte</value> | |||
| </data> | |||
| <data name="PlaceOfLoss" xml:space="preserve"> | |||
| <value>Lieu de la perte</value> | |||
| </data> | |||
| <data name="Save" xml:space="preserve"> | |||
| <value>Sauver</value> | |||
| </data> | |||
| @@ -177,6 +177,9 @@ | |||
| <data name="Lastname" xml:space="preserve"> | |||
| <value>Cognome</value> | |||
| </data> | |||
| <data name="Latitude" xml:space="preserve"> | |||
| <value>Latitudine</value> | |||
| </data> | |||
| <data name="Learnmore" xml:space="preserve"> | |||
| <value>Per saperne di più</value> | |||
| </data> | |||
| @@ -186,6 +189,9 @@ | |||
| <data name="Logout" xml:space="preserve"> | |||
| <value>Disconnettiti</value> | |||
| </data> | |||
| <data name="Longitude" xml:space="preserve"> | |||
| <value>Longitudine</value> | |||
| </data> | |||
| <data name="Mail" xml:space="preserve"> | |||
| <value>E-Mail</value> | |||
| </data> | |||
| @@ -198,6 +204,12 @@ | |||
| <data name="Phone" xml:space="preserve"> | |||
| <value>Telefono</value> | |||
| </data> | |||
| <data name="PlaceOfDiscovery" xml:space="preserve"> | |||
| <value>Luogo del ritrovamento</value> | |||
| </data> | |||
| <data name="PlaceOfLoss" xml:space="preserve"> | |||
| <value>Luogo della perdita</value> | |||
| </data> | |||
| <data name="Save" xml:space="preserve"> | |||
| <value>Salva</value> | |||
| </data> | |||
| @@ -177,6 +177,9 @@ | |||
| <data name="Lastname" xml:space="preserve"> | |||
| <value>Last name</value> | |||
| </data> | |||
| <data name="Latitude" xml:space="preserve"> | |||
| <value>Latitude</value> | |||
| </data> | |||
| <data name="Learnmore" xml:space="preserve"> | |||
| <value>Learn more</value> | |||
| </data> | |||
| @@ -186,6 +189,9 @@ | |||
| <data name="Logout" xml:space="preserve"> | |||
| <value>Logout</value> | |||
| </data> | |||
| <data name="Longitude" xml:space="preserve"> | |||
| <value>Longitude</value> | |||
| </data> | |||
| <data name="Mail" xml:space="preserve"> | |||
| <value>E-Mail</value> | |||
| </data> | |||
| @@ -198,6 +204,12 @@ | |||
| <data name="Phone" xml:space="preserve"> | |||
| <value>Phone</value> | |||
| </data> | |||
| <data name="PlaceOfDiscovery" xml:space="preserve"> | |||
| <value>Place Of Discovery</value> | |||
| </data> | |||
| <data name="PlaceOfLoss" xml:space="preserve"> | |||
| <value>Place Of Loss</value> | |||
| </data> | |||
| <data name="Save" xml:space="preserve"> | |||
| <value>Save</value> | |||
| </data> | |||