Mide en forms

This commit is contained in:
2017-01-16 15:33:45 +01:00
parent 499eab6a6c
commit 2a64f2dc84
4 changed files with 7 additions and 75 deletions

View File

@ -9,49 +9,7 @@
<div>
<h4>Command</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.EventDate)
</dt>
<dd>
@Html.DisplayFor(model => model.EventDate)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Client)
</dt>
<dd>
@Html.DisplayFor(model => model.Client.UserName)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Location.Address)
</dt>
<dd>
@Html.DisplayFor(model => model.Location.Address)
</dd>
<dt>
@Html.DisplayNameFor(model => model.PerformerProfile)
</dt>
<dd>
@Html.DisplayFor(model => model.PerformerProfile.Performer.UserName)
</dd>
<dt>
@Html.DisplayNameFor(model => model.ValidationDate)
</dt>
<dd>
@if (Model.ValidationDate==null) {
@SR["NotValidated"]
}
else {
@Html.DisplayFor(model => model.ValidationDate)
}
</dd>
</dl>
@Html.DisplayFor(m=>m)
</div>
<p>
<a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |

View File

@ -1,13 +1,13 @@
@model Yavsc.Models.Workflow.UserActivity
@{
ViewData["Title"] = "Details";
ViewData["Title"] = SR["Details"];
}
<h2>Details</h2>
<h2>@ViewData["Title"]</h2>
<div>
<h4>UserActivity</h4>
<h4>Détails de votre activité @Model.DoesCode</h4>
<hr />
<dl class="dl-horizontal">
<dt>@SR["Activity"]</dt>

View File

@ -27,7 +27,7 @@
<div class="col-md-10">
<select name="CommandId" id="CommandId">
@foreach (var query in ViewBag.Queries) {
<option value="@query.Id" data-clientid="@query.ClientId">@query.GetDescription()</option>
<option value="@query.Id" data-clientid="@query.ClientId">@Html.DisplayFor(m=> query)</option>
}
</select>
<span asp-validation-for="ClientId" class="text-danger" />

View File

@ -9,35 +9,9 @@
<div>
<h4>Estimate</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.Title)
</dt>
<dd>
@Html.DisplayFor(model => model.Title)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Description)
</dt>
<dd>
@Html.DisplayFor(model => model.Description)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Bill)
</dt>
<dd>
@foreach (var cl in Model.Bill) {
@await Html.PartialAsync("BillingLine", cl);
}
</dd>
</dl>
</div>
@Html.DisplayNameFor(model => model)
<p>
<a asp-action="Edit" asp-route-id="@Model.Id">@SR["Edit"]</a> |
<a asp-action="Index">@SR["Back to List"]</a>
</p>
<div>
@await Component.InvokeAsync("Estimate",Model.Id)
</div>