This commit is contained in:
Paul Schneider 2017-04-08 09:17:15 +02:00
commit a96faa6f6c
35 changed files with 2787 additions and 62 deletions

View file

@ -0,0 +1,16 @@
@model HairCutQuery
@{
ViewData["Title"] = @SR["Annuler votre commande"];
}
<h2>@ViewData["Title"]</h2>
<div>
<hr />
@Html.DisplayFor(m=>m)
</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>
</p>

View file

@ -6,13 +6,25 @@
<div class="form-horizontal">
<h4>@SR["Your book query"]</h4>
<hr />
<ul>
<li>
Votre star de la coiffure:
<dl>
<dt>
Votre star de la coiffure
</dt>
<dd>
@Html.DisplayFor(m=>m.PerformerProfile)
</li>
<li>
</dd>
<dt>
@Html.DisplayNameFor(m=>m.Prestation)
</dt>
<dd>
@Html.DisplayFor(m=>m.Prestation)
</dd>
<dt>
@Html.DisplayNameFor(m=>m.AdditionalInfo)
</dt>
<dd>@Html.DisplayFor(m=>m.AdditionalInfo)
</dd>
</dl>
<p>
Addition minimale
(Compter des frais supplémentaires
@ -21,6 +33,10 @@
<span class="price"> @ViewBag.Addition </span></p>
</li>
<li>
@Model.AdditionalInfo
</li>
<li>
@if (Model.EventDate == null) {
<p>Pas de date convenue ...</p>
} else {

View file

@ -0,0 +1,16 @@
@model HairCutQuery
@{
ViewData["Title"] = @SR["Le detail de votre commande de prestation en coiffure à domicile"];
}
<h2>@ViewData["Title"]</h2>
<div>
<hr />
@Html.DisplayFor(m=>m)
</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>
</p>

View file

@ -208,6 +208,13 @@
</div>
</div>
</div>
<div class="form-group">
<label asp-for="AdditionalInfo" class="col-md-2 control-label"></label>
<div class="col-md-offset-2 col-md-10">
<textarea asp-for="AdditionalInfo" class="form-control">
</textarea>
</div>
</div>
<span>Total: <span id="Total" class="total"></span>
</span>
<input asp-for="ClientId" type="hidden" />

View file

@ -0,0 +1,51 @@
@model IEnumerable<HairCutQuery>
@{
ViewData["Title"] = "Vos commandes en coiffure à domicile";
}
<h2>@ViewData["Title"]</h2>
<table class="table">
<tr>
<th>
@SR["DateCreated"]
</th>
<th>
@SR["EventDate"]
</th>
<th>
@SR["Location"]
</th>
<th>
@SR["Performer"]
</th>
<th>
@SR["ValidationDate"]
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.DateCreated)
</td>
<td>
@Html.DisplayFor(modelItem => item.EventDate)
</td>
<td>
@Html.DisplayFor(modelItem => item.Location.Address)
</td>
<td>
@Html.DisplayFor(modelItem => item.PerformerProfile.Performer.UserName)
</td>
<td>
@Html.DisplayFor(modelItem => item.ValidationDate)
</td>
<td>
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
</td>
</tr>
}
</table>

View file

@ -0,0 +1,51 @@
@model IEnumerable<HairCutQuery>
@{
ViewData["Title"] = "Vos commandes en coiffure à domicile";
}
<h2>@ViewData["Title"]</h2>
<table class="table">
<tr>
<th>
@SR["DateCreated"]
</th>
<th>
@SR["EventDate"]
</th>
<th>
@SR["Location"]
</th>
<th>
@SR["Client"]
</th>
<th>
@SR["ValidationDate"]
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.DateCreated)
</td>
<td>
@Html.DisplayFor(modelItem => item.EventDate)
</td>
<td>
@Html.DisplayFor(modelItem => item.Location.Address)
</td>
<td>
@Html.DisplayFor(modelItem => item.Client.UserName)
</td>
<td>
@Html.DisplayFor(modelItem => item.ValidationDate)
</td>
<td>
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
</td>
</tr>
}
</table>