sharee.bike-App/Meinkonrad/TINK/View/Contact/ContactPage.xaml

193 lines
5.5 KiB
Plaintext
Raw Normal View History

2023-04-19 12:14:14 +02:00
<?xml version="1.0" encoding="utf-8" ?>
2021-11-07 19:42:59 +01:00
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:conv="clr-namespace:TINK.View"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:resources="clr-namespace:TINK.MultilingualResources;assembly=TINKLib"
2023-05-11 17:39:28 +02:00
x:Class="TINK.View.Contact.ContactPage"
BackgroundColor="{DynamicResource background-color}">
2022-08-30 15:42:25 +02:00
<Shell.TitleView>
<Grid ColumnDefinitions="Auto, 1*">
<Image Style="{StaticResource Image-Navbar}"/>
<Label Style="{StaticResource Label-Navbar}"
Text="{x:Static resources:AppResources.MarkingContactPageTitle}"/>
</Grid>
</Shell.TitleView>
2023-05-11 17:39:28 +02:00
2021-11-07 19:42:59 +01:00
<ContentPage.Resources>
<conv:StringNotNullOrEmptyToVisibleConverter x:Key="StringNotNullOrEmpty_Converter"/>
<conv:BoolInverterConverter x:Key="BoolInvert_Converter"/>
</ContentPage.Resources>
2023-05-11 17:39:28 +02:00
<ContentPage.Content>
2023-07-19 10:10:36 +02:00
<Grid
x:Name="ContactPageView"
RowSpacing="0"
RowDefinitions="1*,Auto">
<!-- Contact Support -->
<Frame
Grid.Row="0"
Padding="10"
Margin="0,10,0,5"
HorizontalOptions="FillAndExpand"
VerticalOptions="Start"
BackgroundColor="White"
HasShadow="False">
2023-05-11 17:39:28 +02:00
2023-07-19 10:10:36 +02:00
<StackLayout
Padding="20">
2023-05-11 17:39:28 +02:00
2023-07-19 10:10:36 +02:00
<!--Title Customer Support-->
<Label
Text="{x:Static resources:AppResources.MarkingContactCustomerSupportTitle}"
FontAttributes="Bold"
FontSize="Large"
/>
2023-05-11 17:39:28 +02:00
2023-07-19 10:10:36 +02:00
<!--No station selected-->
2023-05-11 17:39:28 +02:00
<StackLayout
IsVisible="{Binding Path=IsOperatorInfoAvaliable, Converter={StaticResource BoolInvert_Converter}}">
2023-07-19 10:10:36 +02:00
<Label
2023-05-11 17:39:28 +02:00
TextType="Html"
Text="{x:Static resources:AppResources.MarkingContactNoStationInfoAvailableNoButton}"/>
2023-07-19 10:10:36 +02:00
<Button
2023-05-11 17:39:28 +02:00
Text="{x:Static resources:AppResources.ActionSelectStation}"
Command="{Binding OnSelectStationRequest}"/>
2023-07-19 10:10:36 +02:00
</StackLayout>
2023-05-11 17:39:28 +02:00
2023-08-31 12:20:06 +02:00
<!--contact customer support of selected station-->
2023-07-19 10:10:36 +02:00
<StackLayout
2023-05-11 17:39:28 +02:00
IsVisible="{Binding IsOperatorInfoAvaliable}">
2023-07-19 10:10:36 +02:00
<!-- info about selected station -->
<StackLayout
Spacing="0">
<StackLayout
Orientation="Horizontal"
Spacing="0">
<Label
Text="{x:Static resources:AppResources.MarkingLastSelectedStation}"/>
<Label
Text=": "/>
</StackLayout>
<!-- Station -->
<StackLayout
Orientation="Horizontal"
Spacing="0">
<Label
Text="{Binding SelectedStationName}"/>
<Label
Text=": "/>
<Label
FontAttributes="Bold"
Text="{Binding SelectedStationId}"/>
</StackLayout>
<!--- Operator -->
<StackLayout
Orientation="Horizontal"
Spacing="0">
<Label
Text="{x:Static resources:AppResources.MarkingOperator}"/>
<Label
Text=": "/>
<Label
FontAttributes="Bold"
Text="{Binding ProviderNameText}"/>
</StackLayout>
2023-05-11 17:39:28 +02:00
2023-07-19 10:10:36 +02:00
</StackLayout>
<!--Buttons-->
<StackLayout
2023-09-22 11:38:42 +02:00
Spacing="5"
Margin="0,10,0,0">
2023-05-11 17:39:28 +02:00
<!--- Phone to operator -->
2023-07-19 10:10:36 +02:00
<Button
2023-09-22 11:38:42 +02:00
x:Name="PhoneNumberButton"
IsVisible="{Binding PhoneNumberText, Converter={StaticResource StringNotNullOrEmpty_Converter}}"
Text="{Binding PhoneNumberText}"
Command="{Binding OnPhoneRequest}">
<Button.Triggers>
<DataTrigger TargetType="Button" Binding="{Binding IsDoPhoncallAvailable}" Value="False">
<Setter Property="BorderColor" Value="DimGray" />
<Setter Property="BackgroundColor" Value="DimGray" />
<Setter Property="TextColor" Value="LightGray" />
</DataTrigger>
</Button.Triggers>
</Button>
2023-05-11 17:39:28 +02:00
2023-07-19 10:10:36 +02:00
<!--- Mail to operator -->
2023-05-11 17:39:28 +02:00
<Button
2023-09-22 11:38:42 +02:00
Style="{StaticResource SecondaryButton}"
x:Name="MailAddressButton"
IsVisible="{Binding MailAddressText, Converter={StaticResource StringNotNullOrEmpty_Converter}}"
Text="{Binding MailAddressText}"
Command="{Binding OnMailToOperatorRequest}">
<Button.Triggers>
<DataTrigger TargetType="Button" Binding="{Binding IsSendMailAvailable}" Value="False">
<Setter Property="BorderColor" Value="DimGray" />
<Setter Property="BackgroundColor" Value="LightGray" />
<Setter Property="TextColor" Value="DimGray" />
</DataTrigger>
</Button.Triggers>
</Button>
2023-07-19 10:10:36 +02:00
<!-- Change selected Station-->
<Button
2023-09-22 11:38:42 +02:00
Style="{StaticResource NoOutlineButtonWhite}"
2023-07-19 10:10:36 +02:00
Text="{x:Static resources:AppResources.ActionSelectAnotherStation}"
Command="{Binding OnSelectStationRequest}"/>
2023-05-11 17:39:28 +02:00
</StackLayout>
</StackLayout>
2023-07-19 10:10:36 +02:00
</StackLayout>
2023-05-11 17:39:28 +02:00
2023-07-19 10:10:36 +02:00
</Frame>
2023-05-11 17:39:28 +02:00
2023-07-19 10:10:36 +02:00
<!--- Contact app-developer -->
<StackLayout
2023-09-22 11:38:42 +02:00
Grid.Row="1"
Padding="10"
Margin="0,0,0,10"
VerticalOptions="End"
Spacing="0">
2023-05-11 17:39:28 +02:00
2023-07-19 10:10:36 +02:00
<BoxView
2023-09-22 11:38:42 +02:00
Margin="0,0,0,10"
HeightRequest="1"
WidthRequest="400"
HorizontalOptions="Center"
Color="DimGray"/>
<Button
x:Name="DiagnosticsButton"
Style="{StaticResource NoOutlineButtonBackgroundColor}"
Text="{x:Static resources:AppResources.ActionSendDiagnosis}"
Command="{Binding OnMailToOperatorRequest}">
<Button.Triggers>
<DataTrigger TargetType="Button" Binding="{Binding IsSendMailAvailable}" Value="False">
<Setter Property="TextColor" Value="DimGray" />
</DataTrigger>
</Button.Triggers>
</Button>
2023-05-11 17:39:28 +02:00
</StackLayout>
2023-07-19 10:10:36 +02:00
</Grid>
2023-05-11 17:39:28 +02:00
</ContentPage.Content>
2023-07-19 10:10:36 +02:00
2023-04-19 12:14:14 +02:00
</ContentPage>