Javítás
This commit is contained in:
+4
-2
@@ -2,6 +2,8 @@
|
||||
@model WorkFlowCheck.Web.Pages.CheckList.CheckListHeader.CheckListHeaderEditPageModel
|
||||
@using Microsoft.AspNetCore.Antiforgery
|
||||
@inject IAntiforgery Antiforgery
|
||||
@using WorkFlowCheck.Common.Helper
|
||||
@using WorkFlowCheck.Common.DTO
|
||||
@{
|
||||
ViewData["Title"] = "Ellenőrzés";
|
||||
var CheckListHeaderId = Model.CheckListHeaderDTO.Id;
|
||||
@@ -59,8 +61,8 @@
|
||||
<thead class="table-primary">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Short Name</th>
|
||||
<th>Checkpoint</th>
|
||||
<th>@DisplayNameHelper.GetDisplayName(nameof(CheckListRowDTO.CheckListTemplateRowDTO.RowIndex), typeof(CheckListTemplateRowDTO))</th>
|
||||
<th>@DisplayNameHelper.GetDisplayName(nameof(CheckListRowDTO.CheckListTemplateRowDTO.CheckPointDTO.ShortName), typeof(CheckPointDTO))</th>
|
||||
<th>OperationDescription</th>
|
||||
<th>AnswerType</th>
|
||||
<th>Answer</th>
|
||||
|
||||
@@ -221,7 +221,7 @@ function renderAnswerType(data) {
|
||||
return data;
|
||||
}
|
||||
function renderAnswerPhoto(data, row) {
|
||||
if (row.checkListTemplateRowDTO.answerType === 'P') {
|
||||
if (row.checkListTemplateRowDTO.answerType === 'P' && data.length > 0) {
|
||||
return `<div class="text-center"><img src="${data}" alt="Image" style="height: 100px; width: auto;" /></div>`;
|
||||
}
|
||||
if (row.checkListTemplateRowDTO.answerType === 'SI-N' && data === 'Igen') {
|
||||
|
||||
Reference in New Issue
Block a user