126 lines
5.3 KiB
XML
126 lines
5.3 KiB
XML
<?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="CORP_MAUI.Pages.ProfilePage"
|
||
Title="Профиль">
|
||
|
||
<ScrollView>
|
||
<VerticalStackLayout Padding="20" Spacing="20">
|
||
|
||
<!-- Аватар и имя -->
|
||
<Frame
|
||
Padding="20"
|
||
CornerRadius="15"
|
||
BackgroundColor="White"
|
||
HasShadow="True">
|
||
|
||
<VerticalStackLayout Spacing="15">
|
||
<Frame
|
||
WidthRequest="100"
|
||
HeightRequest="100"
|
||
CornerRadius="50"
|
||
Padding="0"
|
||
IsClippedToBounds="True"
|
||
HasShadow="False"
|
||
BackgroundColor="{StaticResource Gray200}"
|
||
HorizontalOptions="Center">
|
||
<Image
|
||
x:Name="AvatarImage"
|
||
Source="dotnet_bot.png"
|
||
Aspect="AspectFill"/>
|
||
</Frame>
|
||
|
||
<Label
|
||
x:Name="FullNameLabel"
|
||
Text="Загрузка..."
|
||
FontSize="24"
|
||
FontAttributes="Bold"
|
||
HorizontalOptions="Center"
|
||
TextColor="{StaticResource Gray900}"/>
|
||
|
||
<Label
|
||
x:Name="UsernameLabel"
|
||
Text="@username"
|
||
FontSize="16"
|
||
HorizontalOptions="Center"
|
||
TextColor="{StaticResource Gray600}"/>
|
||
</VerticalStackLayout>
|
||
</Frame>
|
||
|
||
<!-- Информация о пользователе -->
|
||
<Frame
|
||
Padding="20"
|
||
CornerRadius="15"
|
||
BackgroundColor="White"
|
||
HasShadow="True">
|
||
|
||
<VerticalStackLayout Spacing="15">
|
||
<Label
|
||
Text="Информация"
|
||
FontSize="18"
|
||
FontAttributes="Bold"
|
||
TextColor="{StaticResource Gray900}"/>
|
||
|
||
<Grid ColumnDefinitions="Auto,*" RowDefinitions="Auto,Auto,Auto,Auto" RowSpacing="10">
|
||
<Label Grid.Row="0" Grid.Column="0" Text="Email:" FontAttributes="Bold" TextColor="{StaticResource Gray700}"/>
|
||
<Label Grid.Row="0" Grid.Column="1" x:Name="EmailLabel" Text="-" TextColor="{StaticResource Gray600}" Margin="10,0,0,0"/>
|
||
|
||
<Label Grid.Row="1" Grid.Column="0" Text="Должность:" FontAttributes="Bold" TextColor="{StaticResource Gray700}"/>
|
||
<Label Grid.Row="1" Grid.Column="1" x:Name="PositionLabel" Text="-" TextColor="{StaticResource Gray600}" Margin="10,0,0,0"/>
|
||
|
||
<Label Grid.Row="2" Grid.Column="0" Text="Отдел:" FontAttributes="Bold" TextColor="{StaticResource Gray700}"/>
|
||
<Label Grid.Row="2" Grid.Column="1" x:Name="DepartmentLabel" Text="-" TextColor="{StaticResource Gray600}" Margin="10,0,0,0"/>
|
||
|
||
<Label Grid.Row="3" Grid.Column="0" Text="Статус:" FontAttributes="Bold" TextColor="{StaticResource Gray700}"/>
|
||
<Label Grid.Row="3" Grid.Column="1" x:Name="StatusLabel" Text="В сети" TextColor="LimeGreen" Margin="10,0,0,0"/>
|
||
</Grid>
|
||
</VerticalStackLayout>
|
||
</Frame>
|
||
|
||
<!-- Действия -->
|
||
<Frame
|
||
Padding="20"
|
||
CornerRadius="15"
|
||
BackgroundColor="White"
|
||
HasShadow="True">
|
||
|
||
<VerticalStackLayout Spacing="10">
|
||
<Label
|
||
Text="Настройки"
|
||
FontSize="18"
|
||
FontAttributes="Bold"
|
||
TextColor="{StaticResource Gray900}"
|
||
Margin="0,0,0,10"/>
|
||
|
||
<Button
|
||
Text="Обновить профиль"
|
||
BackgroundColor="{StaticResource Primary}"
|
||
TextColor="White"
|
||
CornerRadius="10"
|
||
HeightRequest="45"
|
||
Clicked="OnRefreshClicked"/>
|
||
|
||
<Button
|
||
Text="Выйти из системы"
|
||
BackgroundColor="{StaticResource Secondary}"
|
||
TextColor="White"
|
||
CornerRadius="10"
|
||
HeightRequest="45"
|
||
Clicked="OnLogoutClicked"/>
|
||
</VerticalStackLayout>
|
||
</Frame>
|
||
|
||
<!-- Индикатор загрузки -->
|
||
<ActivityIndicator
|
||
x:Name="LoadingIndicator"
|
||
IsRunning="False"
|
||
IsVisible="False"
|
||
Color="{StaticResource Primary}"
|
||
HorizontalOptions="Center"/>
|
||
|
||
</VerticalStackLayout>
|
||
</ScrollView>
|
||
|
||
</ContentPage>
|
||
|