Client viewa restored
Some checks failed
Dotnet build and test / log-the-inputs (push) Failing after 2s
Dotnet build and test / build (push) Failing after 2s

This commit is contained in:
Paul Schneider
2025-08-19 15:40:16 +01:00
parent 1e568279ad
commit d691501d42
13 changed files with 372 additions and 11 deletions

View File

@ -0,0 +1,75 @@
@model Client
@{
ViewData["Title"] = @SR["Create"];
}
<h2>@SR["Create"]</h2>
<form asp-action="Create">
<div class="form-horizontal">
<h4>Client</h4>
<hr />
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<div class="checkbox">
<input asp-for="Active" />
<label asp-for="Active"></label>
</div>
</div>
</div>
<div class="form-group">
<label asp-for="DisplayName" class="col-md-2 control-label"></label>
<div class="col-md-10">
<input asp-for="DisplayName" class="form-control" />
<span asp-validation-for="DisplayName" class="text-danger" ></span>
</div>
</div>
<div class="form-group">
<label asp-for="LogoutRedirectUri" class="col-md-2 control-label"></label>
<div class="col-md-10">
<input asp-for="LogoutRedirectUri" class="form-control"></span>
<span asp-validation-for="LogoutRedirectUri" class="text-danger" ></span>
</div>
</div>
<div class="form-group">
<label asp-for="RedirectUri" class="col-md-2 control-label"></label>
<div class="col-md-10">
<input asp-for="RedirectUri" class="form-control" />
<span asp-validation-for="RedirectUri" class="text-danger" ></span>
</div>
</div>
<div class="form-group">
<label asp-for="RefreshTokenLifeTime" class="col-md-2 control-label"></label>
<div class="col-md-10">
<input asp-for="RefreshTokenLifeTime" class="form-control" ></span>
<span asp-validation-for="RefreshTokenLifeTime" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<label asp-for="Secret" class="col-md-2 control-label"></label>
<div class="col-md-10">
<input asp-for="Secret" class="form-control" />
<span asp-validation-for="Secret" class="text-danger" ></span>
</div>
</div>
<div class="form-group">
<label asp-for="Type" class="col-md-2 control-label"></label>
<div class="col-md-10">
@Html.DropDownList("Type")
<span asp-validation-for="Type" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Create" class="btn btn-default" />
</div>
</div>
</div>
</form>
<div>
<a asp-action="Index">@SR["Back to List"]</a>
</div>

View File

@ -0,0 +1,64 @@
@model Client
@{
ViewData["Title"] = @SR["Delete"];
}
<h2>@SR["Delete"]</h2>
<h3>@SR["AreYourSureYouWantToDeleteThis"]</h3>
<div>
<h4>Client</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.Active)
</dt>
<dd>
@Html.DisplayFor(model => model.Active)
</dd>
<dt>
@Html.DisplayNameFor(model => model.DisplayName)
</dt>
<dd>
@Html.DisplayFor(model => model.DisplayName)
</dd>
<dt>
@Html.DisplayNameFor(model => model.LogoutRedirectUri)
</dt>
<dd>
@Html.DisplayFor(model => model.LogoutRedirectUri)
</dd>
<dt>
@Html.DisplayNameFor(model => model.RedirectUri)
</dt>
<dd>
@Html.DisplayFor(model => model.RedirectUri)
</dd>
<dt>
@Html.DisplayNameFor(model => model.RefreshTokenLifeTime)
</dt>
<dd>
@Html.DisplayFor(model => model.RefreshTokenLifeTime)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Secret)
</dt>
<dd>
@Html.DisplayFor(model => model.Secret)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Type)
</dt>
<dd>
@Html.DisplayFor(model => model.Type)
</dd>
</dl>
<form asp-action="Delete">
<div class="form-actions no-color">
<input type="submit" value="Delete" class="btn btn-default" /> |
<a asp-action="Index">@SR["Back to List"]</a>
</div>
</form>
</div>

