<?xml version="1.0" encoding="UTF-8" ?>
<ContentView
    x:Class="Moshaverino.Views.SignUp.EnterTypeInfo"
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:d="http://xamarin.com/schemas/2014/forms/design"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:models="clr-namespace:Moshaverino.Models;assembly=Moshaverino"
    mc:Ignorable="d">
    <ContentView.Content>

        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="2*" />
                <RowDefinition Height="10*" />
            </Grid.RowDefinitions>

            <Grid
                Margin="-5,-20,-5,-5"
                Padding="40,60,40,40"
                BackgroundColor="#00B3CF"
                Rotation="-4">
                <StackLayout
                    HorizontalOptions="Center"
                    Rotation="4"
                    VerticalOptions="Center">
                    <Label
                        FontFamily="{StaticResource ShabnameBold}"
                        FontSize="20"
                        HorizontalOptions="Center"
                        Text="مشخصات فردی"
                        TextColor="White" />
                </StackLayout>
            </Grid>
            <StackLayout
                Grid.Row="1"
                Margin="8"
                VerticalOptions="Center">
                <StackLayout>
                    <Label
                        Margin="8,8,8,0"
                        FontFamily="{StaticResource Shabname}"
                        Text="نام و نام خانوادگی" />
                    <Frame
                        Margin="5,0"
                        Padding="2"
                        CornerRadius="5">
                        <Entry
                            x:Name="fullNameTextBox"
                            Margin="4,0"
                            FontFamily="{StaticResource Shabname}"
                            FontSize="14" />
                    </Frame>
                </StackLayout>
                <StackLayout>
                    <Label
                        Margin="8,8,8,0"
                        FontFamily="{StaticResource Shabname}"
                        Text="شهر تحصیل" />
                    <Frame
                        Margin="5,0"
                        Padding="2"
                        CornerRadius="5">
                        <Entry
                            x:Name="cityTextBox"
                            Margin="4,0"
                            FontFamily="{StaticResource Shabname}"
                            FontSize="14" />
                    </Frame>
                </StackLayout>
                <StackLayout>
                    <Label
                        Margin="8,8,8,0"
                        FontFamily="{StaticResource Shabname}"
                        Text="رشته تحصیلی" />
                    <Frame
                        Margin="5,0"
                        Padding="2"
                        CornerRadius="5">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <Label
                                Margin="0,0,10,0"
                                FontFamily="{StaticResource MaterialFontFamily}"
                                FontSize="25"
                                Text="{x:Static models:MaterialIconFont.ChevronDown}"
                                VerticalOptions="Center" />
                            <Picker
                                x:Name="fieldTextBox"
                                Grid.Column="1"
                                Margin="4,0"
                                FontFamily="{StaticResource Shabname}"
                                FontSize="14"
                                VerticalOptions="Center">
                                <Picker.Items>
                                    <x:String>تجربی</x:String>
                                    <x:String>ریاضی فیزیک</x:String>
                                    <x:String>انسانی</x:String>
                                </Picker.Items>
                            </Picker>
                        </Grid>
                    </Frame>
                </StackLayout>
                <StackLayout>
                    <Label
                        Margin="8,8,8,0"
                        FontFamily="{StaticResource Shabname}"
                        Text="مقطع تحصیلی" />
                    <Frame
                        Margin="5,0"
                        Padding="2"
                        CornerRadius="5">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <Label
                                Margin="0,0,10,0"
                                FontFamily="{StaticResource MaterialFontFamily}"
                                FontSize="25"
                                Text="{x:Static models:MaterialIconFont.ChevronDown}"
                                VerticalOptions="Center" />
                            <Picker
                                x:Name="gradeTextBox"
                                Grid.Column="1"
                                Margin="4,0"
                                FontFamily="{StaticResource Shabname}"
                                FontSize="14">
                                <Picker.Items>
                                    <x:String>دهم</x:String>
                                    <x:String>یازدهم</x:String>
                                    <x:String>دوازدهم</x:String>
                                    <x:String>سایر</x:String>
                                </Picker.Items>
                            </Picker>
                        </Grid>
                    </Frame>
                </StackLayout>
                <StackLayout>
                    <Label
                        Margin="8,8,8,0"
                        FontFamily="{StaticResource Shabname}"
                        Text="معدل سال اخر" />
                    <Frame
                        Margin="5,0"
                        Padding="2"
                        CornerRadius="5">
                        <Entry
                            x:Name="averageTextBox"
                            Margin="4,0"
                            FontFamily="{StaticResource Shabname}"
                            FontSize="14" />
                    </Frame>
                </StackLayout>
                <Button
                    Margin="15,45,15,0"
                    BackgroundColor="#00B3CF"
                    Clicked="SubmitTypeButton_OnClicked"
                    CornerRadius="25"
                    FontFamily="{StaticResource ShabnameBold}"
                    FontSize="20"
                    Text="تایید"
                    TextColor="White" />

            </StackLayout>
        </Grid>
    </ContentView.Content>
</ContentView>