files tree made better.
This commit is contained in:
parent
ffbf032480
commit
ccc91bbf19
1630 changed files with 18209 additions and 41860 deletions
65
src/Yavsc/Views/Manage/AddBankInfo.cshtml
Normal file
65
src/Yavsc/Views/Manage/AddBankInfo.cshtml
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
@model Yavsc.Models.Bank.BankIdentity
|
||||
@{
|
||||
ViewData["Title"] = SR["Fill in your Bank Info"];
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
<form asp-controller="Manage" asp-action="AddBankInfo" method="post" class="form-horizontal" role="form">
|
||||
<h4>Vous pouvez valider vos coordonnée bancaire ci après.</h4>
|
||||
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.All" class="text-danger"></div>
|
||||
|
||||
<fieldset>
|
||||
<div class="form-group">
|
||||
<label asp-for="BIC" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="BIC" class="form-control" />
|
||||
<span asp-validation-for="BIC" class="text-danger"></span>
|
||||
</div>
|
||||
<label asp-for="IBAN" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="IBAN" class="form-control" />
|
||||
<span asp-validation-for="IBAN" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<div class="form-group">
|
||||
|
||||
<label asp-for="AccountNumber" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="AccountNumber" class="form-control" />
|
||||
<span asp-validation-for="AccountNumber" class="text-danger"></span>
|
||||
</div>
|
||||
|
||||
<label asp-for="BankCode" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="BankCode" class="form-control" />
|
||||
<span asp-validation-for="BankCode" class="text-danger"></span>
|
||||
</div>
|
||||
|
||||
<label asp-for="WicketCode" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="WicketCode" class="form-control" />
|
||||
<span asp-validation-for="WicketCode" class="text-danger"></span>
|
||||
</div>
|
||||
|
||||
<label asp-for="BankedKey" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="BankedKey" class="form-control" />
|
||||
<span asp-validation-for="BankedKey" class="text-danger"></span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<button type="submit" class="btn btn-default">Enregistrer ces informations bancaires</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@section Scripts {
|
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||
}
|
||||
27
src/Yavsc/Views/Manage/AddPhoneNumber.cshtml
Executable file
27
src/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"); }
|
||||
}
|
||||
42
src/Yavsc/Views/Manage/ChangePassword.cshtml
Executable file
42
src/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
src/Yavsc/Views/Manage/ChangeUserName.cshtml
Normal file
23
src/Yavsc/Views/Manage/ChangeUserName.cshtml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
@model ChangeUserNameViewModel
|
||||
@{
|
||||
ViewData["Title"] = @SR["Changer de nom d'utilisateur"];
|
||||
}
|
||||
|
||||
<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"); }
|
||||
}
|
||||
50
src/Yavsc/Views/Manage/Credit.cshtml
Normal file
50
src/Yavsc/Views/Manage/Credit.cshtml
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
@{
|
||||
ViewData["Title"] = @"Créditer";
|
||||
}
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
<environment names="Development">
|
||||
<em>Gimmy da flooze</em>
|
||||
</environment>
|
||||
|
||||
<div id="paypal-button"></div>
|
||||
|
||||
<script src="https://www.paypalobjects.com/api/checkout.js"></script>
|
||||
<environment names="lua,coiffure,zicmoove,yavsc,yavscpre">
|
||||
<script>
|
||||
var CREATE_PAYMENT_URL = 'https://lua.pschneider.fr/api/payment/create';
|
||||
var EXECUTE_PAYMENT_URL = 'https://lua.pschneider.fr/api/payment/execute';
|
||||
var PAYPAL_ENV = 'sandbox';
|
||||
</script>
|
||||
</environment>
|
||||
<environment names="Development">
|
||||
<script>
|
||||
var CREATE_PAYMENT_URL = 'https://dev.pschneider.fr/api/payment/create';
|
||||
var EXECUTE_PAYMENT_URL = 'https://dev.pschneider.fr/api/payment/execute';
|
||||
var PAYPAL_ENV = 'sandbox';
|
||||
</script>
|
||||
</environment>
|
||||
<script>
|
||||
paypal.Button.render({
|
||||
|
||||
env: PAYPAL_ENV, // 'production', Optional: specify 'sandbox' environment
|
||||
|
||||
payment: function(resolve, reject) {
|
||||
|
||||
return paypal.request.post(CREATE_PAYMENT_URL)
|
||||
.then(function(data) { resolve(data.id); })
|
||||
.catch(function(err) { reject(err); });
|
||||
},
|
||||
|
||||
onAuthorize: function(data) {
|
||||
|
||||
// Note: you can display a confirmation page before executing
|
||||
|
||||
return paypal.request.post(EXECUTE_PAYMENT_URL,
|
||||
{ paymentID: data.paymentID, payerID: data.payerID })
|
||||
|
||||
.then(function(data) { /* Go to a success page */ })
|
||||
.catch(function(err) { /* Go to an error page */ });
|
||||
}
|
||||
|
||||
}, '#paypal-button');
|
||||
</script>
|
||||
46
src/Yavsc/Views/Manage/Credits.cshtml
Executable file
46
src/Yavsc/Views/Manage/Credits.cshtml
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
@{
|
||||
ViewData["Title"] = @SR["Credits"];
|
||||
}
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
<em>Your credits</em>
|
||||
|
||||
<img src="https://devtools-paypal.com/image/bdg_payments_by_pp_2line.png" alt="PAYMENTS BY PayPal" />
|
||||
<div id="wrapper">
|
||||
<div id="header">
|
||||
<h3>
|
||||
AddressVerify</h3>
|
||||
<div id="apidetails">
|
||||
Confirms whether a postal address and postal code match those of the specified PayPal
|
||||
account holder.</div>
|
||||
</div>
|
||||
<form id="form1" runat="server">
|
||||
<div id="request_form">
|
||||
<div class="param_name">
|
||||
Buyer's Email address *</div>
|
||||
<div class="param_value">
|
||||
<input type="text" name="email" id="email" value="platfo_1255077030_biz@gmail.com" runat="server" />
|
||||
</div>
|
||||
<div class="param_name">
|
||||
First line of street address *</div>
|
||||
<div class="param_value">
|
||||
<input type="text" name="street" id="street" value="123" runat="server" />
|
||||
</div>
|
||||
<div class="param_name">
|
||||
Postal code *</div>
|
||||
<div class="param_value">
|
||||
<input type="text" name="zip" id="zip" value="95131" runat="server" />
|
||||
</div>
|
||||
<div class="submit">
|
||||
<input id="submit" type="submit" name="submit" value="Submit" runat="server" onserverclick="Submit_Click" />
|
||||
<br />
|
||||
<br />
|
||||
<a href="../Default.aspx">Home</a> <a href="javascript:history.back();">Back</a>z
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<p>
|
||||
<img src="https://www.paypal.com/fr_XC/i/btn/btn_xpressCheckout.gif" align="left" style="margin-right:7px;" />
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
127
src/Yavsc/Views/Manage/DoDirectCredit.cshtml
Normal file
127
src/Yavsc/Views/Manage/DoDirectCredit.cshtml
Normal file
|
|
@ -0,0 +1,127 @@
|
|||
@model DoDirectCreditViewModel
|
||||
|
||||
<form asp-action="DoDirectCredit">
|
||||
<div asp-validation-summary="ValidationSummary.All" class="text-danger" id="ValidationSummary"></div>
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
<label asp-for="PaymentType" class="col-md-2 control-label">Type de paiement</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="PaymentType" class="form-control" type="text" />
|
||||
<span asp-validation-for="PaymentType" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PayerName" class="col-md-2 control-label">Votre nom complet</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="PayerName" class="form-control" type="text" />
|
||||
<span asp-validation-for="PayerName" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="FirstName" class="col-md-2 control-label">Prénom</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="FirstName" class="form-control" type="text" />
|
||||
<span asp-validation-for="FirstName" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LastName" class="col-md-2 control-label">Nom de fammille</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LastName" class="form-control" type="text" />
|
||||
<span asp-validation-for="LastName" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="CreditCardNumber" class="col-md-2 control-label">Numéro de carte de crédit</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="CreditCardNumber" class="form-control" type="text" />
|
||||
<span asp-validation-for="CreditCardNumber" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="CreditCardType" class="col-md-2 control-label">Type de carte</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="CreditCardType" class="form-control" type="text" />
|
||||
<span asp-validation-for="CreditCardType" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Cvv2Number" class="col-md-2 control-label">Code de vérification visuelle</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Cvv2Number" class="form-control" type="text" />
|
||||
<span asp-validation-for="Cvv2Number" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="CardExpiryDate" class="col-md-2 control-label">Date d'expritation</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="CardExpiryDate" class="form-control" type="text" />
|
||||
<span asp-validation-for="CardExpiryDate" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Street1" class="col-md-2 control-label">Adresse</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Street1" class="form-control" type="text" />
|
||||
<span asp-validation-for="Street1" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Street2" class="col-md-2 control-label">Adresse (2ième ligne)</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Street2" class="form-control" type="text" />
|
||||
<span asp-validation-for="Street2" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="City" class="col-md-2 control-label">Ville</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="City" class="form-control" type="text" />
|
||||
<span asp-validation-for="City" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="State" class="col-md-2 control-label">État</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="State" class="form-control" type="text" />
|
||||
<span asp-validation-for="State" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Country" class="col-md-2 control-label">Pays</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Country" class="form-control" type="text" />
|
||||
<span asp-validation-for="Country" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PostalCode" class="col-md-2 control-label">Code postal</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="PostalCode" class="form-control" type="text" />
|
||||
<span asp-validation-for="PostalCode" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Phone" class="col-md-2 control-label">Téléphone</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Phone" class="form-control" type="text" />
|
||||
<span asp-validation-for="Phone" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="CurrencyCode" class="col-md-2 control-label">Monaie</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="CurrencyCode" class="form-control" type="text" />
|
||||
<span asp-validation-for="CurrencyCode" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Amount" class="col-md-2 control-label">Montant</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Amount" class="form-control" type="text" />
|
||||
<span asp-validation-for="Amount" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div><input asp-for="IpnNotificationUrl" type="hidden" />
|
||||
</form>
|
||||
168
src/Yavsc/Views/Manage/Index.cshtml
Executable file
168
src/Yavsc/Views/Manage/Index.cshtml
Executable file
|
|
@ -0,0 +1,168 @@
|
|||
@model IndexViewModel
|
||||
@using System.Security.Claims
|
||||
@{
|
||||
ViewData["Title"] = @SR["Manage your account"];
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
<p class="text-success">@ViewData["StatusMessage"]</p>
|
||||
<div>
|
||||
<h4>@SR["Your account settings"]</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>@SR["UserName"]:</dt>
|
||||
|
||||
<dd>
|
||||
@Model.UserName
|
||||
</dd>
|
||||
|
||||
<dt>@SR["EMail"]:</dt>
|
||||
|
||||
<dd>
|
||||
@Model.EMail
|
||||
|
||||
@if (Model.EmailConfirmed) {
|
||||
<text>(@SR["Adresse E-mail confirmée"])</text>
|
||||
} else {
|
||||
<text>
|
||||
<i> (@SR["Adresse non confirmée."])</i>
|
||||
<form asp-action="SendEMailForConfirm" asp-controller="Account" enctype="multipart/form-data">
|
||||
<input type="submit" value="@SR["Confirmer cette adresse"]"/>
|
||||
</form>
|
||||
</text>
|
||||
}
|
||||
</dd>
|
||||
|
||||
<dd>
|
||||
<dt>@SR["AllowMonthlyEmail"]:</dt>
|
||||
<dl>
|
||||
<a asp-action="ProfileEMailUsage"> @Html.DisplayFor(m=>m.AllowMonthlyEmail) [modifier]
|
||||
</a>
|
||||
</dl>
|
||||
</dd>
|
||||
|
||||
@if (Model.Roles.Count()>0) {
|
||||
<dt>@SR["Roles"]:</dt>
|
||||
<dd>
|
||||
@string.Join(", ",Model.Roles)
|
||||
</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["Full name"]:</dt>
|
||||
<dd>@Model.FullName [<a asp-controller="Manage" asp-action="SetFullName"
|
||||
>@SR[@Model.FullName==null?"Set":"Modify"]</a>]</dd>
|
||||
|
||||
<dt>@SR["Address"]:</dt>
|
||||
<dd>@Model.PostalAddress
|
||||
[<a asp-controller="Manage" asp-action="SetAddress"
|
||||
>@SR[@Model.PostalAddress==null?"Set":"Modify"]</a>]
|
||||
</dd>
|
||||
|
||||
<dt>@SR["Avatar"]:</dt>
|
||||
<dd>
|
||||
|
||||
@Component.Invoke("Avatar", User.GetUserId(), ".s")
|
||||
[<a asp-controller="Manage" asp-action="SetAvatar"
|
||||
>@SR["Modify"]</a>]
|
||||
</dd>
|
||||
|
||||
<dt>@SR["Vos cercles"]</dt>
|
||||
<dd> (WIP) <a asp-action="Index" asp-controller="Circle">[@SR["Ajouter suprimer des cercles"]]</a>
|
||||
<a asp-action="Index" asp-controller="CircleMembers">[@SR["Gérer les membres de vos cercles"]]</a>
|
||||
</dd>
|
||||
|
||||
<dt>@SR["Professional settings"]:</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.HaveProfessionalSettings)
|
||||
[<a asp-controller="Manage" asp-action="SetActivity"
|
||||
>@SR[Model.HaveProfessionalSettings?"Modify settings":"Set"]</a>]
|
||||
</dd>
|
||||
@if (Model.HaveProfessionalSettings) {
|
||||
<dt>@SR["Activities"]:</dt>
|
||||
<dd>
|
||||
@string.Join(", ",Model.Activity.Select( u=> u.Does.Name ).ToArray())
|
||||
[<a asp-controller="Do" asp-action="Index"
|
||||
>@SR[@Model.Activity==null?"Set":"Modify settings"]</a>]
|
||||
</dd>
|
||||
}
|
||||
<dt>@SR["Bank info"]:</dt>
|
||||
<dd>@Html.DisplayFor(m => m.BankInfo) [<a asp-controller="Manage" asp-action="AddBankInfo"
|
||||
>@SR[@Model.BankInfo==null?"Set":"Modify"]</a>]</dd>
|
||||
|
||||
<dt><a href="/Blog/@Model.UserName">@SR["Your posts"]:</a></dt>
|
||||
<dd>@Model.PostsCounter</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"]
|
||||
@if (Model.HasDedicatedCalendar) {
|
||||
<text> : @Model.DedicatedCalendarId </text>
|
||||
}
|
||||
[<a asp-action="SetGoogleCalendar">@SR["Select a Google calendar"]</a>]
|
||||
</dd>
|
||||
<environment names="Development">
|
||||
<dt>Credits:</dt>
|
||||
<dd>
|
||||
@(Model.Balance?.Credits ?? 0) €
|
||||
[<a asp-action="Credits">@SR["Manage"]</a>]
|
||||
</dd>
|
||||
</environment>
|
||||
|
||||
<dt>Usage disque</dt>
|
||||
<dd>
|
||||
@if (Model.DiskQuota>0)
|
||||
{
|
||||
<text>
|
||||
@(((double)Model.DiskUsage/Model.DiskQuota).ToString("%#0")) :
|
||||
</text>
|
||||
}
|
||||
<text>
|
||||
@(Model.DiskUsage.ToString("0,#")) / @(Model.DiskQuota.ToString("0,#"))
|
||||
</text>
|
||||
</dd>
|
||||
<dt>Identifiant utilisateur</dt>
|
||||
<dd>
|
||||
@User.GetUserId()
|
||||
</dd>
|
||||
</dl>
|
||||
<h4>
|
||||
<a asp-controller="GCMDevices" asp-action="Index" >@SR["Gérer mes terminaux autorisés"]</a>
|
||||
</h4>
|
||||
<h4>
|
||||
<a asp-controller="Account" asp-action="Delete" >@SR["Unregister"]</a>
|
||||
</h4>
|
||||
</div>
|
||||
55
src/Yavsc/Views/Manage/ManageLogins.cshtml
Executable file
55
src/Yavsc/Views/Manage/ManageLogins.cshtml
Executable file
|
|
@ -0,0 +1,55 @@
|
|||
@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>
|
||||
@account.ProviderDisplayName
|
||||
@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>
|
||||
}
|
||||
8
src/Yavsc/Views/Manage/PaymentError.cshtml
Normal file
8
src/Yavsc/Views/Manage/PaymentError.cshtml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
@{
|
||||
ViewData["Title"] = "Le paiment "+ViewData["id"]+" a échoué";
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
<p>
|
||||
@ViewData["error"]
|
||||
</p>
|
||||
31
src/Yavsc/Views/Manage/PaymentInfo.cshtml
Normal file
31
src/Yavsc/Views/Manage/PaymentInfo.cshtml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
@model Yavsc.ViewModels.PayPal.PaymentInfo
|
||||
@{
|
||||
ViewData["Title"] = "Informations sur le paiment "+ViewData["id"];
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
<p>
|
||||
@if (Model.DbContent.Executor.Id == User.GetUserId()) {
|
||||
<text>
|
||||
Votre paiment
|
||||
</text>
|
||||
} else {
|
||||
<text>
|
||||
Le paiment de @Html.DisplayFor(m=>m.DbContent.Executor.UserName)
|
||||
</text>
|
||||
}
|
||||
<text> :
|
||||
<dl>
|
||||
<dt>
|
||||
|
||||
[@Model.DbContent.CreationToken]<br/>
|
||||
|
||||
@Html.DisplayFor(m=>m.DetailsFromPayPal)
|
||||
</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
</text>
|
||||
</p>
|
||||
29
src/Yavsc/Views/Manage/ProfileEMailUsage.cshtml
Normal file
29
src/Yavsc/Views/Manage/ProfileEMailUsage.cshtml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
@model Yavsc.ViewModels.Manage.ProfileEMailUsageViewModel
|
||||
|
||||
|
||||
|
||||
<form asp-action="ProfileEMailUsage" >
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<div class="checkbox">
|
||||
<input asp-for="Allow" />
|
||||
<label asp-for="Allow"></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
210
src/Yavsc/Views/Manage/SetActivity.cshtml
Normal file
210
src/Yavsc/Views/Manage/SetActivity.cshtml
Normal file
|
|
@ -0,0 +1,210 @@
|
|||
@model PerformerProfile
|
||||
@{ ViewData["Title"] = SR["Your performer profile"]; }
|
||||
@section header {
|
||||
<style>
|
||||
#map {
|
||||
width: 100%;
|
||||
height: 250px;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
@section scripts {
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=@ViewBag.GoogleSettings.BrowserApiKey"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
var config = {
|
||||
mapId: 'map',
|
||||
addrId: 'OrganizationAddress_Address',
|
||||
longId: 'OrganizationAddress_Longitude',
|
||||
latId: 'OrganizationAddress_Latitude',
|
||||
addrValidationId: 'AddressError',
|
||||
formValidId: 'valsum',
|
||||
locComboId: 'loccomb'
|
||||
};
|
||||
$.validator.setDefaults({
|
||||
messages: {
|
||||
remote: "Ce lieu n'est pas identifié par les services de géo-localisation Google",
|
||||
required: "Veuillez renseigner ce champ"
|
||||
}
|
||||
});
|
||||
|
||||
var gmap = new google.maps.Map(document.getElementById('map'), {
|
||||
zoom: 16,
|
||||
center: { lat: 48.862854, lng: 2.2056466 }
|
||||
});
|
||||
var marker;
|
||||
|
||||
function chooseLoc(sender,loc) {
|
||||
if (sender === 'user') $('#'+config.addrId).val(loc.formatted_address);
|
||||
var pos = loc.geometry.location;
|
||||
var lat = new Number(pos.lat);
|
||||
var lng = new Number(pos.lng);
|
||||
gmap.setCenter(pos);
|
||||
if (marker) {
|
||||
marker.setMap(null);
|
||||
}
|
||||
marker = new google.maps.Marker({
|
||||
map: gmap,
|
||||
draggable: true,
|
||||
animation: google.maps.Animation.DROP,
|
||||
position: pos
|
||||
});
|
||||
google.maps.event.addListener(marker, 'dragend', function() {
|
||||
// TODO reverse geo code
|
||||
var pos = marker.getPosition();
|
||||
$('#'+config.latId).val(pos.lat);
|
||||
$('#'+config.longId).val(pos.lng);
|
||||
});
|
||||
$('#'+config.addrId).valid();
|
||||
$('#'+config.addrValidationId).empty();
|
||||
$('#'+config.formValidId).empty();
|
||||
return true;
|
||||
}
|
||||
|
||||
$('#'+config.addrId).rules("add",
|
||||
{
|
||||
remote: {
|
||||
url: 'https://maps.googleapis.com/maps/api/geocode/json',
|
||||
type: 'get',
|
||||
data: {
|
||||
key: '@Startup.GoogleSettings.BrowserApiKey',
|
||||
sensor: false,
|
||||
address: function () { return $('#'+config.addrId).val() }
|
||||
},
|
||||
dataType: 'json',
|
||||
dataFilter: function(datastr,type) {
|
||||
$('#'+config.locComboId).html("");
|
||||
var data = JSON.parse(datastr);
|
||||
data.results.forEach(function(element) {
|
||||
if (element.formatted_address !== $('#'+config.addrId).val()) {
|
||||
$('<li>'+element.formatted_address+'</li>')
|
||||
.data("geoloc",element)
|
||||
.click(function() { chooseLoc('user',$(this).data("geoloc")) })
|
||||
.appendTo($('#'+config.locComboId));}
|
||||
else { }
|
||||
});
|
||||
if ((data.status === 'OK') && (data.results.length == 1))
|
||||
{
|
||||
chooseLoc('google',data.results[0]);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
error: function(xhr, textStatus, errorThrown)
|
||||
{
|
||||
console.log('ajax loading error ... '+textStatus+' ... '+ errorThrown);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
}
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
|
||||
@Html.DisplayFor(model => model)
|
||||
|
||||
<form id="FrmSetAct" asp-controller="Manage" asp-action="SetActivity" method="post" class="form-horizontal" role="form">
|
||||
<h4>@SR["Setup below your activity parameters"]:</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.All" class="text-danger" id="valsum"></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="AcceptNotifications" class="col-md-2 control-label">
|
||||
@SR["AcceptNotifications"]
|
||||
</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">@SR["AcceptPublicContact"]</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="UseGeoLocalizationToReduceDistanceWithClients" class="col-md-2 control-label">
|
||||
@SR["UseGeoLocalizationToReduceDistanceWithClients"]
|
||||
</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="UseGeoLocalizationToReduceDistanceWithClients" class="form-control" />
|
||||
|
||||
<span asp-validation-for="UseGeoLocalizationToReduceDistanceWithClients" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
<label asp-for="WebSite" class="col-md-2 control-label">@SR["WebSite"]</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">@SR["MinDailyCost"]</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">@SR["MaxDailyCost"]</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">@SR["ActivateMyProSettings"]</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">@SR["SIREN"]</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="OrganizationAddress.Address" class="col-md-2 control-label">@SR["Address"]</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="OrganizationAddress.Address" class="form-control" type="text" />
|
||||
|
||||
<span id="AddressError" asp-validation-for="OrganizationAddress.Address" class="text-danger"></span>
|
||||
<ul id="loccomb" >
|
||||
</ul>
|
||||
<div id="map"></div>
|
||||
</div>
|
||||
</div>
|
||||
@Html.Hidden("OrganizationAddress.Latitude") @Html.Hidden("OrganizationAddress.Longitude") @Html.Hidden("PerformerId")
|
||||
<button type="submit" class="btn btn-default">@SR["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">@SR["UnsetActivity"]</button>
|
||||
</form>
|
||||
|
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||
|
||||
|
||||
48
src/Yavsc/Views/Manage/SetAddress.cshtml
Normal file
48
src/Yavsc/Views/Manage/SetAddress.cshtml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
@model SetAddressViewModel
|
||||
|
||||
<style>
|
||||
#map {
|
||||
width: 100%;
|
||||
height: 250px;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<form asp-action="SetAddress">
|
||||
<div asp-validation-summary="ValidationSummary.All" class="text-danger" id="ValidationSummary"></div>
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
<label asp-for="Street1" class="col-md-2 control-label">@SR["Address"]</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Street1" class="form-control" type="text" />
|
||||
|
||||
<span id="AddressError" asp-validation-for="Street1" class="text-danger"></span>
|
||||
<ul id="LocationCombo" >
|
||||
</ul>
|
||||
<div id="map"></div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="submit" class="btn btn-success" value="Enregistrer" />
|
||||
|
||||
</form>
|
||||
|
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||
|
||||
@section scripts {
|
||||
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=@ViewBag.GoogleSettings.BrowserApiKey"></script>
|
||||
<script src="~/js/google-geoloc.js" asp-append-version="true"></script>
|
||||
<script >
|
||||
$(document).ready(function(){
|
||||
$.validator.setDefaults({
|
||||
messages: {
|
||||
remote: "Ce lieu n'est pas identifié par les services de géo-localisation Google",
|
||||
required: "Veuillez renseigner ce champ"
|
||||
}
|
||||
});
|
||||
$("#Address").googlegeocode()
|
||||
})
|
||||
</script>
|
||||
|
||||
}
|
||||
32
src/Yavsc/Views/Manage/SetAvatar.cshtml
Normal file
32
src/Yavsc/Views/Manage/SetAvatar.cshtml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
@model PerformerProfile
|
||||
@{ ViewData["Title"] = SR["Edit your avatar"]; }
|
||||
@section header{
|
||||
<link href="~/css/main/dropzone.css" rel="stylesheet">
|
||||
}
|
||||
@section scripts{
|
||||
<script src="~/js/dropzone.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
Dropzone.options.postavatar= {
|
||||
maxFilesize: 2, // MB (an avatar)
|
||||
autoProcessQueue: true,
|
||||
accept: function(file, done) {
|
||||
if (file.name == "justinbieber.jpg") {
|
||||
done("Naha, you don't.");
|
||||
}
|
||||
else { done(); }
|
||||
},
|
||||
url: "/api/setavatar"
|
||||
};
|
||||
});
|
||||
</script>
|
||||
}
|
||||
<img src="~/avatars/@(User.Identity.Name).png">
|
||||
|
||||
<form id="postavatar" class="dropzone" method="post" enctype="multipart/form-data">
|
||||
<div class="fallback">
|
||||
<input name="Avatar" type="file" id="Avatar" />
|
||||
</div>
|
||||
|
||||
@Html.AntiForgeryToken()
|
||||
</form>
|
||||
30
src/Yavsc/Views/Manage/SetGoogleCalendar.cshtml
Normal file
30
src/Yavsc/Views/Manage/SetGoogleCalendar.cshtml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
@model SetGoogleCalendarViewModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Setup Google calendar access";
|
||||
}
|
||||
<form asp-action="SetGoogleCalendar">
|
||||
@{ var entryNum=0; }
|
||||
@foreach (var calendar in Model.Calendars.Items)
|
||||
{
|
||||
entryNum++;
|
||||
@if (calendar.AccessRole=="owner") {
|
||||
<label >
|
||||
<input type="radio" name="GoogleCalendarId" value="@calendar.Id" id="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
src/Yavsc/Views/Manage/SetPassword.cshtml
Executable file
38
src/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
src/Yavsc/Views/Manage/VerifyPhoneNumber.cshtml
Executable file
30
src/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"); }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue