Javítás

This commit is contained in:
2025-04-08 17:46:22 +02:00
parent ac48e676df
commit a394c643a2
6 changed files with 39 additions and 17 deletions
@@ -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>
+1 -1
View File
@@ -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') {