Passage à ASP.NET vNext
This commit is contained in:
27
Yavsc/Views/Manage/AddPhoneNumber.cshtml
Executable file
27
Yavsc/Views/Manage/AddPhoneNumber.cshtml
Executable file
@ -0,0 +1,27 @@
|
||||
@model AddPhoneNumberViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Add Phone Number";
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
<form asp-controller="Manage" asp-action="AddPhoneNumber" method="post" class="form-horizontal" role="form">
|
||||
<h4>Add a phone number.</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.All" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PhoneNumber" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="PhoneNumber" class="form-control" />
|
||||
<span asp-validation-for="PhoneNumber" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<button type="submit" class="btn btn-default">Send verification code</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@section Scripts {
|
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||
}
|
23
Yavsc/Views/Manage/CHUN.cshtml
Normal file
23
Yavsc/Views/Manage/CHUN.cshtml
Normal file
@ -0,0 +1,23 @@
|
||||
@model ChangeUserNameViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Change user name";
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
|
||||
<form asp-controller="Manage" asp-action="CHUN" method="post" class="form-horizontal" role="form">
|
||||
<h4>Change user name form</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.All" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="NewUserName" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="NewUserName" class="form-control" />
|
||||
<span asp-validation-for="NewUserName" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@section Scripts {
|
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||
}
|
42
Yavsc/Views/Manage/ChangePassword.cshtml
Executable file
42
Yavsc/Views/Manage/ChangePassword.cshtml
Executable file
@ -0,0 +1,42 @@
|
||||
@model ChangePasswordViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Change Password";
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
|
||||
<form asp-controller="Manage" asp-action="ChangePassword" method="post" class="form-horizontal" role="form">
|
||||
<h4>Change Password Form</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.All" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="OldPassword" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="OldPassword" class="form-control" />
|
||||
<span asp-validation-for="OldPassword" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="NewPassword" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="NewPassword" class="form-control" />
|
||||
<span asp-validation-for="NewPassword" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ConfirmPassword" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ConfirmPassword" class="form-control" />
|
||||
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<button type="submit" class="btn btn-default">Change password</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@section Scripts {
|
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||
}
|
23
Yavsc/Views/Manage/ChangeUserName.cshtml
Executable file
23
Yavsc/Views/Manage/ChangeUserName.cshtml
Executable file
@ -0,0 +1,23 @@
|
||||
@model ChangeUserNameViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Change user name";
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
|
||||
<form asp-controller="Manage" asp-action="ChangeUserName" method="post" class="form-horizontal" role="form">
|
||||
<h4>Change user name form</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.All" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="NewUserName" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="NewUserName" class="form-control" />
|
||||
<span asp-validation-for="NewUserName" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@section Scripts {
|
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||
}
|
15
Yavsc/Views/Manage/Credits.cshtml
Executable file
15
Yavsc/Views/Manage/Credits.cshtml
Executable file
@ -0,0 +1,15 @@
|
||||
@{
|
||||
ViewData["Title"] = @SR["Credits"];
|
||||
}
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
<em>Your credits</em>
|
||||
|
||||
<p>
|
||||
<img src="https://www.paypal.com/fr_XC/i/btn/btn_xpressCheckout.gif" align="left" style="margin-right:7px;" />
|
||||
</p>
|
||||
<markdown>
|
||||
|
||||
</markdown>
|
||||
|
||||
|
||||
|
80
Yavsc/Views/Manage/Index.cshtml
Executable file
80
Yavsc/Views/Manage/Index.cshtml
Executable file
@ -0,0 +1,80 @@
|
||||
@model IndexViewModel
|
||||
@{
|
||||
ViewData["Title"] = @SR["Manage your account"];
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
<p class="text-success">@ViewData["StatusMessage"]</p>
|
||||
<div>
|
||||
<h4>@SR["Change your account settings"]</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>@SR["UserName"]:</dt>
|
||||
|
||||
<dd>
|
||||
@Model.UserName
|
||||
[<a asp-controller="Manage"
|
||||
asp-action="CHUN">@SR["Change"]</a>]
|
||||
</dd>
|
||||
<dt>@SR["Password"]:</dt>
|
||||
<dd>[@if (Model.HasPassword)
|
||||
{<a asp-controller="Manage"
|
||||
asp-action="ChangePassword">@SR["Change"]</a>}
|
||||
else
|
||||
{<a asp-controller="Manage"
|
||||
asp-action="SetPassword">@SR["Create"]</a>}]</dd>
|
||||
<dt>@SR["External Logins"]:</dt>
|
||||
<dd>
|
||||
@Model.Logins.Count [<a asp-controller="Manage" asp-action="ManageLogins">@SR["Manage"]</a>]
|
||||
</dd>
|
||||
|
||||
<dt>@SR["Activity"]:</dt>
|
||||
<dd>@Model.Activity?.Name
|
||||
[<a asp-controller="Manage" asp-action="SetActivity"
|
||||
>@SR[@Model.Activity==null?"Set":"Modify settings"]</a>]
|
||||
</dd>
|
||||
|
||||
<dt>@SR["YourPosts"]:</dt>
|
||||
<dd>@Model.PostsCounter
|
||||
[<a asp-controller="Blogspot" asp-action="UserPosts"
|
||||
asp-route-id="@Model.UserName">@SR["YourPosts"]</a>]
|
||||
</dd>
|
||||
|
||||
<dt>@SR["TwoFactorAuthentication"]:</dt>
|
||||
<dd>
|
||||
@if (Model.TwoFactor)
|
||||
{
|
||||
using (Html.BeginForm("DisableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
<text>@SR["Enabled"]
|
||||
<input type="submit" value="[@SR["Disable"]]" class="btn btn-link" />
|
||||
</text>
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
using (Html.BeginForm("EnableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
<text>@SR["Disabled"]
|
||||
<input type="submit" value="[@SR["Enable"]]" class="btn btn-link" />
|
||||
</text>
|
||||
}
|
||||
}
|
||||
</dd>
|
||||
<dt>@SR["Calendar"]</dt>
|
||||
<dd>
|
||||
@SR[Model.HasDedicatedCalendar?"Yes":"No"]
|
||||
[<a asp-action="SetGoogleCalendar">@SR["Select a Google calendar"]</a>]
|
||||
</dd>
|
||||
<dt>Credits:</dt>
|
||||
<dd>
|
||||
@(Model.Balance?.Credits ?? 0) €
|
||||
[<a asp-action="Credits">@SR["Manage"]</a>]
|
||||
</dd>
|
||||
</dl>
|
||||
<h4>
|
||||
<a asp-controller="Account" asp-action="Delete" >@SR["Unregister"]</a>
|
||||
</h4>
|
||||
</div>
|
54
Yavsc/Views/Manage/ManageLogins.cshtml
Executable file
54
Yavsc/Views/Manage/ManageLogins.cshtml
Executable file
@ -0,0 +1,54 @@
|
||||
@model ManageLoginsViewModel
|
||||
@using Microsoft.AspNet.Http.Authentication
|
||||
@{
|
||||
ViewData["Title"] = "Manage your external logins";
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
|
||||
<p class="text-success">@ViewData["StatusMessage"]</p>
|
||||
@if (Model.CurrentLogins.Count > 0)
|
||||
{
|
||||
<h4>Registered Logins</h4>
|
||||
<table class="table">
|
||||
<tbody>
|
||||
@foreach (var account in Model.CurrentLogins)
|
||||
{
|
||||
<tr>
|
||||
<td>@account.LoginProvider</td>
|
||||
<td>
|
||||
@if ((bool)ViewData["ShowRemoveButton"])
|
||||
{
|
||||
<form asp-controller="Manage" asp-action="RemoveLogin" method="post" class="form-horizontal" role="form">
|
||||
<div>
|
||||
<input asp-for="@account.LoginProvider" type="hidden" />
|
||||
<input asp-for="@account.ProviderKey" type="hidden" />
|
||||
<input type="submit" class="btn btn-default" value="Remove" title="Remove this @account.LoginProvider login from your account" />
|
||||
</div>
|
||||
</form>
|
||||
}
|
||||
else
|
||||
{
|
||||
@:
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
}
|
||||
@if (Model.OtherLogins.Count > 0)
|
||||
{
|
||||
<h4>Add another service to log in.</h4>
|
||||
<hr />
|
||||
<form asp-controller="Manage" asp-action="LinkLogin" method="post" class="form-horizontal" role="form">
|
||||
<div id="socialLoginList">
|
||||
<p>
|
||||
@foreach (var provider in Model.OtherLogins)
|
||||
{
|
||||
<button type="submit" class="btn btn-default" name="provider" value="@provider.AuthenticationScheme" title="Log in using your @provider.DisplayName account">@provider.AuthenticationScheme</button>
|
||||
}
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
}
|
167
Yavsc/Views/Manage/SetActivity.cshtml
Normal file
167
Yavsc/Views/Manage/SetActivity.cshtml
Normal file
@ -0,0 +1,167 @@
|
||||
@model PerformerProfile
|
||||
@{
|
||||
ViewData["Title"] = "Setup your performer profile";
|
||||
}
|
||||
|
||||
@section header{
|
||||
<script src="~/js/jquery-ui.js"></script>
|
||||
<script src="~/lib/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="~/lib/jquery-validation/additional-methods.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script>
|
||||
<script src="~/js/validator.js"></script>
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=@ViewBag.GoogleSettings.BrowserApiKey"></script>
|
||||
<script src="~/js/google.geocode.js"></script>
|
||||
<style>
|
||||
#map {
|
||||
width: 100%;
|
||||
height: 250px;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
|
||||
@section scripts{
|
||||
<script>
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
$('#Location_Address').geocode( { submit: 'btngeocode' ,
|
||||
inputLatitude: 'Location_Longitude',
|
||||
inputLongitude: 'Location_Latitude',
|
||||
combo: 'dropdownItems1',
|
||||
onValidated: function (e) {
|
||||
if (e.success) {
|
||||
var firstres = e.results[0];
|
||||
console.log(firstres);
|
||||
console.log(firstres.geometry);
|
||||
$('#AddressError').html("");
|
||||
}
|
||||
else {
|
||||
if (e.status=="ZERO_RESULTS") {
|
||||
$('#AddressError').html("aucun résultat");
|
||||
}
|
||||
else $('#AddressError').html(e.status);
|
||||
}
|
||||
} } );
|
||||
|
||||
|
||||
$.validator.addMethod("geocode", function(value, element) {
|
||||
console.log("here"); return $(element).geocodeAddress();});
|
||||
$("#FrmSetAct").validator({options: {
|
||||
errors: {
|
||||
match: 'Non conforme.',
|
||||
minlength: 'Pas assez long.',
|
||||
geocode: 'Adresse non reconnue par Google.'
|
||||
}
|
||||
}})
|
||||
});
|
||||
</script>
|
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
|
||||
@{ await Html.RenderPartialAsync("_PerformerPartial", Model) ; }
|
||||
|
||||
<form id="FrmSetAct" asp-controller="Manage" asp-action="SetActivity" method="post" class="form-horizontal" role="form">
|
||||
<h4>Choose below your main activity:</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.All" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ActivityCode" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="ActivityCode" asp-items=@ViewBag.Activities class="form-control" >
|
||||
</select>
|
||||
<span asp-validation-for="ActivityCode" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="AcceptNotifications" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="AcceptNotifications" class="form-control" />
|
||||
<span asp-validation-for="AcceptNotifications" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
<label asp-for="AcceptPublicContact" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="AcceptPublicContact" class="form-control" />
|
||||
|
||||
<span asp-validation-for="AcceptPublicContact" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
<label asp-for="AcceptGeoLocalisation" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="AcceptGeoLocalisation" class="form-control" />
|
||||
|
||||
<span asp-validation-for="AcceptGeoLocalisation" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
<label asp-for="WebSite" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="WebSite" class="form-control" />
|
||||
|
||||
<span asp-validation-for="WebSite" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
<label asp-for="MinDailyCost" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="MinDailyCost" class="form-control" />
|
||||
|
||||
<span asp-validation-for="MinDailyCost" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
<label asp-for="MaxDailyCost" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="MaxDailyCost" class="form-control" />
|
||||
|
||||
<span asp-validation-for="MaxDailyCost" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
<label asp-for="Active" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Active" class="form-control" />
|
||||
|
||||
<span asp-validation-for="Active" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
<label asp-for="SIREN" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="SIREN" class="form-control" />
|
||||
|
||||
<span asp-validation-for="SIREN" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
<label asp-for="OrganisationAddress.Address" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="OrganisationAddress.Address" asp-items=@ViewBag.Activities class="form-control" type="text" />
|
||||
|
||||
<span asp-validation-for="OrganisationAddress.Address" class="text-danger"></span>
|
||||
<div id="map"></div>
|
||||
</div>
|
||||
</div>
|
||||
@Html.Hidden("OrganisationAddress.Latitude")
|
||||
@Html.Hidden("OrganisationAddress.Longitude")
|
||||
@Html.Hidden("PerfomerId")
|
||||
<button type="submit" class="btn btn-default">Save these settings</button>
|
||||
|
||||
</form>
|
||||
|
||||
<form asp-controller="Manage" asp-action="UnsetActivity" method="post" class="form-horizontal" role="form">
|
||||
@Html.Hidden("PerfomerId")
|
||||
<button type="submit" class="btn btn-default">Remove my professional profile</button>
|
||||
</form>
|
29
Yavsc/Views/Manage/SetGoogleCalendar.cshtml
Normal file
29
Yavsc/Views/Manage/SetGoogleCalendar.cshtml
Normal file
@ -0,0 +1,29 @@
|
||||
@model SetGoogleCalendarViewModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Setup Google calendar access";
|
||||
}
|
||||
<form asp-action="SetGoogleCalendar">
|
||||
@{ var entryNum=0; }
|
||||
@foreach (var calendar in ViewBag.Calendars.items)
|
||||
{
|
||||
entryNum++;
|
||||
@if (calendar.accessRole=="owner") {
|
||||
<input type="radio" name="GoogleCalendarId" value="@calendar.id" id="cal@entryNum">
|
||||
<label for="cal@entryNum">
|
||||
<span style="background-color: @calendar.backgroundColor; foreground-color: @calendar.foregroundColor;">
|
||||
@calendar.summary </span>
|
||||
<i>"@calendar.description"</i>
|
||||
</label>
|
||||
|
||||
}
|
||||
}
|
||||
<input type="radio" name="GoogleCalendarId" id="cal0">
|
||||
<label for="cal0">
|
||||
@SR["No calendar setup"]
|
||||
<i>"@SR["Do not use any Google calendar to determine my availability"]"</i>
|
||||
</label>
|
||||
@Html.Hidden("ReturnUrl")
|
||||
<input type="submit"/>
|
||||
</form>
|
||||
|
38
Yavsc/Views/Manage/SetPassword.cshtml
Executable file
38
Yavsc/Views/Manage/SetPassword.cshtml
Executable file
@ -0,0 +1,38 @@
|
||||
@model SetPasswordViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Set Password";
|
||||
}
|
||||
|
||||
<p class="text-info">
|
||||
You do not have a local username/password for this site. Add a local
|
||||
account so you can log in without an external login.
|
||||
</p>
|
||||
|
||||
<form asp-controller="Manage" asp-action="SetPassword" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal" role="form">
|
||||
<h4>Set your password</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.All" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="NewPassword" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="NewPassword" class="form-control" />
|
||||
<span asp-validation-for="NewPassword" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ConfirmPassword" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ConfirmPassword" class="form-control" />
|
||||
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<button type="submit" class="btn btn-default">Set password</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@section Scripts {
|
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||
}
|
30
Yavsc/Views/Manage/VerifyPhoneNumber.cshtml
Executable file
30
Yavsc/Views/Manage/VerifyPhoneNumber.cshtml
Executable file
@ -0,0 +1,30 @@
|
||||
@model VerifyPhoneNumberViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Verify Phone Number";
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
|
||||
<form asp-controller="Manage" asp-action="VerifyPhoneNumber" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal" role="form">
|
||||
<input asp-for="PhoneNumber" type="hidden" />
|
||||
<h4>Add a phone number.</h4>
|
||||
<h5>@ViewData["Status"]</h5>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.All" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Code" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Code" class="form-control" />
|
||||
<span asp-validation-for="Code" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<button type="submit" class="btn btn-default">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@section Scripts {
|
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||
}
|
Reference in New Issue
Block a user