|
|
|
@@ -1,11 +1,72 @@ |
|
|
|
@page "/keydata/{FromRoute}"
|
|
|
|
@using BlazorColorPicker
|
|
|
|
@inject NavigationManager NavigationManager
|
|
|
|
|
|
|
|
<div class="row px-3 h-100">
|
|
|
|
<div class="row no-gutters align-items-center justify-content-center w-100" style="padding-top:1em">
|
|
|
|
@if ("Found".Equals(FromRoute)) {
|
|
|
|
<h1>Gefundenes Velo</h1>
|
|
|
|
} else {
|
|
|
|
<h1>Vermisstes Velo</h1>
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
<div class="row no-gutters align-items-center justify-content-center w-100">
|
|
|
|
<h1>@FromRoute</h1>
|
|
|
|
|
|
|
|
<div class="mat-layout-grid w-100">
|
|
|
|
<div class="mat-layout-grid-inner">
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-1 justify-content-center">
|
|
|
|
<div>
|
|
|
|
<MatIconButton Class="mat-icon-large" Icon="photo_camera" />
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<MatIconButton Class="mat-icon-large" Icon="unarchive" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-3">
|
|
|
|
<div>
|
|
|
|
<MatCard Class="demo-mat-card">
|
|
|
|
<MatCardContent>
|
|
|
|
<MatCardMedia Square="true" Class="" />
|
|
|
|
</MatCardContent>
|
|
|
|
</MatCard>
|
|
|
|
</div> </div>
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-1">
|
|
|
|
<div>
|
|
|
|
<MatIconButton Class="mat-icon-large" Icon="location_on" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-3">
|
|
|
|
<div>
|
|
|
|
<MatCard Class="demo-mat-card">
|
|
|
|
<MatCardContent>
|
|
|
|
<MatCardMedia Square="true" Class="" />
|
|
|
|
</MatCardContent>
|
|
|
|
</MatCard>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4">
|
|
|
|
<MatButton Class="btn btn-light w-100 mdc-text-field--outlined" @onclick="OpenModal">
|
|
|
|
<div style="background-color:@color" class="buttonColor"></div> Farbe
|
|
|
|
</MatButton>
|
|
|
|
<ColorPicker Title="My Blazor ColorPicker" IsOpened="isOpened" Closed="ClosedEvent" MyColor="@color">
|
|
|
|
</ColorPicker>
|
|
|
|
</div>
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4">
|
|
|
|
<MatStringField Class="w-100 form-check-label" Label="Marke" Outlined="true" type="text"></MatStringField>
|
|
|
|
</div>
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4">
|
|
|
|
<MatSelect Class="w-100" Label="Typ" @bind-Value="value">
|
|
|
|
<MatOptionString></MatOptionString>
|
|
|
|
<MatOptionString Value="Mountain-Bike">Mountain-Bike</MatOptionString>
|
|
|
|
<MatOptionString Value="City-Bike">City-Bike</MatOptionString>
|
|
|
|
<MatOptionString Value="Child-Bike">Child-Bike</MatOptionString>
|
|
|
|
</MatSelect>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row no-gutters align-items-end justify-content-center w-100" style="padding-bottom:2em">
|
|
|
|
|
|
|
|
<div class="row no-gutters align-items-end justify-content-center w-100" style="padding-bottom:2em;padding-top:2em">
|
|
|
|
<div class="col" style="padding-right:0.5em">
|
|
|
|
<MatButton Class="w-100" Outlined="true" @onclick="Cancel">Abbrechen</MatButton>
|
|
|
|
</div>
|
|
|
|
@@ -20,6 +81,20 @@ |
|
|
|
[Parameter]
|
|
|
|
public string FromRoute { get; set; }
|
|
|
|
|
|
|
|
string value;
|
|
|
|
|
|
|
|
bool isOpened = false;
|
|
|
|
string color = "#F1F7E9";
|
|
|
|
|
|
|
|
void OpenModal() {
|
|
|
|
isOpened = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ClosedEvent(string value) {
|
|
|
|
color = value;
|
|
|
|
isOpened = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
private void Next() {
|
|
|
|
NavigationManager.NavigateTo("account/" + @FromRoute);
|
|
|
|
}
|