mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-15 06:36:38 +01:00
178 lines
4.9 KiB
XML
178 lines
4.9 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<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"
|
|
x:Class="TINK.View.Contact.ContactPage"
|
|
BackgroundColor="{DynamicResource background-color}">
|
|
|
|
<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>
|
|
|
|
<ContentPage.Resources>
|
|
<conv:StringNotNullOrEmptyToVisibleConverter x:Key="StringNotNullOrEmpty_Converter"/>
|
|
<conv:BoolInverterConverter x:Key="BoolInvert_Converter"/>
|
|
</ContentPage.Resources>
|
|
|
|
<ContentPage.Content>
|
|
|
|
<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">
|
|
|
|
<StackLayout
|
|
Padding="20">
|
|
|
|
<!--Title Customer Support-->
|
|
<Label
|
|
Text="{x:Static resources:AppResources.MarkingContactCustomerSupportTitle}"
|
|
FontAttributes="Bold"
|
|
FontSize="Large"
|
|
/>
|
|
|
|
<!--No station selected-->
|
|
<StackLayout
|
|
IsVisible="{Binding Path=IsOperatorInfoAvaliable, Converter={StaticResource BoolInvert_Converter}}">
|
|
|
|
<Label
|
|
TextType="Html"
|
|
Text="{x:Static resources:AppResources.MarkingContactNoStationInfoAvailableNoButton}"/>
|
|
|
|
<Button
|
|
Text="{x:Static resources:AppResources.ActionSelectStation}"
|
|
Command="{Binding OnSelectStationRequest}"/>
|
|
|
|
</StackLayout>
|
|
|
|
<!--contact customer support of selected station-->
|
|
<StackLayout
|
|
IsVisible="{Binding IsOperatorInfoAvaliable}">
|
|
|
|
<!-- 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>
|
|
|
|
</StackLayout>
|
|
|
|
<!--Buttons-->
|
|
<StackLayout
|
|
Spacing="5"
|
|
Margin="0,10,0,0">
|
|
|
|
<!--- Phone to operator -->
|
|
<Button
|
|
x:Name="PhoneNumberButton"
|
|
IsVisible="{Binding PhoneNumberText, Converter={StaticResource StringNotNullOrEmpty_Converter}}"
|
|
Text="{Binding PhoneNumberText}"
|
|
IsEnabled="{Binding IsDoPhoncallAvailable}"
|
|
Command="{Binding OnPhoneRequest}"/>
|
|
|
|
<!--- Mail to operator -->
|
|
<Button
|
|
Style="{StaticResource SecondaryButton}"
|
|
x:Name="MailAddressButton"
|
|
IsVisible="{Binding MailAddressText, Converter={StaticResource StringNotNullOrEmpty_Converter}}"
|
|
Text="{Binding MailAddressText}"
|
|
IsEnabled="{Binding IsSendMailAvailable}"
|
|
Command="{Binding OnMailToOperatorRequest}"/>
|
|
|
|
<!-- Change selected Station-->
|
|
<Button
|
|
Style="{StaticResource NoOutlineButton}"
|
|
Text="{x:Static resources:AppResources.ActionSelectAnotherStation}"
|
|
Command="{Binding OnSelectStationRequest}"/>
|
|
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
|
|
|
</Frame>
|
|
|
|
|
|
<!--- Contact app-developer -->
|
|
<StackLayout
|
|
Grid.Row="1"
|
|
Padding="10"
|
|
Margin="0,0,0,10"
|
|
VerticalOptions="End"
|
|
Spacing="0">
|
|
|
|
<BoxView
|
|
Margin="0,0,0,10"
|
|
HeightRequest="1"
|
|
WidthRequest="400"
|
|
HorizontalOptions="Center"
|
|
Color="DimGray"/>
|
|
|
|
<Label
|
|
TextType="Html"
|
|
HorizontalOptions="Center"
|
|
TextColor="{DynamicResource primary-back-title-color}"
|
|
Text="{x:Static resources:AppResources.ActionSendDiagnosis}"
|
|
IsEnabled="{Binding IsSendMailAvailable}">
|
|
<Label.GestureRecognizers>
|
|
<TapGestureRecognizer
|
|
Command="{Binding OnMailAppRelatedRequest}"/>
|
|
</Label.GestureRecognizers>
|
|
</Label>
|
|
|
|
</StackLayout>
|
|
|
|
</Grid>
|
|
|
|
</ContentPage.Content>
|
|
|
|
</ContentPage>
|