Merge pull request 'Modèle version complète n°1 + Console' (#48) from feature/31-menu-console into dev
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Reviewed-on: #48pull/49/head
commit
cdaa2290fb
@ -0,0 +1,80 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:Class="Views.AddRecipe"
|
||||||
|
Title="AddRecipe"
|
||||||
|
xmlns:local="clr-namespace:Views">
|
||||||
|
<VerticalStackLayout>
|
||||||
|
<local:MiniHeader
|
||||||
|
TitleMini="Ajouter une recette"
|
||||||
|
NeedReturn="True"
|
||||||
|
HeightRequest="100"/>
|
||||||
|
<Grid ColumnDefinitions="auto, *"
|
||||||
|
RowDefinitions="auto,auto,auto,auto,auto,auto, auto, auto, auto"
|
||||||
|
Margin="50,20,20,20">
|
||||||
|
<Label Text="Titre de la recette :"/>
|
||||||
|
<Entry Placeholder="Saisie du texte de la recette correspondante"
|
||||||
|
Grid.Row="1"
|
||||||
|
Margin="10"/>
|
||||||
|
<Label Text="Type de la recette" Grid.Row="2"/>
|
||||||
|
<CheckBox x:Name="CheckEntree" Grid.Row="3" Margin="10,0,20,0" />
|
||||||
|
<Label Text="Entrée" Grid.Row="3" Margin="40,20"/>
|
||||||
|
<CheckBox x:Name="CheckPlat" Grid.Row="3" Margin="90,0" />
|
||||||
|
<Label Text="Plat" Grid.Row="3" Margin="120,20"/>
|
||||||
|
<CheckBox x:Name="CheckDessert" Grid.Row="3" Margin="155,0" />
|
||||||
|
<Label Text="Dessert" Grid.Row="3" Margin="185,20"/>
|
||||||
|
|
||||||
|
<Label Text="Type de priorité" Grid.Row="4"/>
|
||||||
|
<Grid BackgroundColor="#D1E8E2"
|
||||||
|
MinimumHeightRequest="100"
|
||||||
|
MaximumWidthRequest="300"
|
||||||
|
Padding="20"
|
||||||
|
Grid.Row="5">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Label Text="Recettes économiques" Grid.Row="0" Padding="5,0,0,0"/>
|
||||||
|
<BoxView Color="Black" HeightRequest="1" Margin="10,10,10,10" Grid.Row="1" />
|
||||||
|
<Label Text="Recettes rapides" Grid.Row="2"/>
|
||||||
|
<BoxView Color="Black" HeightRequest="1" Margin="10,10,10,10" Grid.Row="3" />
|
||||||
|
<Label Text="Recettes simples" Grid.Row="4"/>
|
||||||
|
<BoxView Color="Black" HeightRequest="1" Margin="10,10,10,10" Grid.Row="5" />
|
||||||
|
<Label Text="Recettes légères" Grid.Row="6"/>
|
||||||
|
<BoxView Color="Black" HeightRequest="1" Margin="10,10,10,10" Grid.Row="7" />
|
||||||
|
<Label Text="Recettes gourmandes" Grid.Row="8"/>
|
||||||
|
</Grid>
|
||||||
|
<Label Text="Saisir les étapes de la recette " Grid.Row="6" Margin="0,15"/>
|
||||||
|
<Entry Placeholder="Etape de la recette" Grid.Row="7" Margin="12,0"/>
|
||||||
|
<HorizontalStackLayout Grid.Row="8" Margin="20">
|
||||||
|
<Button WidthRequest="100" Text="Précédent" TextColor="Black" Margin="20,0,20,0"/>
|
||||||
|
<Button WidthRequest="100" Text="Ajouter" TextColor="Black" Margin="20,0"/>
|
||||||
|
</HorizontalStackLayout>
|
||||||
|
<Label Text="Saisir les ingrédients de la recette" Grid.Row="6" Grid.Column="1" Margin="50,15"/>
|
||||||
|
<HorizontalStackLayout Grid.Row="7" Grid.Column="1">
|
||||||
|
<Entry Placeholder="Nom de l'ingrédient" Margin="12,0,50,0" WidthRequest="500"/>
|
||||||
|
<Picker Title="Unité">
|
||||||
|
|
||||||
|
</Picker>
|
||||||
|
</HorizontalStackLayout>
|
||||||
|
<HorizontalStackLayout Grid.Row="8" Grid.Column="1" Margin="20">
|
||||||
|
<Button WidthRequest="100" Text="Précédent" TextColor="Black" Margin="20,0,20,0"/>
|
||||||
|
<Button WidthRequest="100" Text="Ajouter" TextColor="Black" Margin="20,0"/>
|
||||||
|
</HorizontalStackLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ContentPage>
|
@ -0,0 +1,18 @@
|
|||||||
|
using CommunityToolkit.Maui.Behaviors;
|
||||||
|
using DataPersistence;
|
||||||
|
using Model;
|
||||||
|
using Model.Managers;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
|
namespace Views
|
||||||
|
{
|
||||||
|
public partial class AddRecipe : ContentPage
|
||||||
|
{
|
||||||
|
public MasterManager MasterMgr => (App.Current as App).MasterMgr;
|
||||||
|
|
||||||
|
public AddRecipe()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,9 +1,20 @@
|
|||||||
|
using CommunityToolkit.Maui.Behaviors;
|
||||||
|
using DataPersistence;
|
||||||
|
using Model;
|
||||||
|
using Model.Managers;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace Views;
|
namespace Views;
|
||||||
|
|
||||||
public partial class MyProfil : ContentPage
|
public partial class MyProfil : ContentPage
|
||||||
{
|
{
|
||||||
|
public MasterManager MasterMgr => (App.Current as App).MasterMgr;
|
||||||
|
public User user => (App.Current as App).CurrentUser;
|
||||||
|
|
||||||
public MyProfil()
|
public MyProfil()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
|
||||||
|
BindingContext = this;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in new issue