Implements Full name setup
parent
e52155e3cf
commit
8a2f87bcb2
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using Yavsc.Attributes.Validation;
|
||||||
|
|
||||||
|
namespace Yavsc.ViewModels.Manage
|
||||||
|
{
|
||||||
|
public class SetFullNameViewModel
|
||||||
|
{
|
||||||
|
[Required]
|
||||||
|
[Display(Name = "Your full name"), YaStringLength(512)]
|
||||||
|
public string FullName { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
@model SetFullNameViewModel
|
||||||
|
|
||||||
|
@{ ViewData["Title"] = SR["Your full name"]; }
|
||||||
|
|
||||||
|
<h2>@ViewData["Title"]</h2>
|
||||||
|
|
||||||
|
<form asp-controller="Manage" asp-action="SetFullName" method="post" class="form-horizontal" role="form">
|
||||||
|
<h4>@SR["Indicate below your full name"]:</h4>
|
||||||
|
<hr />
|
||||||
|
<div asp-validation-summary="ValidationSummary.All" class="text-danger" id="valsum"></div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label asp-for="FullName" class="col-md-2 control-label">
|
||||||
|
@SR["Your full name"]
|
||||||
|
</label>
|
||||||
|
<div class="col-md-10">
|
||||||
|
<input asp-for="FullName" class="form-control" />
|
||||||
|
<span asp-validation-for="FullName" class="text-danger"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="form-control btn btn-default">@SR["Validate"]</button>
|
||||||
|
</form>
|
Loading…
Reference in New Issue