View File

@ -0,0 +1,66 @@
@model Client
@{
ViewData["Title"] = @SR["Details"];
}
<h2>@SR["Details"]</h2>
<div>
<h4>Client</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.Id)
</dt>
<dd>
@Html.DisplayFor(model => model.Id)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Active)
</dt>
<dd>
@Html.DisplayFor(model => model.Active)
</dd>
<dt>
@Html.DisplayNameFor(model => model.DisplayName)
</dt>
<dd>
@Html.DisplayFor(model => model.DisplayName)
</dd>
<dt>
@Html.DisplayNameFor(model => model.LogoutRedirectUri)
</dt>
<dd>
@Html.DisplayFor(model => model.LogoutRedirectUri)
</dd>
<dt>
@Html.DisplayNameFor(model => model.RedirectUri)
</dt>
<dd>
@Html.DisplayFor(model => model.RedirectUri)
</dd>
<dt>
@Html.DisplayNameFor(model => model.RefreshTokenLifeTime)
</dt>
<dd>
@Html.DisplayFor(model => model.RefreshTokenLifeTime)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Secret)
</dt>
<dd>
@Html.DisplayFor(model => model.Secret)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Type)
</dt>
<dd>
@Html.DisplayFor(model => model.Type)
</dd>
</dl>
</div>
<p>
<a asp-action="Edit" asp-route-id="@Model.Id">@SR["Edit"]</a> |
<a asp-action="Index">@SR["Back to List"]</a>
</p>

View File

@ -0,0 +1,76 @@
@model Client
@{
ViewData["Title"] = "Edit";
}
<h2>@SR["Edit"]</h2>
<form asp-action="Edit">
<div class="form-horizontal">
<h4>Client</h4>
<hr />
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<input type="hidden" asp-for="Id" />
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<div class="checkbox">
<input asp-for="Active" />
<label asp-for="Active"></label>
</div>
</div>
</div>
<div class="form-group">
<label asp-for="DisplayName" class="col-md-2 control-label"></label>
<div class="col-md-10">
<input asp-for="DisplayName" class="form-control" />
<span asp-validation-for="DisplayName" class="text-danger" ></span>
</div>
</div>
<div class="form-group">
<label asp-for="LogoutRedirectUri" class="col-md-2 control-label"></label>
<div class="col-md-10">
<input asp-for="LogoutRedirectUri" class="form-control" />
<span asp-validation-for="LogoutRedirectUri" class="text-danger" ></span>
</div>
</div>
<div class="form-group">
<label asp-for="RedirectUri" class="col-md-2 control-label"></label>
<div class="col-md-10">
<input asp-for="RedirectUri" class="form-control" />
<span asp-validation-for="RedirectUri" class="text-danger" ></span>
</div>
</div>
<div class="form-group">
<label asp-for="RefreshTokenLifeTime" class="col-md-2 control-label"></label>
<div class="col-md-10">
<input asp-for="RefreshTokenLifeTime" class="form-control" />
<span asp-validation-for="RefreshTokenLifeTime" class="text-danger" ></span>
</div>
</div>
<div class="form-group">
<label asp-for="Secret" class="col-md-2 control-label"></label>
<div class="col-md-10">
<input asp-for="Secret" class="form-control" />
<span asp-validation-for="Secret" class="text-danger" ></span>
</div>
</div>
<div class="form-group">
<label asp-for="Type" class="col-md-2 control-label"></label>
<div class="col-md-10">
@Html.DropDownList("Type")
<span asp-validation-for="Type" class="text-danger" ></span>
</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">@SR["Back to List"]</a>
</div>

View File

