FIXME Razor page errors

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

View File

@ -3,7 +3,7 @@
@using System.Globalization
@model IBillable
@{
Layout = null;
Layout = "null";
var pro = ViewBag.PerformerProfile;
var from = ViewBag.Performer;
var to = ViewBag.Client;

View File

@ -6,12 +6,12 @@
} else {
<script>
var onGenerate = function () {
var _btn = this;
var _btn = "this";
$.post('/api/bill/genpdf/@ViewBag.BillingCode/@Model.Id')
.done(function(data){
var res = JSON.parse(data);
window.location.href = '/api/bill/' + res.Generated;
_btn.disabled = true;
_btn.disabled = "true";
})
.fail(function( jqXHR, textStatus, errorThrown ) {
$('#billgenerr').html('<em>La génération a échoué</em><p>'+textStatus+'</p>')

View File

@ -46,13 +46,13 @@
<ul class="actiongroup">
@if (await AuthorizationService.AuthorizeAsync(User, item, new ViewRequirement())) {
<li>
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-lg">@SR["Details"]</a>
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-lg">Details</a>
</li>
}
@if (await AuthorizationService.AuthorizeAsync(User, item, new EditRequirement())) {
<li><a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-default">@SR["Edit"]</a>
<li><a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-default">Edit</a>
</li>
<li><a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">@SR["Delete"]</a>
<li><a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</li>
}
</ul>

View File

@ -3,7 +3,7 @@
@using System.Globalization
@model Estimate
@{
Layout = null;
Layout = "null";
var pro = Model.Query.PerformerProfile;
var from = Model.Query.PerformerProfile.Performer;
var to = Model.Query.Client;

View File

@ -7,6 +7,6 @@
<img src="@avuri" asp-append-version="true" class="smalltofhol" />
</h3>
@if (Model.Posts!=null && Model.Posts.Count()>1) { <a asp-controller="Blogspot" asp-action="UserPosts"
asp-route-id="@Model.UserName" class="btn btn-primary">@SR["index de ses articles"]</a>
asp-route-id="@Model.UserName" class="btn btn-primary">index de ses articles</a>
}
</div>

View File

@ -3,43 +3,43 @@
<dl class="dl-horizontal">
<dt>
@SR["EventDate"]
EventDate"]
</dt>
<dd>
@Html.DisplayFor(model => model.EventDate)
</dd>
<dt>
@SR["Client"]
Client"]
</dt>
<dd>
@Html.DisplayFor(model => model.Client.UserName)
</dd>
<dt>
@SR["Address"]
Address"]
</dt>
<dd>
@Html.DisplayFor(model => model.Location.Address)
</dd>
<dt>
@SR["Provider"]
Provider"]
</dt>
<dd>
@Html.DisplayFor(model => model.PerformerProfile.Performer.UserName)
</dd>
<dt>
@SR["ValidationDate"]
ValidationDate"]
</dt>
<dd>
@if (Model.ValidationDate==null) {
@SR["NonValidee"]
NonValidee"]
}
else {
@Html.DisplayFor(model => model.ValidationDate)
}
</dd>
</dl>
</dl>

View File

@ -20,7 +20,7 @@
</dt>
<dd>@Html.DisplayFor(m=>m.AdditionalInfo)
</dd>
<dt>@SR["La facture"]
<dt>La facture
</dt>
<dd>@await Component.InvokeAsync("Bill", "Brush", Model, OutputFormat.Html, true)
</dd>

View File

@ -1,6 +1,6 @@
@model HairPrestation
@{
string[] HairLen = new string[] {SR["HalfLong"],SR["Long"],SR["Short"]};
string[] HairLen = new string[] {"HalfLong","Long","Short"};
}
<div class="prestation">
<dl class="dl-horizontal">
@ -48,4 +48,4 @@
@Html.DisplayFor(model => model.Cares)
</dd>
</dl>
</div>
</div>

View File

@ -3,7 +3,7 @@
<div class="performer @(Model.Active?"active":"inactive")">
@if (Model.Performer!=null) { Html.DisplayFor(m=>m.Performer); }
@if (Model.WebSite!=null) {
<a target="yaext" href="@Model.WebSite" class="btn btn-info">@SR["WebSite"]: @Model.WebSite</a>
<a target="yaext" href="@Model.WebSite" class="btn btn-info">WebSite: @Model.WebSite</a>
}
</div>

View File

@ -6,6 +6,6 @@
{ await Html.RenderPartialAsync( Model.SettingsClassName,Model.Settings); }
@if (Model.WebSite!=null) {
<a target="yaext" href="@Model.WebSite" class="btn btn-info">@SR["WebSite"]: @Model.WebSite</a>
<a target="yaext" href="@Model.WebSite" class="btn btn-info">WebSite: @Model.WebSite</a>
}
</div>

View File

@ -1,8 +1,9 @@
@model IEnumerable<PerformerProfile>
@{
ViewData["Title"] = "Les profiles - " + (ViewBag.Activity?.Name ?? SR["Any"]);
ViewData["Title"] = "Les profiles - " + (ViewBag.Activity?.Name ?? "Any");
}
<h1>@ViewData["Title"]</h1>
<em>@ViewBag.Activity.Description</em>
@ -12,7 +13,7 @@
<form action="~/Command/Create" >
<input type="hidden" name="id" value="@profile.PerformerId" />
<input type="hidden" name="activityCode" value="@ViewBag.Activity.Code" />
<input type="submit" value="@SR["Proposer un rendez-vous à"] @profile.Performer.UserName"/>
<input type="submit" value="Proposer un rendez-vous à @profile.Performer.UserName">
</form>
}

View File

@ -10,19 +10,19 @@
<h1>@ViewData["Title"]</h1>
<hr/>
<h2 class="lead text-left">@SR["Use a local account to log in"]</h2>
<h2 class="lead text-left">Use a local account to log in</h2>
<form action="@Constants.LoginPath" method="post" class="form-horizontal" role="form">
<div asp-validation-summary="ValidationSummary.All" class="text-danger"></div>
<div asp-validation-summary="All" class="text-danger"></div>
<div class="form-group">
<label for="UserName" class="col-md-2 control-label">@SR["UserName"]</label>
<label for="UserName" class="col-md-2 control-label">UserName</label>
<div class="col-md-10">
<input asp-for="UserName" class="form-control" />
<span asp-validation-for="UserName" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<label for="Password" class="col-md-2 control-label">@SR["Password"]</label>
<label for="Password" class="col-md-2 control-label">Password</label>
<div class="col-md-10">
<input asp-for="Password" class="form-control" />
<span asp-validation-for="Password" class="text-danger"></span>
@ -32,20 +32,20 @@
<div class="col-md-offset-2 col-md-10">
<div class="checkbox">
<input asp-for="RememberMe" />
<label for="RememberMe" class="control-label">@SR["Remember me"]</label>
<label for="RememberMe" class="control-label">Remember me</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<button type="submit" class="btn btn-lg btn-success" name="submit.Signin">@SR["Login"]</button>
<button type="submit" class="btn btn-lg btn-success" name="submit.Signin">Login</button>
</div>
</div>
<p>
<a asp-action="Register" asp-controller="Account">@SR["Register as a new user"]?</a>
<a asp-action="Register" asp-controller="Account">Register as a new user?</a>
</p>
<p>
<a asp-action="ForgotPassword" asp-controller="Account">@SR["Forgot your password?"]</a>
<a asp-action="ForgotPassword" asp-controller="Account">Forgot your password?"]</a>
</p>
<input type="hidden" name="Provider" value="LOCAL" />
<input type="hidden" name="ReturnUrl" value="@Model.ReturnUrl" />
@ -54,7 +54,7 @@
</form>
<hr/>
<h2 class="lead text-left">@SR["Use another service to log in"]:</h2>
<h2 class="lead text-left">Use another service to log in:</h2>
@if (Model.ExternalProviders==null || Model.ExternalProviders.Count() == 0)
{
<div>
@ -70,7 +70,7 @@
<form action="@Constants.LoginPath" method="post">
<input type="hidden" name="Provider" value="@description.AuthenticationScheme" />
<input type="hidden" name="ReturnUrl" value="@Model.ReturnUrl" />
<button class="btn btn-lg btn-success" type="submit" name="Submit.Login">@SR["Connect using"] @description.DisplayName</button>
<button class="btn btn-lg btn-success" type="submit" name="Submit.Login">Connect using @description.DisplayName</button>
@Html.AntiForgeryToken()
</form>
}

View File

@ -40,7 +40,7 @@ if (isAdvancedUpload) {
}
if (isAdvancedUpload) {
var droppedFiles = false;
var droppedFiles = "false";
$form.on('drag dragstart dragend dragover dragenter dragleave drop', function(e) {
e.preventDefault();
@ -82,4 +82,4 @@ $form.on('submit', function(e) {
<div class="box__uploading">Uploading&hellip;</div>
<div class="box__success">Done!</div>
<div class="box__error">Error! <span></span>.</div>
</form>
</form>

View File

@ -6,7 +6,7 @@
<ul class="nav navbar-nav navbar-right">
<li>
<a asp-controller="Manage" class="navbar-link" asp-action="Index" title="Manage">
<img src="/Avatars/@(User.GetUserName()+".xs").png" asp-append-version="true" class="smalltofhol" />
<img src="/Avatars/@(User.GetUserName()).xs.png" asp-append-version="true" class="smalltofhol" />
</a>
</li>
<li class="dropdown">
@ -15,9 +15,9 @@
</a>
<ul class="dropdown-menu">
<li><a asp-controller="Bug" asp-action="Index">Bugs</a></li>
<li><a asp-controller="HyperLink" asp-action="Index">@SR["HyperLink"]</a></li>
<li><a asp-controller="LiveFlow" asp-action="Index">@SR["LiveFlow"]</a></li>
<li><a asp-controller="Feature" asp-action="Index">@SR["Features"]</a></li>
<li><a asp-controller="HyperLink" asp-action="Index">HyperLink</a></li>
<li><a asp-controller="LiveFlow" asp-action="Index">LiveFlow</a></li>
<li><a asp-controller="Feature" asp-action="Index">Features</a></li>
</ul>
@if (User.IsInRole(Constants.AdminGroupName)) {
<li class="dropdown">
@ -38,7 +38,7 @@
<li>
<form asp-controller="Account" asp-action="LogOff"
method="post" id="logoutForm">
<button type="submit" class="btn navbar-btn" >@SR["Logout"]</button>
<button type="submit" class="btn navbar-btn" >Logout</button>
<input type="hidden" name="ReturnUrl" value="/" />
</form>
</li>
@ -47,8 +47,8 @@
else
{
<ul class="nav navbar-nav navbar-right">
<li><a class="navbar-link" asp-controller="Account" asp-action="Register" asp-route-returnurl="@Url.Action()" >@SR["Register"]</a></li>
<li><a class="navbar-link" asp-controller="Account" asp-action="Register" asp-route-returnurl="@Url.Action()" >Register</a></li>
<li><a class="navbar-link" asp-controller="Account" asp-action="SignIn" asp-route-returnurl="@Url.Action()" >@SR["Login"]</a></li>
<li><a class="navbar-link" asp-controller="Account" asp-action="SignIn" asp-route-returnurl="@Url.Action()" >Login</a></li>
</ul>
}