48 lines
1.9 KiB
Python
48 lines
1.9 KiB
Python
import flet as ft
|
|
from designer import color, Button,Text
|
|
from user_data import User_data
|
|
|
|
class User_info(ft.View):
|
|
def __init__(self, page:ft.Page):
|
|
super().__init__(
|
|
route="/user_info",
|
|
bgcolor=color[2],
|
|
controls=[
|
|
ft.Column(
|
|
controls=[
|
|
ft.Container(
|
|
padding=ft.padding.all(20),
|
|
border_radius=ft.border_radius.all(10),
|
|
height=70,
|
|
expand=True,
|
|
bgcolor=color[3],
|
|
content=ft.Row(
|
|
expand=True,
|
|
controls=[
|
|
Button(text="профиль"),
|
|
Button(text="мои данные",on_click = self.go_to_my_data),
|
|
Button(text="заполнить данные", on_click=self.go_to_data),
|
|
]
|
|
)
|
|
),
|
|
ft.Container(
|
|
expand=True,
|
|
content=ft.Column(
|
|
controls=[
|
|
ft.Row(controls=[Text(value="Имя ПОО"),Text(value=User_data.name_poo)]),
|
|
ft.Row(controls=[Text(value="ИНН"),Text(value=User_data.inn)]),
|
|
ft.Row(controls=[Text(value="Mail"),Text(value=User_data.mail)])
|
|
]
|
|
)
|
|
)
|
|
]
|
|
)
|
|
]
|
|
)
|
|
def go_to_info(self,e):
|
|
self.page.go("/user_info")
|
|
def go_to_my_data(self,e):
|
|
self.page.go("/my_data")
|
|
def go_to_data(self,e):
|
|
self.page.go("/add_new_data")
|
|
|