sharee.bike-App/Meinkonrad/TINK/View/FeedbackPopup.xaml

159 lines
4.5 KiB
Plaintext
Raw Normal View History

2022-11-25 09:55:23 +01:00
<?xml version="1.0" encoding="utf-8" ?>
2021-11-07 19:42:59 +01:00
<xct:Popup xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:xct="http://xamarin.com/schemas/2020/toolkit"
xmlns:local="clr-namespace:TINK.View"
x:TypeArguments="local:FeedbackPopup+Result"
2022-08-30 15:42:25 +02:00
xmlns:sharedGui="clr-namespace:ShareeSharedGuiLib.View"
xmlns:resources="clr-namespace:TINK.MultilingualResources;assembly=TINKLib"
2023-08-31 12:20:06 +02:00
IsLightDismissEnabled="false"
2022-08-30 15:42:25 +02:00
x:Class="TINK.View.FeedbackPopup">
2022-09-06 16:08:19 +02:00
2023-05-11 17:39:28 +02:00
<xct:Popup.Resources>
<x:String x:Key="check_circle">&#xf058;</x:String>
2023-08-31 12:20:06 +02:00
<x:String x:Key="WriteFeedback">&#xf044;</x:String>
2023-05-11 17:39:28 +02:00
</xct:Popup.Resources>
2022-09-06 16:08:19 +02:00
2023-05-11 17:39:28 +02:00
<ScrollView
Orientation="Vertical"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand">
2022-09-06 16:08:19 +02:00
2023-05-11 17:39:28 +02:00
<StackLayout
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand"
2023-08-31 12:20:06 +02:00
Padding="0,0,0,400">
2023-05-11 17:39:28 +02:00
2023-08-31 12:20:06 +02:00
<!-- Head -->
<Grid
Padding="0,30,0,10"
ColumnDefinitions="10,Auto,1*,10"
ColumnSpacing="10"
HorizontalOptions="CenterAndExpand">
<!--icon-->
<Image
Grid.Column="1"
HorizontalOptions="End">
2023-05-11 17:39:28 +02:00
<Image.Source>
2023-08-31 12:20:06 +02:00
<FontImageSource
Glyph="{StaticResource WriteFeedback}"
FontFamily="FA-S"
Size="40"
Color="Black"/>
2023-05-11 17:39:28 +02:00
</Image.Source>
</Image>
2023-08-31 12:20:06 +02:00
<!--text-->
<Label
Grid.Column="2"
TextType="Html"
Text="{x:Static resources:AppResources.ActionGiveFeedback}"
FontSize="Large"
HorizontalOptions="StartAndExpand"
VerticalOptions="Center"
TextColor="Black"
Padding="0">
</Label>
</Grid>
<BoxView
Margin="20,0,20,10"
HeightRequest="1"
WidthRequest="400"
HorizontalOptions="Center"
Color="{DynamicResource primary-back-title-color}"/>
2023-05-11 17:39:28 +02:00
<!-- Content -->
<StackLayout
Margin="10"
Spacing="10">
<!-- Battery level -->
2022-11-25 09:55:23 +01:00
<sharedGui:BarLevelInputView
2023-08-31 12:20:06 +02:00
x:Name="BarLevelInputView"
HorizontalOptions="Center"/>
2023-05-11 17:39:28 +02:00
<!-- Is bike okay? -->
<Grid
2023-08-31 12:20:06 +02:00
ColumnDefinitions="*,Auto,*"
2023-05-11 17:39:28 +02:00
RowDefinitions="Auto,Auto"
Margin="0,20,0,0">
2023-08-31 12:20:06 +02:00
<Grid
2023-05-11 17:39:28 +02:00
Grid.Column="1"
2023-08-31 12:20:06 +02:00
ColumnDefinitions="1*,Auto,Auto">
<Label
Grid.Column="0"
FontAttributes="Bold"
HorizontalTextAlignment="End"
Text= "{x:Static resources:AppResources.MarkingReturnBikeBikeIsStateOkQuestion}">
</Label>
<Switch
Grid.Column="1"
2023-05-11 17:39:28 +02:00
VerticalOptions="Center"
HorizontalOptions="End"
x:Name="bikeIsOkSwitch"
IsToggled="True"/>
2023-08-31 12:20:06 +02:00
<Label
Grid.Column="2"
FontSize="Small"
2023-05-11 17:39:28 +02:00
VerticalOptions="Center"
HorizontalOptions="Start">
2023-08-31 12:20:06 +02:00
<Label.Triggers>
<DataTrigger TargetType="Label" Binding="{Binding Source={x:Reference bikeIsOkSwitch}, Path=IsToggled}" Value="False">
<Setter Property="Text" Value="{x:Static resources:AppResources.MessageAnswerNo}"/>
</DataTrigger>
<DataTrigger TargetType="Label" Binding="{Binding Source={x:Reference bikeIsOkSwitch}, Path=IsToggled}" Value="True">
<Setter Property="Text" Value="{x:Static resources:AppResources.MessageAnswerYes}"/>
</DataTrigger>
</Label.Triggers>
</Label>
</Grid>
2023-05-11 17:39:28 +02:00
<!-- Text input bike is not OK -->
2023-08-31 12:20:06 +02:00
<StackLayout Grid.Row="1"
2023-05-11 17:39:28 +02:00
Grid.Column="0"
2023-08-31 12:20:06 +02:00
Grid.ColumnSpan="3"
Padding="1"
BackgroundColor="{DynamicResource primary-back-title-color}">
<StackLayout.Triggers>
<DataTrigger TargetType="StackLayout"
Binding="{Binding Source={x:Reference bikeIsOkSwitch}, Path=IsToggled}"
Value="False">
2023-05-11 17:39:28 +02:00
<Setter Property="IsVisible" Value="True"/>
2023-08-31 12:20:06 +02:00
<Setter Property="HeightRequest" Value="100"/>
</DataTrigger>
<DataTrigger TargetType="StackLayout"
Binding="{Binding Source={x:Reference bikeIsOkSwitch}, Path=IsToggled}"
Value="True">
<Setter Property="IsVisible" Value="False"/>
<Setter Property="HeightRequest" Value="0"/>
2023-05-11 17:39:28 +02:00
</DataTrigger>
2023-08-31 12:20:06 +02:00
</StackLayout.Triggers>
<Editor
x:Name="feedbackMessage"
HeightRequest="100"
Placeholder="{x:Static resources:AppResources.MarkingReturnBikeErrorDescriptionInputPlaceholder}"
Text=""
BackgroundColor="White">
</Editor>
</StackLayout>
2023-05-11 17:39:28 +02:00
</Grid>
<!-- Buttons -->
<Button
WidthRequest="100"
Clicked="OnOkClicked"
Text="{x:Static resources:AppResources.MessageAnswerOk}"/>
</StackLayout>
</StackLayout>
</ScrollView>
2022-09-06 16:08:19 +02:00
2022-11-25 09:55:23 +01:00
</xct:Popup>