parent
eefcb7e18c
commit
d7cf14078b
@ -1,58 +1,88 @@
|
|||||||
|
|
||||||
<EditForm Model="@Modele" OnValidSubmit="@modifierUtilisateur">
|
<Validations @ref="Validations" Mode="ValidationMode.Manual" Model="Modele">
|
||||||
|
|
||||||
<DataAnnotationsValidator />
|
<div class="field-container">
|
||||||
<Microsoft.AspNetCore.Components.Forms.ValidationSummary />
|
<Validation>
|
||||||
|
<Field Horizontal>
|
||||||
<p>
|
<FieldLabel ColumnSize="ColumnSize.Is2">Pseudo</FieldLabel>
|
||||||
<label for="pseudo">
|
<FieldBody ColumnSize="ColumnSize.Is10">
|
||||||
Pseudo :
|
<TextEdit Placeholder="Entrez votre pseudo" @bind-Value="@Modele.Pseudo">
|
||||||
<InputText id="pseudo" @bind-Value="Modele.Pseudo" />
|
<Feedback>
|
||||||
</label>
|
<ValidationError />
|
||||||
</p>
|
</Feedback>
|
||||||
|
</TextEdit>
|
||||||
<p>
|
</FieldBody>
|
||||||
<label for="prenom">
|
</Field>
|
||||||
Prénom :
|
</Validation>
|
||||||
<InputText id="prenom" @bind-Value="Modele.Prenom" />
|
</div>
|
||||||
</label>
|
|
||||||
</p>
|
<div class="field-container">
|
||||||
|
<Validation>
|
||||||
<p>
|
<Field Horizontal>
|
||||||
<label for="nom">
|
<FieldLabel ColumnSize="ColumnSize.Is2">Prenom</FieldLabel>
|
||||||
Nom :
|
<FieldBody ColumnSize="ColumnSize.Is10">
|
||||||
<InputText id="nom" @bind-Value="Modele.Nom" />
|
<TextEdit Placeholder="Entrez votre prenom" @bind-Text="@Modele.Prenom">
|
||||||
</label>
|
<Feedback>
|
||||||
</p>
|
<ValidationError />
|
||||||
|
</Feedback>
|
||||||
<p>
|
</TextEdit>
|
||||||
<label for="role">
|
</FieldBody>
|
||||||
Role :
|
</Field>
|
||||||
<InputText id="role" @bind-Value="Modele.Role" />
|
</Validation>
|
||||||
</label>
|
</div>
|
||||||
</p>
|
|
||||||
|
<div class="field-container">
|
||||||
<p>
|
<Validation>
|
||||||
<label for="mail">
|
<Field Horizontal>
|
||||||
Email :
|
<FieldLabel ColumnSize="ColumnSize.Is2">Nom</FieldLabel>
|
||||||
<InputText id="mail" @bind-Value="Modele.Mail" />
|
<FieldBody ColumnSize="ColumnSize.Is10">
|
||||||
</label>
|
<TextEdit Placeholder="Entrez votre nom" @bind-Text="@Modele.Nom">
|
||||||
</p>
|
<Feedback>
|
||||||
|
<ValidationError />
|
||||||
<p>
|
</Feedback>
|
||||||
<label for="mdp">
|
</TextEdit>
|
||||||
Mot de passe :
|
</FieldBody>
|
||||||
<InputText id="mdp" @bind-Value="Modele.Mdp" />
|
</Field>
|
||||||
</label>
|
</Validation>
|
||||||
</p>
|
</div>
|
||||||
|
|
||||||
<p>
|
<div class="field-container">
|
||||||
<label>
|
<Validation>
|
||||||
Utilisateur banni :
|
<Field Horizontal>
|
||||||
<InputCheckbox @bind-Value="Modele.IsBan" />
|
<FieldLabel ColumnSize="ColumnSize.Is2">Mail</FieldLabel>
|
||||||
</label>
|
<FieldBody ColumnSize="ColumnSize.Is10">
|
||||||
</p>
|
<TextEdit Placeholder="Entrez votre mail" @bind-Text="@Modele.Mail">
|
||||||
|
<Feedback>
|
||||||
<button Type="Submit">Valider la modification </button>
|
<ValidationError />
|
||||||
|
</Feedback>
|
||||||
</EditForm>
|
</TextEdit>
|
||||||
|
</FieldBody>
|
||||||
|
</Field>
|
||||||
|
</Validation>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="field-container">
|
||||||
|
<Validation>
|
||||||
|
<Field Horizontal>
|
||||||
|
<FieldLabel ColumnSize="ColumnSize.Is2">Mot de passe</FieldLabel>
|
||||||
|
<FieldBody ColumnSize="ColumnSize.Is10">
|
||||||
|
<TextEdit Placeholder="Entrez votre mot de passe" @bind-Text="@Modele.Mdp">
|
||||||
|
<Feedback>
|
||||||
|
<ValidationError />
|
||||||
|
</Feedback>
|
||||||
|
</TextEdit>
|
||||||
|
</FieldBody>
|
||||||
|
</Field>
|
||||||
|
</Validation>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="btn-container">
|
||||||
|
<Button Class="btn-se-connecter" Clicked="@modifierUtilisateur">
|
||||||
|
<Icon Name="Blazorise.Icons.FontAwesome.FontAwesomeIcons.CheckCircle" />
|
||||||
|
Modifier</Button>
|
||||||
|
<Button Class="btn-s-inscrire" Clicked="@OnAnnulation">
|
||||||
|
<Icon Name="Blazorise.Icons.FontAwesome.FontAwesomeIcons.Reply" />
|
||||||
|
Annuler</Button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</Validations>
|
Loading…
Reference in new issue