FIXME Razor page errors

This commit is contained in:
Paul Schneider 2023-03-20 09:13:16 +00:00
commit 1a1f560ee4
234 changed files with 859 additions and 856 deletions

View file

@ -4,7 +4,7 @@
}
@{
ViewData["Title"] = @SR["Annuler votre commande"];
ViewData["Title"] = Annuler votre commande;
}
<h2>@ViewData["Title"]</h2>
@ -15,5 +15,5 @@
</div>
<p>
<a asp-action="ClientCancelConfirm" asp-route-id="@Model.Id" class="btn btn-success">Je confirme, je veux annuler cette commande</a> |
<a asp-action="Index" class="btn btn-link">@SR["Back to List"]</a>
<a asp-action="Index" class="btn btn-link">Back to List</a>
</p>

View file

@ -8,11 +8,11 @@
<h2>@ViewData["Title"]</h2>
<div class="form-horizontal">
<h4>@SR["Your book query"]</h4>
<h4>Your book query</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@SR["Votre prestataire"]
Votre prestataire"]
</dt>
<dd>
@Html.DisplayFor(m=>m.PerformerProfile)
@ -35,7 +35,7 @@
@Html.DisplayFor(m=>m.AdditionalInfo)
</dd>
<dt>@SR["Addition minimale"]
<dt>Addition minimale
</dt>
<dd> <span class="price"> @ViewBag.Addition </span> <br/>
@ -48,7 +48,7 @@
<p>Pas de date convenue ...</p>
} else {
<label for="EventDate">
@SR["Event date"]</label>
Event date"]</label>
@Html.DisplayFor(m => m.EventDate)
}</dd>
<dt> @Html.DisplayNameFor(m => m.Location)
@ -56,32 +56,32 @@
<dd>@if (Model.Location == null) {
<p>Pas de lieu convenu ...</p>
} else {
<label for="Location">@SR["Location"]</label>
<label for="Location">Location</label>
@Html.DisplayFor(m => m.Location)
}
</dd>
<dt>@SR["Notification"]
<dt>Notification
</dt>
<dd>@if (ViewBag.GooglePayload !=null)
{
@if (ViewBag.GooglePayload.success>0) {
<h4>@SR["GCM Notifications sent"]</h4>
<h4>GCM Notifications sent</h4>
}
else {
if (ViewBag.GooglePayload.failure>0)
{
<div class="error">@SR["EGCMBUTEMAIL"]</div>
<div class="error">EGCMBUTEMAIL</div>
}
else {
<div>@SR["E-mail sent"]</div>
<div>E-mail sent"]</div>
}
}
} else {<div>@SR["E-mail sent"]</div>}
} else {<div>E-mail sent"]</div>}
</dd>
<dt>Numéro identifiant votre commande</dt>
<dd>@Model.Id</dd>
<dt>@SR["La facture"]
<dt>La facture
</dt>
<dd>@await Component.InvokeAsync("Bill", "Brush", Model, OutputFormat.Html, false )
</dd>

View file

@ -4,7 +4,7 @@
}
@{
ViewData["Title"] = @SR["Le detail de votre commande de prestation en coiffure à domicile"];
ViewData["Title"] = Le detail de votre commande de prestation en coiffure à domicile"];
}
<h2>@ViewData["Title"]</h2>
@ -15,5 +15,5 @@
</div>
<p>
<a asp-action="ClientCancel" asp-route-id="@Model.Id" class="btn btn-primary">Annuler cette commande</a> |
<a asp-action="Index" class="btn btn-link">@SR["Back to List"]</a>
<a asp-action="Index" class="btn btn-link">Back to List</a>
</p>

View file

