yavsc/Yavsc/Views/Estimate/Details.cshtml

50 lines
1.3 KiB
Text
Raw Normal View History

2016-07-27 11:09:49 +02:00
@model Estimate
2016-05-17 18:22:18 +02:00
@{
ViewData["Title"] = "Details";
}
<h2>Details</h2>
<div>
<h4>Estimate</h4>
<hr />
<dl class="dl-horizontal">
2016-11-03 15:27:06 +01:00
<dt>
@Html.DisplayNameFor(model => model.Title)
</dt>
<dd>
@Html.DisplayFor(model => model.Title)
</dd>
2016-05-17 18:22:18 +02:00
<dt>
@Html.DisplayNameFor(model => model.Description)
</dt>
<dd>
@Html.DisplayFor(model => model.Description)
</dd>
2016-11-03 15:27:06 +01:00
2016-05-17 18:22:18 +02:00
<dt>
2016-11-03 15:27:06 +01:00
@Html.DisplayNameFor(model => model.Bill)
2016-05-17 18:22:18 +02:00
</dt>
<dd>
2016-11-03 15:27:06 +01:00
@foreach (var cl in Model.Bill) {
@await Html.PartialAsync("BillingLine", cl);
}
2016-05-17 18:22:18 +02:00
</dd>
</dl>
</div>
<p>
2016-11-06 02:03:36 +01:00
<a asp-action="Edit" asp-route-id="@Model.Id">@SR["Edit"]</a> |
<a asp-action="Index">@SR["Back to List"]</a> |
@{ var filenametex = $"estimate-{Model.Id}.tex" ;
var filenamepdf = $"estimate-{Model.Id}.pdf" ;}
2016-11-10 01:04:06 +01:00
<a href="~/api/pdfestimate/estimate-@(Model.Id).tex" >Export au format LaTeX</a>
2016-11-09 14:03:57 +01:00
2016-11-10 01:04:06 +01:00
<form action="~/api/pdfestimate/gen/@Model.Id" method="POST">
2016-11-09 14:03:57 +01:00
<input type="submit" value="Générer le Pdf"/>
</form>
2016-11-10 01:04:06 +01:00
<a href="~/api/pdfestimate/get/@(Model.Id)" >Télécharger le document</a>
2016-11-09 14:03:57 +01:00
2016-05-17 18:22:18 +02:00
</p>