82 lines
3.7 KiB
XML
82 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
x:Class="BookAStar.Pages.EditEstimatePage"
|
|
xmlns:views="clr-namespace:BookAStar.Views;assembly=BookAStar"
|
|
xmlns:local="clr-namespace:BookAStar;assembly=BookAStar"
|
|
Style="{StaticResource PageStyle}">
|
|
<ContentPage.Resources>
|
|
<ResourceDictionary>
|
|
<Style TargetType="Label">
|
|
<Setter Property="Style" Value="{StaticResource ContentLabelStyle}" />
|
|
</Style>
|
|
<Style TargetType="Button">
|
|
<Setter Property="Style" Value="{StaticResource ButtonStyle}" />
|
|
</Style>
|
|
</ResourceDictionary>
|
|
</ContentPage.Resources>
|
|
<ContentPage.Content>
|
|
<ScrollView>
|
|
<StackLayout Padding="10,10,10,10" x:Name="mainLayout">
|
|
<Grid MinimumHeightRequest="12">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="2*" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Label Grid.Row="0" Grid.Column="0" Text="{Binding Client.UserName}" ></Label>
|
|
<Label Grid.Row="0" Grid.Column="1" Text="{Binding Query.Location.Address}" ></Label>
|
|
<Label Grid.Row="0" Grid.Column="2" Text="{Binding Query.EventDate, StringFormat='{0:dddd d MMMM yyyy à hh:mm}'}" ></Label>
|
|
</Grid>
|
|
<Entry Placeholder="Saisissez un titre pour ce devis" Text="{Binding Title, Mode=TwoWay}" />
|
|
<views:MarkdownView x:Name="mdview"
|
|
Editable="True"
|
|
HorizontalOptions="FillAndExpand"
|
|
Markdown="{Binding Description, Mode=TwoWay}"
|
|
VerticalOptions="Start" />
|
|
<StackLayout x:Name="biAnVaLayout">
|
|
<ListView x:Name="BillListView" ItemsSource="{Binding Bill}"
|
|
MinimumHeightRequest="40" HasUnevenRows="true" VerticalOptions="FillAndExpand"
|
|
HeightRequest="40" ItemTapped="OnEditLine">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate >
|
|
<ViewCell>
|
|
<ViewCell.View>
|
|
<Grid MinimumHeightRequest="12">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="30" />
|
|
<ColumnDefinition Width="90" />
|
|
</Grid.ColumnDefinitions>
|
|
<Label Text="{Binding Description}"
|
|
Grid.Row="0" Grid.Column="0" ></Label>
|
|
<Label Text="{Binding Duration, StringFormat=\{0\}}"
|
|
Grid.Row="0" Grid.Column="1" ></Label>
|
|
<Label Text="{Binding Count}"
|
|
Grid.Row="0" Grid.Column="2" ></Label>
|
|
<Label Text="{Binding UnitaryCost}"
|
|
Grid.Row="0" Grid.Column="3"
|
|
FontFamily="Monospace"></Label>
|
|
</Grid>
|
|
</ViewCell.View>
|
|
</ViewCell>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
<StackLayout Orientation="Vertical">
|
|
<Button Text="Ajouter une ligne de facture" Clicked="OnNewCommanLine"></Button>
|
|
<Label FormattedText="{Binding FormattedTotal}"/>
|
|
<Button Text="Valider ce devis" Clicked="OnEstimateValidated" ></Button>
|
|
</StackLayout>
|
|
</StackLayout>
|
|
</StackLayout>
|
|
</ScrollView>
|
|
</ContentPage.Content>
|
|
</ContentPage> |