- aggiornate tabella template

This commit is contained in:
Annamaria Sassi
2025-07-16 09:20:52 +02:00
parent 8289e8caba
commit c0abe31ebd
+34 -3
View File
@@ -48,7 +48,7 @@
<div class="alert alert-light text-center display-4">
@if (currStep == CompileStep.General)
{
<table class="table">
@* <table class="table">
<thead>
<tr>
<th scope="col">#</th>
@@ -60,8 +60,8 @@
@foreach (var item in m_TemplateList)
{
bool bIsInside = false;
@* string colorClass = (item == SelTemplate) ? "table-success" : "";
*@
string colorClass = (item == SelTemplate) ? "table-success" : "";
string colorClass = "";
@if (item == SelTemplate)
colorClass = "table-success";
@@ -78,6 +78,37 @@
</tr>
}
</tbody>
</table> *@
<table class="table table-hover">
<thead class="table-light fs-5">
<tr>
<th scope="col">#</th>
<th scope="col">Image</th>
<th scope="col">Description</th>
</tr>
</thead>
<tbody class="table-group-divider fs-5">
@foreach (var item in m_TemplateList)
{
@*bool bIsInside = false;
string colorClass = (item == SelTemplate) ? "table-success" : ""; *@
string colorClass = "";
@if (item == SelTemplate)
colorClass = "table-success";
@* else if (item == InsideTemplate)
colorClass = "table-info"; *@
else
colorClass = "";
<tr class="@colorClass" @onclick="() => { SelTemplate = item; ReadJwd(); }">
@* @onmouseenter="() => { InsideTemplate = item; }"
@onmouseleave="() => { InsideTemplate = null; }" *@
<td>@item.nIndex</td>
<td>...</td>
<td>@item.sDescription</td>
</tr>
}
</tbody>
</table>
@foreach (FrameDimension dimension in m_frame.DimensionList)
{