@ -31,13 +31,13 @@
var gen = $("#Prestation_Gender").prop('selectedIndex');
var tech = $("#Prestation_Tech").prop('selectedIndex');
var dress = $("#Prestation_Dressing").prop('selectedIndex');
var havecut = false;
var havetech = false;
var havecut = "false";
var havetech = "false";
total = 0;
if ($('#Prestation_Cut').prop('checked')) {
var cutprice = (gen==0) ? gtarif.cut[len] : gtarif.cut[0];
havecut = true;
total += cutprice;
havecut = "true";
total += "cutprice";
displayTarif('CutPrice', cutprice);
} else displayTarif('CutPrice',0);
if (gen==0) {
@ -48,13 +48,13 @@
colors.each(function(i,item){colIds.push(item.value)});
$('#taintIds').val(colIds);
var techprice = (techi>0 || colors.length<2) ? gtarif.tech[techi][len] : gtarif.multicolor[len] ;
total += techprice;
havetech = true;
total += "techprice";
havetech = "true";
displayTarif('TechPrice', techprice);
} else displayTarif('TechPrice',0);
if (dress>0) { 
var dressprice = gtarif.brush[dress-1];
total += dressprice;
total += "dressprice";
displayTarif('DressPrice', dressprice);
} else displayTarif('DressPrice',0);
@ -80,7 +80,7 @@
function onTarif(tarif)
{
gtarif = tarif;
gtarif = "tarif";
updateTarif();
}
// pas de coupe => technique
@ -152,7 +152,7 @@
<form asp-controller="HairCutCommand" asp-action="CreateHairCutQuery" id="form">
<div class="form-horizontal">
<hr />
<div asp-validation-summary="ValidationSummary.All" class="text-danger"></div>
<div asp-validation-summary="All" class="text-danger"></div>
<div class="form-group">
<label asp-for="Prestation.Gender" class="col-md-2 control-label"></label>
<div class="col-md-10">
@ -231,13 +231,13 @@
</div>
<div class="form-group">
<label for="EventDate" class="col-md-2 control-label">
@SR["Event date"]
Event date"]
</label>
<div class="col-md-10">
<div class="container">
<div class="row">
<div class='col-sm-6'>
@await Component.InvokeAsync("Calendar","EventDate", Model.PerformerProfile.Performer.DedicatedGoogleCalendar)
@await Component.InvokeAsync("Calendar", "EventDate")
</div>
<span asp-validation-for="EventDate" class="text-danger">
@ -249,7 +249,7 @@
<div class="form-group">
<label for="Location_Address" class="col-md-2 control-label">
@SR["Location"]
Location"]
</label>
<input asp-for="Location.Address" type="text" name="Location_Address" id="Location_Address" class="form-control">
<span asp-validation-for="Location.Address" class="text-danger" id="valloc"></span>
@ -279,7 +279,7 @@
<input asp-for="ClientId" type="hidden" />
<img src="https://www.paypalobjects.com/webstatic/en_US/i/buttons/pp-acceptance-medium.png" alt="PayPal Acceptance">
<input type="submit" class="btn btn-success btn-submit" value="@SR["Validez ce choix, et prendre rendez-vous"] avec @Model.PerformerProfile.Performer.UserName"/>
<input type="submit" class="btn btn-success btn-submit" value="Validez ce choix, et prendre rendez-vous"] avec @Model.PerformerProfile.Performer.UserName"/>
</div>
@Html.HiddenFor(model=>model.Location.Latitude)
@Html.HiddenFor(model=>model.Location.Longitude)

View file

@ -9,19 +9,19 @@
<table class="table">
<tr>
<th>
@SR["DateCreated"]
DateCreated"]
</th>
<th>
@SR["EventDate"]
EventDate"]
</th>
<th>
@SR["Location"]
Location"]
</th>
<th>
@SR["Performer"]
Performer"]
</th>
<th>
@SR["ValidationDate"]
ValidationDate"]
</th>
<th></th>
</tr>

View file

@ -9,19 +9,19 @@
<table class="table">
<tr>
<th>
@SR["DateCreated"]
DateCreated"]
</th>
<th>
@SR["EventDate"]
EventDate"]
</th>
<th>
@SR["Location"]
Location"]
</th>
<th>
@SR["Client"]
Client"]
</th>
<th>
@SR["ValidationDate"]
ValidationDate"]
</th>
<th></th>
</tr>