Mide en forms

This commit is contained in:
Paul Schneider 2017-01-16 15:33:45 +01:00
commit f84b91ed5f
4 changed files with 7 additions and 75 deletions

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>