mirror of
https://github.com/Stefan-5422/-T5-Elektrifikatsiya.git
synced 2026-09-10 07:36:02 +02:00
Settings Page responisve
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -2,124 +2,134 @@
|
|||||||
@using Blazorise.Components;
|
@using Blazorise.Components;
|
||||||
@using Elektrifikatsiya.Models;
|
@using Elektrifikatsiya.Models;
|
||||||
@using System.Net
|
@using System.Net
|
||||||
<Row Style="width: 100%; height: 100%">
|
<Div>
|
||||||
<Column ColumnSize="ColumnSize.Is4">
|
<Row Style="width: 100%; height: 100%">
|
||||||
<Bar Breakpoint="Breakpoint.Desktop"
|
<Div Display="Display.Flex.Row.OnDesktop" Margin=" Margin.Is3.FromBottom" Width="Width.Is100">
|
||||||
Background="Background.White"
|
<Column ColumnSize="ColumnSize.Is5.OnDesktop.Is12.OnMobile">
|
||||||
ThemeContrast="ThemeContrast.None"
|
<Bar Breakpoint="Breakpoint.Desktop"
|
||||||
Shadow="Shadow.Remove"
|
Background="Background.White"
|
||||||
Border="Border.Is1.RoundedTop">
|
ThemeContrast="ThemeContrast.None"
|
||||||
<BarBrand>
|
Shadow="Shadow.Remove"
|
||||||
Plugs
|
Border="Border.Is1.RoundedTop">
|
||||||
</BarBrand>
|
<BarBrand>
|
||||||
</Bar>
|
Plugs
|
||||||
<ListView TItem="Device"
|
</BarBrand>
|
||||||
Data="@plugs"
|
</Bar>
|
||||||
TextField="@((_)=>(""))"
|
<ListView TItem="Device"
|
||||||
ValueField="@((_)=>(""))"
|
Data="@plugs"
|
||||||
|
TextField="@((_)=>(""))"
|
||||||
|
ValueField="@((_)=>(""))"
|
||||||
|
Style="border-radius: 0px 0px"
|
||||||
|
Height="100%"
|
||||||
|
MaxHeight="90%">
|
||||||
|
<ItemTemplate>
|
||||||
|
<ListGroupItem Border="Border.OnBottom">
|
||||||
|
<Row>
|
||||||
|
|
||||||
Style="border-radius: 0px 0px"
|
<Column ColumnSize="ColumnSize.Is6">
|
||||||
Height="100%"
|
<Row>
|
||||||
MaxHeight="90%">
|
<Column ColumnSize="ColumnSize.Is7">
|
||||||
<ItemTemplate>
|
<Heading Size="HeadingSize.Is6" Margin="Margin.Is1.FromBottom">@context.Item.Name</Heading>
|
||||||
<ListGroupItem Border="Border.OnBottom">
|
</Column>
|
||||||
<Row>
|
</Row>
|
||||||
<Column ColumnSize="ColumnSize.Is5">
|
<Row>
|
||||||
|
<Column>
|
||||||
|
<Small>User: @context.Item.User</Small>
|
||||||
|
<br />
|
||||||
|
<Small>Room: @context.Item.Room</Small>
|
||||||
|
</Column>
|
||||||
|
</Row>
|
||||||
|
</Column>
|
||||||
|
|
||||||
|
<Column ColumnSize="ColumnSize.Is4.OnDesktop.Is7.OnMobile">
|
||||||
|
<Button Position="Position.Absolute.Top.Is50.Start.Is50.Translate.Middle" Color="Color.Dark" Outline>
|
||||||
|
<BarIcon IconName="IconName.Bolt" />
|
||||||
|
</Button>
|
||||||
|
</Column>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
<Row>
|
<Row>
|
||||||
<Column ColumnSize="ColumnSize.Is7">
|
<Column ColumnSize="ColumnSize.Is1.OnDesktop">
|
||||||
<Heading Size="HeadingSize.Is6" Margin="Margin.Is1.FromBottom">@context.Item.Name</Heading>
|
<Button Position="Position.Absolute.Top.Is50.Start.Is100.Translate.Middle" Color="Color.Dark" Outline>
|
||||||
</Column>
|
<BarIcon IconName="IconName.Pen" />
|
||||||
|
</Button>
|
||||||
|
</Column>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
|
||||||
<Column>
|
</Row>
|
||||||
<Small>User: @context.Item.User</Small>
|
</ListGroupItem>
|
||||||
<br />
|
</ItemTemplate>
|
||||||
<Small>Room: @context.Item.Room</Small>
|
</ListView>
|
||||||
</Column>
|
</Column>
|
||||||
</Row>
|
<Column ColumnSize="ColumnSize.Is6.OnDesktop.Is12.OnMobile" Margin="Margin.Is3.OnMobile">
|
||||||
</Column>
|
<Field>
|
||||||
<Column ColumnSize="ColumnSize.Is2">
|
<FieldLabel>
|
||||||
<Button Position="Position.Absolute.Top.Is50.Start.Is50.Translate.Middle" Color="Color.Dark" Outline>
|
<h5>
|
||||||
<BarIcon IconName="IconName.Bolt" />
|
Plug Name
|
||||||
</Button>
|
</h5>
|
||||||
</Column>
|
<Paragraph>
|
||||||
<Column ColumnSize="ColumnSize.Is5">
|
Here you can change the Name of your Plug
|
||||||
<Button Position="Position.Absolute.Top.Is50.Start.Is50.Translate.Middle" Color="Color.Dark" Outline>
|
</Paragraph>
|
||||||
<BarIcon IconName="IconName.Pen" />
|
</FieldLabel>
|
||||||
</Button>
|
<TextEdit Placeholder="Enter Name" />
|
||||||
</Column>
|
</Field>
|
||||||
</Row>
|
|
||||||
</ListGroupItem>
|
|
||||||
</ItemTemplate>
|
|
||||||
</ListView>
|
|
||||||
</Column>
|
|
||||||
<Column ColumnSize="ColumnSize.Is6">
|
|
||||||
<Field>
|
|
||||||
<FieldLabel>
|
|
||||||
<h5>
|
|
||||||
Plug Name
|
|
||||||
</h5>
|
|
||||||
<Paragraph>
|
|
||||||
Here you can change the Name of your Plug
|
|
||||||
</Paragraph>
|
|
||||||
</FieldLabel>
|
|
||||||
<TextEdit Placeholder="Enter Name" />
|
|
||||||
</Field>
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
<Field>
|
|
||||||
<FieldLabel>
|
|
||||||
<h5>
|
|
||||||
Change Max Output
|
|
||||||
</h5>
|
|
||||||
<Paragraph>
|
|
||||||
Here you can limit how much Power your Plug uses
|
|
||||||
</Paragraph>
|
|
||||||
</FieldLabel>
|
|
||||||
<TextEdit Placeholder="Enter Max Output" />
|
|
||||||
</Field>
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
<Field>
|
|
||||||
<FieldLabel>
|
|
||||||
<h5>
|
|
||||||
Electricity Price
|
|
||||||
</h5>
|
|
||||||
<Paragraph>
|
|
||||||
Here you enter your electricity price. This is gonna calculate the overall Price of your System
|
|
||||||
</Paragraph>
|
|
||||||
</FieldLabel>
|
|
||||||
<TextEdit Placeholder="Enter Electricity Price" />
|
|
||||||
</Field>
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
<Field>
|
|
||||||
<FieldLabel>
|
|
||||||
<h5>
|
|
||||||
Select Room
|
|
||||||
</h5>
|
|
||||||
<Paragraph>
|
|
||||||
Here you select or change the Room where you use your Plug.
|
|
||||||
</Paragraph>
|
|
||||||
</FieldLabel>
|
|
||||||
<br />
|
<br />
|
||||||
<Dropdown Display="Display.InlineBlock">
|
<br />
|
||||||
<DropdownToggle Color="Color.Primary" Width="Width.Is100">Rooms</DropdownToggle>
|
<Field>
|
||||||
<DropdownMenu>
|
<FieldLabel>
|
||||||
<DropdownItem>Room 1</DropdownItem>
|
<h5>
|
||||||
<DropdownDivider />
|
Change Max Output
|
||||||
<DropdownItem>Room 2</DropdownItem>
|
</h5>
|
||||||
<DropdownDivider />
|
<Paragraph>
|
||||||
<DropdownItem>Room 3</DropdownItem>
|
Here you can limit how much Power your Plug uses
|
||||||
</DropdownMenu>
|
</Paragraph>
|
||||||
</Dropdown>
|
</FieldLabel>
|
||||||
</Field>
|
<TextEdit Placeholder="Enter Max Output" />
|
||||||
|
</Field>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<Field>
|
||||||
|
<FieldLabel>
|
||||||
|
<h5>
|
||||||
|
Electricity Price
|
||||||
|
</h5>
|
||||||
|
<Paragraph>
|
||||||
|
Here you enter your electricity price. This is gonna calculate the overall Price of your System
|
||||||
|
</Paragraph>
|
||||||
|
</FieldLabel>
|
||||||
|
<TextEdit Placeholder="Enter Electricity Price" />
|
||||||
|
</Field>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<Field>
|
||||||
|
<FieldLabel>
|
||||||
|
<h5>
|
||||||
|
Select Room
|
||||||
|
</h5>
|
||||||
|
<Paragraph>
|
||||||
|
Here you select or change the Room where you use your Plug.
|
||||||
|
</Paragraph>
|
||||||
|
</FieldLabel>
|
||||||
|
<br />
|
||||||
|
<Dropdown Display="Display.InlineBlock">
|
||||||
|
<DropdownToggle Color="Color.Primary" Width="Width.Is100">Rooms</DropdownToggle>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownItem>Room 1</DropdownItem>
|
||||||
|
<DropdownDivider />
|
||||||
|
<DropdownItem>Room 2</DropdownItem>
|
||||||
|
<DropdownDivider />
|
||||||
|
<DropdownItem>Room 3</DropdownItem>
|
||||||
|
</DropdownMenu>
|
||||||
|
</Dropdown>
|
||||||
|
</Field>
|
||||||
<Column ColumnSize="ColumnSize.IsFull" TextAlignment="TextAlignment.End">
|
<Column ColumnSize="ColumnSize.IsFull" TextAlignment="TextAlignment.End">
|
||||||
<Button Color="Color.Primary">Save</Button>
|
<Button Color="Color.Primary">Save</Button>
|
||||||
</Column>
|
</Column>
|
||||||
</Column>
|
</Column>
|
||||||
|
</Div>
|
||||||
|
</Row>
|
||||||
|
</Div>
|
||||||
|
|
||||||
</Row>
|
|
||||||
|
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
|
|||||||
Reference in New Issue
Block a user