@ -0,0 +1,68 @@
@model IEnumerable<Client>
@{
ViewData["Title"] = @SR["Index"];
}
<h2>@SR["Index"]</h2>
<p>
<a asp-action="Create">@SR["Create New"]</a>
</p>
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.Active)
</th>
<th>
@Html.DisplayNameFor(model => model.DisplayName)
</th>
<th>
@Html.DisplayNameFor(model => model.LogoutRedirectUri)
</th>
<th>
@Html.DisplayNameFor(model => model.RedirectUri)
</th>
<th>
@Html.DisplayNameFor(model => model.RefreshTokenLifeTime)
</th>
<th>
@Html.DisplayNameFor(model => model.Secret)
</th>
<th>
@Html.DisplayNameFor(model => model.Type)
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Active)
</td>
<td>
@Html.DisplayFor(modelItem => item.DisplayName)
</td>
<td>
@Html.DisplayFor(modelItem => item.LogoutRedirectUri)
</td>
<td>
@Html.DisplayFor(modelItem => item.RedirectUri)
</td>
<td>
@Html.DisplayFor(modelItem => item.RefreshTokenLifeTime)
</td>
<td>
@Html.DisplayFor(modelItem => item.Secret)
</td>
<td>
@Html.DisplayFor(modelItem => item.Type)
</td>
<td>
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
</td>
</tr>
}
</table>

View File

@ -13,7 +13,7 @@
asp-route-activityCode="@ViewBag.Activity.Code"
asp-route-performerId="@profile.PerformerId"
class="btn btn-success">
Proposer un rendez-vous à"] @profile.UserName
Proposer un rendez-vous à @profile.UserName
</a>
}

View File

@ -11,7 +11,7 @@
@Html.DisplayFor(m=>profile)
<a class="btn btn-success" asp-controller="Command" asp-action="Create" asp-route-proId="@profile.PerformerId"
asp-route-billingCode="Profiles" asp-route-activityCode="@ViewBag.Activity.Code" >
Proposer un rendez-vous à"] @profile.UserName
Proposer un rendez-vous à @profile.UserName
</a>
}

View File

@ -3,38 +3,38 @@
<dl class="dl-horizontal">
<dt>
EventDate"]
EventDate
</dt>
<dd>
@Html.DisplayFor(model => model.EventDate)
</dd>
<dt>
Client"]
Client
</dt>
<dd>
@Html.DisplayFor(model => model.Client.UserName)
</dd>
<dt>
Address"]
Address
</dt>
<dd>
@Html.DisplayFor(model => model.Location.Address)
</dd>
<dt>
Provider"]
Provider
</dt>
<dd>
@Html.DisplayFor(model => model.PerformerProfile.Performer.UserName)
</dd>
<dt>
ValidationDate"]
ValidationDate
</dt>
<dd>
@((Model.ValidationDate==null)?"NonValidee":Html.DisplayFor(model => model.ValidationDate))
@((Model.ValidationDate==null)?"Non Validated":Html.DisplayFor(model => model.ValidationDate))
</dd>
</dl>

View File

@ -1,10 +1,22 @@
@using Yavsc.Abstract.Identity
@model IApplicationUser
@{
var avuri = "/Avatars/" + Model.UserName + ".s.png";
if (Model ==null || Model.UserName==null)
{
if (Model !=null)
{
<span class="error">[E No user name]</span>
}
}
else {
string avuri = "/Avatars/" + Model.UserName + ".s.png";
<div class="userinfo">
<a title="Posts" asp-controller="Blogspot" asp-action="Index" asp-route-id="@Model.UserName" class="btn btn-primary">
<img src="@avuri" asp-append-version="true" class="smalltofhol" alt="@Model.UserName" title="@Model.UserName" />
</a>
</div>
}
}

View File

@ -30,7 +30,7 @@ input[type='checkbox'] {
min-height: 1em; }
.container {
background-color: #00000093;
background-color: #000000d5;
color: #fff;
padding: .5em;
margin: .5em; }

View File

@ -45,7 +45,7 @@ input[type='checkbox'] {
}
.container {
background-color: #00000093;
background-color: #000000d5;
color: #fff;
padding: .5em;
margin: .5em;