mirror of
https://github.com/Stefan-5422/-T5-Elektrifikatsiya.git
synced 2026-09-10 07:36:02 +02:00
yesn't
This commit is contained in:
@@ -15,7 +15,7 @@ public class User
|
|||||||
public DateTime LastLoginDate { get; set; }
|
public DateTime LastLoginDate { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
public string Name { get; private set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
public string PasswordHash { get; private set; }
|
public string PasswordHash { get; private set; }
|
||||||
|
|||||||
@@ -82,15 +82,15 @@
|
|||||||
<ModalBody>
|
<ModalBody>
|
||||||
<Field>
|
<Field>
|
||||||
<FieldLabel>User Name</FieldLabel>
|
<FieldLabel>User Name</FieldLabel>
|
||||||
<TextEdit @ref="modalAddUserName" @bind-Text="@UserCopy.Name" Placeholder="Enter user name..." />
|
<TextEdit @ref="modalAddUserName" Placeholder="Enter new name..." />
|
||||||
</Field>
|
</Field>
|
||||||
<Field>
|
<Field>
|
||||||
<FieldLabel>User E-Mail</FieldLabel>
|
<FieldLabel>User E-Mail</FieldLabel>
|
||||||
<TextEdit @ref="modalAddUserEmail" @bind-Text="@UserCopy.Name" Placeholder="Enter user E-mail..." />
|
<TextEdit @ref="modalAddUserEmail" Placeholder="Enter new E-mail..." />
|
||||||
</Field>
|
</Field>
|
||||||
<Field>
|
<Field>
|
||||||
<FieldLabel>User Password</FieldLabel>
|
<FieldLabel>User Password</FieldLabel>
|
||||||
<TextEdit @ref="modalAddUserPW" @bind-Text="@UserCopy.Name" Placeholder="Enter user password..." />
|
<TextEdit @ref="modalAddUserPW" Placeholder="Enter new password..." />
|
||||||
</Field>
|
</Field>
|
||||||
</ModalBody>
|
</ModalBody>
|
||||||
<ModalFooter>
|
<ModalFooter>
|
||||||
@@ -116,77 +116,80 @@
|
|||||||
</ListView>
|
</ListView>
|
||||||
</Column>
|
</Column>
|
||||||
<Column ColumnSize="ColumnSize.Is6.OnDesktop.Is12.OnMobile" Margin="Margin.Is3.FromTop.OnMobile" Padding="Padding.Is4.FromStart.OnMobile">
|
<Column ColumnSize="ColumnSize.Is6.OnDesktop.Is12.OnMobile" Margin="Margin.Is3.FromTop.OnMobile" Padding="Padding.Is4.FromStart.OnMobile">
|
||||||
<Div hidden="@hideButtonSettings">
|
@if (SelectedUser is not null)
|
||||||
<Field>
|
{
|
||||||
<FieldLabel>
|
<Div hidden="@hideButtonSettings">
|
||||||
<h2>
|
<Field>
|
||||||
User Settings
|
<FieldLabel>
|
||||||
</h2>
|
<h2>
|
||||||
</FieldLabel>
|
User Settings
|
||||||
</Field>
|
</h2>
|
||||||
<Field>
|
</FieldLabel>
|
||||||
<FieldLabel>
|
</Field>
|
||||||
<h5>
|
<Field>
|
||||||
User Name
|
<FieldLabel>
|
||||||
</h5>
|
<h5>
|
||||||
<Paragraph>
|
User Name
|
||||||
Here you can change the name of the User
|
</h5>
|
||||||
</Paragraph>
|
<Paragraph>
|
||||||
</FieldLabel>
|
Here you can change the name of the User
|
||||||
<TextEdit Placeholder="Enter User Name" />
|
</Paragraph>
|
||||||
</Field>
|
</FieldLabel>
|
||||||
<br />
|
<TextEdit @bind-Text="@SelectedUser.Name" Placeholder="Enter User Name" />
|
||||||
<br />
|
</Field>
|
||||||
<Field>
|
|
||||||
<FieldLabel>
|
|
||||||
<h5>
|
|
||||||
E-Mail
|
|
||||||
</h5>
|
|
||||||
<Paragraph>
|
|
||||||
Here you can change the E-Mail of a User
|
|
||||||
</Paragraph>
|
|
||||||
</FieldLabel>
|
|
||||||
<TextEdit Placeholder="Enter new email" />
|
|
||||||
</Field>
|
|
||||||
<br />
|
|
||||||
<Field>
|
|
||||||
<FieldLabel>
|
|
||||||
<h5>
|
|
||||||
Password
|
|
||||||
</h5>
|
|
||||||
<Paragraph>
|
|
||||||
Here you can change the password of a User
|
|
||||||
</Paragraph>
|
|
||||||
</FieldLabel>
|
|
||||||
<TextEdit Placeholder="Enter old password" />
|
|
||||||
<br />
|
<br />
|
||||||
<TextEdit Placeholder="Enter new password" />
|
|
||||||
</Field>
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
<Field>
|
|
||||||
<FieldLabel>
|
|
||||||
<h5>
|
|
||||||
Select Role
|
|
||||||
</h5>
|
|
||||||
<Paragraph>
|
|
||||||
Here you select or change the role of to User or Admin
|
|
||||||
</Paragraph>
|
|
||||||
</FieldLabel>
|
|
||||||
<br />
|
<br />
|
||||||
<Dropdown Display="Display.InlineBlock">
|
<Field>
|
||||||
<DropdownToggle Color="Color.Primary" Width="Width.Is100">Roles</DropdownToggle>
|
<FieldLabel>
|
||||||
<DropdownMenu>
|
<h5>
|
||||||
<DropdownItem>Admin</DropdownItem>
|
E-Mail
|
||||||
<DropdownDivider />
|
</h5>
|
||||||
<DropdownItem>User</DropdownItem>
|
<Paragraph>
|
||||||
</DropdownMenu>
|
Here you can change the E-Mail of a User
|
||||||
</Dropdown>
|
</Paragraph>
|
||||||
</Field>
|
</FieldLabel>
|
||||||
<Column ColumnSize="ColumnSize.IsFull" TextAlignment="TextAlignment.End">
|
<TextEdit @bind-Text="@SelectedUser.Email" Placeholder="Enter new email" />
|
||||||
<Button Color="Color.Primary">Save</Button>
|
</Field>
|
||||||
</Column>
|
<br />
|
||||||
</Div>
|
<Field>
|
||||||
|
<FieldLabel>
|
||||||
|
<h5>
|
||||||
|
Password
|
||||||
|
</h5>
|
||||||
|
<Paragraph>
|
||||||
|
Here you can change the password of a User
|
||||||
|
</Paragraph>
|
||||||
|
</FieldLabel>
|
||||||
|
<TextEdit Placeholder="Enter old password" />
|
||||||
|
<br />
|
||||||
|
<TextEdit Placeholder="Enter new password" />
|
||||||
|
</Field>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<Field>
|
||||||
|
<FieldLabel>
|
||||||
|
<h5>
|
||||||
|
Select Role
|
||||||
|
</h5>
|
||||||
|
<Paragraph>
|
||||||
|
Here you select or change the role of to User or Admin
|
||||||
|
</Paragraph>
|
||||||
|
</FieldLabel>
|
||||||
|
<br />
|
||||||
|
<Dropdown Display="Display.InlineBlock">
|
||||||
|
<DropdownToggle Color="Color.Primary" Width="Width.Is100">Roles</DropdownToggle>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownItem>Admin</DropdownItem>
|
||||||
|
<DropdownDivider />
|
||||||
|
<DropdownItem>User</DropdownItem>
|
||||||
|
</DropdownMenu>
|
||||||
|
</Dropdown>
|
||||||
|
</Field>
|
||||||
|
<Column ColumnSize="ColumnSize.IsFull" TextAlignment="TextAlignment.End">
|
||||||
|
<Button Color="Color.Primary">Save</Button>
|
||||||
|
</Column>
|
||||||
|
</Div>
|
||||||
|
}
|
||||||
</Column>
|
</Column>
|
||||||
</Div>
|
</Div>
|
||||||
</Row>
|
</Row>
|
||||||
@@ -196,7 +199,6 @@
|
|||||||
List<User> users = new List<User>();
|
List<User> users = new List<User>();
|
||||||
|
|
||||||
User? SelectedUser = null;
|
User? SelectedUser = null;
|
||||||
User? UserCopy = null;
|
|
||||||
|
|
||||||
bool hideButtonSettings = true;
|
bool hideButtonSettings = true;
|
||||||
bool newpage = true;
|
bool newpage = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user