Implements Full name setup
This commit is contained in:
parent
340d52d998
commit
7d9495e326
5 changed files with 68 additions and 7 deletions
|
|
@ -34,13 +34,21 @@
|
|||
</dd>
|
||||
|
||||
<dd>
|
||||
<dt>@SR["AllowMonthlyEmail"]:</dt>
|
||||
<dl>
|
||||
<a asp-action="ProfileEMailUsage"> @Html.DisplayFor(m=>m.AllowMonthlyEmail) [modifier]
|
||||
</a>
|
||||
<dt>@SR["AllowMonthlyEmail"]:</dt>
|
||||
<dd>
|
||||
<a asp-action="ProfileEMailUsage"> @Html.DisplayFor(m=>m.AllowMonthlyEmail) [modifier]
|
||||
</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
|
||||
|
||||
<dt>@SR["FullName"]:</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(m=>m.FullName) <a asp-action="SetFullName">[modifier]</a>
|
||||
</dd>
|
||||
|
||||
@if (Model.Roles.Count()>0) {
|
||||
<dt>@SR["Roles"]:</dt>
|
||||
<dd>
|
||||
|
|
|
|||
22
src/Yavsc/Views/Manage/SetFullName.cshtml
Normal file
22
src/Yavsc/Views/Manage/SetFullName.cshtml
Normal file
|
|
@ -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…
Add table
Add a link
Reference in a new issue