+ Pred kreiranjem povpraševanja vprašaj za partnerja + Prikaz TOP 100 (predolgo nalaga) + Dodaj Sorovec na Urejanje Artikla (zadnji surovec) + V Urejanju artikla popravi opis v pot dokumentov + Kooperant
66 lines
4.3 KiB
Plaintext
66 lines
4.3 KiB
Plaintext
@model EveryThing.Pages.CodeTableItems.IndexModel.AddEditCodeTableItem
|
|
|
|
<div class="modal" tabindex="-1" role="dialog" id="divModalAddEditCodeTableItem">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="modalAddEditCodeTableItemTitle">Dodajanje novega artikla</h5>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<input id="inpModalAddEditCodeTableItemIdCodeTableItem" type="hidden" asp-for="@Model.IdCodeTableItem" />
|
|
<input id="inpModalAddEditCodeTableItemEdit" type="hidden" asp-for="@Model.Edit" />
|
|
<div class="form-group">
|
|
<label asp-for="Item.Title" class="control-label"></label>
|
|
<input id="inpModalAddEditCodeTableItemTitle" asp-for="Item.Title" class="form-control" />
|
|
<span asp-validation-for="Item.Title" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="Item.Description" class="control-label"></label>
|
|
<input id="inpModalAddEditCodeTableItemDescription" asp-for="Item.Description" class="form-control" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="Item.CodeTableItemType" class="control-label"></label>
|
|
<select id="selModalAddEditCodeTableItemType" asp-for="Item.CodeTableItemType" asp-items="Html.GetEnumSelectList<EveryThing.Models.CodeTable.CodeTableItemType>()" class="form-control" style="width: 100%">
|
|
</select>
|
|
</div>
|
|
<div class="form-group form-check">
|
|
<label class="form-check-label">
|
|
<input id="inpModalAddEditCodeTableItemActive" class="form-check-input" asp-for="Item.Active" /> @Html.DisplayNameFor(model => model.Item.Active)
|
|
</label>
|
|
</div>
|
|
<div class="form-group">
|
|
Cena delo: <b>@Model.WorkPrice €</b>
|
|
<br />Cena material: <b>@Model.WorkPrice €</b>
|
|
<br />Cena skupaj: <b>@Model.TotalPrice €</b>
|
|
<br />Prodajna cena: <b>@Model.SellingPrice €</b>
|
|
<br />Razlika: <b>@Model.DifferenceInPricePercentage %</b>
|
|
<br />Material: <b>@Model.Material </b>
|
|
<br />Dimenzije surovca: <b>@Model.MaterialDimensions </b>
|
|
</div>
|
|
@if (Model.Files != null && Model.Files.Count > 0)
|
|
{
|
|
<div class="form-group">
|
|
@foreach (var file in Model.Files)
|
|
{
|
|
<div data-idfile="@file.IdFile">
|
|
<a download href="@Url.Page("/Files/Upload", "DownloadFile", new { idFile = file.IdFile, idReferenceFk = file.IdReferenceFk, fileTypeInt = (int)file.FileType})" class="btn btn-xs icon-btn btn-outline-secondary borderless" data-toggle="tooltip" data-placement="top" title="Prenos" data-state="secondary"><i class="fas fa-download"></i></a>
|
|
@Html.DisplayFor(modelItem => file.Title)
|
|
<a class="btn btn-xs icon-btn btn-outline-danger borderless" data-state="danger" href='javascript:;' onclick="codeTableItemDeleteFile(this)"><i class="fas fa-times"></i></a>
|
|
</div>
|
|
}
|
|
</div>
|
|
}
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<a id="btnModalAddEditCodeTableItemAddFile" asp-page="/Files/Upload" asp-route-idReferenceFk="@Model.IdCodeTableItem" asp-route-fileType="@Models.FileType.CodeTableItem" class="btn btn-primary pull-right">Priloži datoteko</a>
|
|
<button id="btnModalAddEditCodeTableItemConfirm" type="button" class="btn btn-primary">Shrani</button>
|
|
<button id="btnModalAddEditCodeTableItemCancel" type="button" class="btn btn-secondary">Prekliči</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|