Style update profile page
This commit is contained in:
@@ -1,10 +1,5 @@
|
|||||||
@page "/profile"
|
@page "/profile"
|
||||||
|
|
||||||
@using FoodsharingSiegen.Server.Dialogs
|
|
||||||
@using FoodsharingSiegen.Server.BaseClasses
|
|
||||||
@using FoodsharingSiegen.Contracts.Entity
|
|
||||||
@using FoodsharingSiegen.Contracts.Helper
|
|
||||||
|
|
||||||
@inherits FsBase
|
@inherits FsBase
|
||||||
|
|
||||||
<PageTitle>Profil - @AppSettings.Terms.Title</PageTitle>
|
<PageTitle>Profil - @AppSettings.Terms.Title</PageTitle>
|
||||||
@@ -14,6 +9,9 @@
|
|||||||
<h2>Mein Profil</h2>
|
<h2>Mein Profil</h2>
|
||||||
|
|
||||||
<Button Color="Color.Primary" Clicked="SaveProfile">Speichern</Button>
|
<Button Color="Color.Primary" Clicked="SaveProfile">Speichern</Button>
|
||||||
|
|
||||||
|
<div class="card mt-3">
|
||||||
|
<div class="card-body">
|
||||||
<Fields Class="my-3">
|
<Fields Class="my-3">
|
||||||
<Validations @ref="ValidationsRef">
|
<Validations @ref="ValidationsRef">
|
||||||
<Validation Validator="ValidationRule.IsNotEmpty">
|
<Validation Validator="ValidationRule.IsNotEmpty">
|
||||||
@@ -24,21 +22,30 @@
|
|||||||
</FieldBody>
|
</FieldBody>
|
||||||
</Field>
|
</Field>
|
||||||
</Validation>
|
</Validation>
|
||||||
<Validation Validator="ValidationRule.None">
|
|
||||||
<Field ColumnSize="ColumnSize.Is12">
|
<Field ColumnSize="ColumnSize.Is12">
|
||||||
<FieldLabel>Info über dich</FieldLabel>
|
<FieldLabel>E-Mail</FieldLabel>
|
||||||
<FieldBody>
|
<FieldBody>
|
||||||
<MemoEdit Rows="3" Placeholder="z.B. Bieb bei Rewe Musterhausen" @bind-Text="User.Memo"/>
|
<TextEdit @bind-Text="User.Mail" ReadOnly="true"></TextEdit>
|
||||||
</FieldBody>
|
</FieldBody>
|
||||||
</Field>
|
</Field>
|
||||||
</Validation>
|
@* <Validation Validator="ValidationRule.None"> *@
|
||||||
|
@* <Field ColumnSize="ColumnSize.Is12"> *@
|
||||||
|
@* <FieldLabel>Info über dich</FieldLabel> *@
|
||||||
|
@* <FieldBody> *@
|
||||||
|
@* <MemoEdit Rows="3" Placeholder="z.B. Bieb bei Rewe Musterhausen" @bind-Text="User.Memo"/> *@
|
||||||
|
@* </FieldBody> *@
|
||||||
|
@* </Field> *@
|
||||||
|
@* </Validation> *@
|
||||||
</Validations>
|
</Validations>
|
||||||
</Fields>
|
</Fields>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
<h3>Allgemeines</h3>
|
|
||||||
|
|
||||||
<p class="mt-4 mb-1">
|
<div class="card">
|
||||||
|
<div class="card-header" style="padding: .5rem 0 0 1rem;"><h5>Allgemeines</h5></div>
|
||||||
|
<div class="card-body">
|
||||||
Die ausgewählte URL wird zum Beispiel verwendet, um die Profile der Neulinge zu verlinken
|
Die ausgewählte URL wird zum Beispiel verwendet, um die Profile der Neulinge zu verlinken
|
||||||
<Select TValue="FsNetworkType" @bind-SelectedValue="User.Network">
|
<Select TValue="FsNetworkType" @bind-SelectedValue="User.Network">
|
||||||
@foreach (var networkType in Enum.GetValues<FsNetworkType>())
|
@foreach (var networkType in Enum.GetValues<FsNetworkType>())
|
||||||
@@ -46,12 +53,14 @@
|
|||||||
<SelectItem Value="networkType">@networkType (@networkType.GetCustomValue())</SelectItem>
|
<SelectItem Value="networkType">@networkType (@networkType.GetCustomValue())</SelectItem>
|
||||||
}
|
}
|
||||||
</Select>
|
</Select>
|
||||||
</p>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
<h3>Sicherheit</h3>
|
|
||||||
|
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-header" style="padding: .5rem 0 0 1rem;"><h5>Sicherheit</h5></div>
|
||||||
|
<div class="card-body">
|
||||||
<p class="mt-4 mb-1">
|
<p class="mt-4 mb-1">
|
||||||
Die Änderung deines Passworts ist sofort aktiv. Im Anschluss wirst du ausgeloggt und kannst dich neu einloggen.
|
Die Änderung deines Passworts ist sofort aktiv. Im Anschluss wirst du ausgeloggt und kannst dich neu einloggen.
|
||||||
<Button Color="Color.Primary" Class="d-block" Clicked="() => PasswordModal?.Show(User)!"><i class="fa-solid fa-key"></i> Passwort ändern</Button>
|
<Button Color="Color.Primary" Class="d-block" Clicked="() => PasswordModal?.Show(User)!"><i class="fa-solid fa-key"></i> Passwort ändern</Button>
|
||||||
@@ -61,5 +70,8 @@
|
|||||||
<Button Color="Color.Danger" Class="d-block" Clicked="RemoveAccount"><i class="fa-solid fa-trash"></i> Konto löschen</Button>
|
<Button Color="Color.Danger" Class="d-block" Clicked="RemoveAccount"><i class="fa-solid fa-trash"></i> Konto löschen</Button>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<SetPasswordModal @ref="PasswordModal" OnPasswortSet="OnPasswordSet"></SetPasswordModal>
|
<SetPasswordModal @ref="PasswordModal" OnPasswortSet="OnPasswordSet"></SetPasswordModal>
|
||||||
Reference in New Issue
Block a user