How to sort the field of registration of a new client?
Thanks
<div class="inputs">
@Html.LabelFor(model => model.FirstName, new { }, ":")
@Html.EditorFor(model => model.FirstName)
@Html.RequiredHint()
@Html.ValidationMessageFor(model => model.FirstName)
</div>
<div class="inputs">
@Html.LabelFor(model => model.LastName, new { }, ":")
@Html.EditorFor(model => model.LastName)
@Html.RequiredHint()
@Html.ValidationMessageFor(model => model.LastName)
</div>
@if (Model.DateOfBirthEnabled)
{
<div class="inputs date-of-birth">
<label>@T("Account.Fields.DateOfBirth"):</label>
@Html.DatePickerDropDowns(Html.FieldNameFor(x => x.DateOfBirthDay),
Html.FieldNameFor(x => x.DateOfBirthMonth),
Html.FieldNameFor(x => x.DateOfBirthYear),
DateTime.Now.Year - 110,
DateTime.Now.Year,
Model.DateOfBirthDay,
Model.DateOfBirthMonth,
Model.DateOfBirthYear)
@if (Model.DateOfBirthRequired)
{
@Html.RequiredHint()
}
@Html.ValidationMessageFor(model => model.DateOfBirthDay)
@Html.ValidationMessageFor(model => model.DateOfBirthMonth)
@Html.ValidationMessageFor(model => model.DateOfBirthYear)
</div>
}
<div class="inputs">
@Html.LabelFor(model => model.Email, new { }, ":")
@Html.EditorFor(model => model.Email)
@Html.RequiredHint()
@Html.ValidationMessageFor(model => model.Email)
</div>
@if (Model.EnteringEmailTwice)
{
<div class="inputs">
@Html.LabelFor(model => model.ConfirmEmail, new { }, ":")
@Html.EditorFor(model => model.ConfirmEmail)
@Html.RequiredHint()
@Html.ValidationMessageFor(model => model.ConfirmEmail)
</div>
}
<div class="inputs">
@Html.LabelFor(model => model.FirstName, new { }, ":")
@Html.EditorFor(model => model.FirstName)
@Html.RequiredHint()
@Html.ValidationMessageFor(model => model.FirstName)
</div>
<div class="inputs">
@Html.LabelFor(model => model.LastName, new { }, ":")
@Html.EditorFor(model => model.LastName)
@Html.RequiredHint()
@Html.ValidationMessageFor(model => model.LastName)
</div>
<div class="inputs">
@Html.LabelFor(model => model.Email, new { }, ":")
@Html.EditorFor(model => model.Email)
@Html.RequiredHint()
@Html.ValidationMessageFor(model => model.Email)
</div>
@if (Model.EnteringEmailTwice)
{
<div class="inputs">
@Html.LabelFor(model => model.ConfirmEmail, new { }, ":")
@Html.EditorFor(model => model.ConfirmEmail)
@Html.RequiredHint()
@Html.ValidationMessageFor(model => model.ConfirmEmail)
</div>
}
@if (Model.DateOfBirthEnabled)
{
<div class="inputs date-of-birth">
<label>@T("Account.Fields.DateOfBirth"):</label>
@Html.DatePickerDropDowns(Html.FieldNameFor(x => x.DateOfBirthDay),
Html.FieldNameFor(x => x.DateOfBirthMonth),
Html.FieldNameFor(x => x.DateOfBirthYear),
DateTime.Now.Year - 110,
DateTime.Now.Year,
Model.DateOfBirthDay,
Model.DateOfBirthMonth,
Model.DateOfBirthYear)
@if (Model.DateOfBirthRequired)
{
@Html.RequiredHint()
}
@Html.ValidationMessageFor(model => model.DateOfBirthDay)
@Html.ValidationMessageFor(model => model.DateOfBirthMonth)
@Html.ValidationMessageFor(model => model.DateOfBirthYear)
</div>
}
<div class="inputs">
@Html.LabelFor(model => model.FirstName, new { }, ":")
@Html.EditorFor(model => model.FirstName)
@Html.RequiredHint()
@Html.ValidationMessageFor(model => model.FirstName)
</div>
<div class="inputs">
@Html.LabelFor(model => model.LastName, new { }, ":")
@Html.EditorFor(model => model.LastName)
@Html.RequiredHint()
@Html.ValidationMessageFor(model => model.LastName)
</div>
@if (Model.DateOfBirthEnabled)
{
<div class="inputs date-of-birth">
<label>@T("Account.Fields.DateOfBirth"):</label>
@Html.DatePickerDropDowns(Html.FieldNameFor(x => x.DateOfBirthDay),
Html.FieldNameFor(x => x.DateOfBirthMonth),
Html.FieldNameFor(x => x.DateOfBirthYear),
DateTime.Now.Year - 110,
DateTime.Now.Year,
Model.DateOfBirthDay,
Model.DateOfBirthMonth,
Model.DateOfBirthYear)
@if (Model.DateOfBirthRequired)
{
@Html.RequiredHint()
}
@Html.ValidationMessageFor(model => model.DateOfBirthDay)
@Html.ValidationMessageFor(model => model.DateOfBirthMonth)
@Html.ValidationMessageFor(model => model.DateOfBirthYear)
</div>
}
<div class="inputs">
@Html.LabelFor(model => model.Email, new { }, ":")
@Html.EditorFor(model => model.Email)
@Html.RequiredHint()
@Html.ValidationMessageFor(model => model.Email)
</div>
@if (Model.EnteringEmailTwice)
{
<div class="inputs">
@Html.LabelFor(model => model.ConfirmEmail, new { }, ":")
@Html.EditorFor(model => model.ConfirmEmail)
@Html.RequiredHint()
@Html.ValidationMessageFor(model => model.ConfirmEmail)
</div>
}
<div class="inputs">
@Html.LabelFor(model => model.FirstName, new { }, ":")
@Html.EditorFor(model => model.FirstName)
@Html.RequiredHint()
@Html.ValidationMessageFor(model => model.FirstName)
</div>
<div class="inputs">
@Html.LabelFor(model => model.LastName, new { }, ":")
@Html.EditorFor(model => model.LastName)
@Html.RequiredHint()
@Html.ValidationMessageFor(model => model.LastName)
</div>
<div class="inputs">
@Html.LabelFor(model => model.Email, new { }, ":")
@Html.EditorFor(model => model.Email)
@Html.RequiredHint()
@Html.ValidationMessageFor(model => model.Email)
</div>
@if (Model.EnteringEmailTwice)
{
<div class="inputs">
@Html.LabelFor(model => model.ConfirmEmail, new { }, ":")
@Html.EditorFor(model => model.ConfirmEmail)
@Html.RequiredHint()
@Html.ValidationMessageFor(model => model.ConfirmEmail)
</div>
}
@if (Model.DateOfBirthEnabled)
{
<div class="inputs date-of-birth">
<label>@T("Account.Fields.DateOfBirth"):</label>
@Html.DatePickerDropDowns(Html.FieldNameFor(x => x.DateOfBirthDay),
Html.FieldNameFor(x => x.DateOfBirthMonth),
Html.FieldNameFor(x => x.DateOfBirthYear),
DateTime.Now.Year - 110,
DateTime.Now.Year,
Model.DateOfBirthDay,
Model.DateOfBirthMonth,
Model.DateOfBirthYear)
@if (Model.DateOfBirthRequired)
{
@Html.RequiredHint()
}
@Html.ValidationMessageFor(model => model.DateOfBirthDay)
@Html.ValidationMessageFor(model => model.DateOfBirthMonth)
@Html.ValidationMessageFor(model => model.DateOfBirthYear)
</div>
}