Correzioni componente
This commit is contained in:
@@ -535,16 +535,23 @@
|
||||
</div>
|
||||
<div class="input-group mb-2">
|
||||
<label class="input-group-text" for="FamilyHardware">Family</label>
|
||||
<select class="form-select" id="FamilyHardware" @bind="@SelFamilyHardware">
|
||||
@for (int i = 0; i < Sash.s_FamilyHardwareList.Count; i++)
|
||||
<select class="form-select" id="FamilyHardware" @bind="@item.SelFamilyHardware">
|
||||
@if (Sash.s_FamilyHardwareList == null || Sash.s_FamilyHardwareList.Count == 0)
|
||||
{
|
||||
<option value="@Sash.s_FamilyHardwareList[i]">@Sash.s_FamilyHardwareList[i]</option>
|
||||
<option value="000000">ERROR - Missing family HW List</option>
|
||||
}
|
||||
else
|
||||
{
|
||||
@foreach (var familyHw in Sash.s_FamilyHardwareList)
|
||||
{
|
||||
<option value="@familyHw">@familyHw</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
<div class="input-group mb-2">
|
||||
<label class="input-group-text" for="Hardware">Type</label>
|
||||
<select class="form-select" id="Hardware" @bind="@item.SelHardwareTypeIndex">
|
||||
<select class="form-select" id="Hardware" @bind="@item.SelHardwareFromId">
|
||||
@if (item.HardwareList == null || item.HardwareList.Count == 0)
|
||||
{
|
||||
<option value="000000">ERROR - Missing HW List</option>
|
||||
@@ -553,13 +560,9 @@
|
||||
{
|
||||
@foreach (var hlItem in item.HardwareList)
|
||||
{
|
||||
<option value="@hlItem.Id">@hlItem.Description</option>
|
||||
<option value="@hlItem.Id" typeof="string">@hlItem.Description</option>
|
||||
}
|
||||
}
|
||||
@* @for (int i = 0; i < item.HardwareList.Count; i++)
|
||||
{
|
||||
<option value="@item.HardwareList[i].Id">@item.HardwareList[i].Description</option>
|
||||
} *@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -719,9 +722,10 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@for (int i = 0; i < SplittedList.Count; i++)
|
||||
@foreach(var currSplitted in SplittedList)
|
||||
@* @for (int i = 0; i < SplittedList.Count; i++) *@
|
||||
{
|
||||
Splitted currSplitted = SplittedList[i];
|
||||
@* Splitted currSplitted = SplittedList[i]; *@
|
||||
@if (currSplitted.AreaList[0].Equals(item))
|
||||
{
|
||||
<div class="border mb-2 shadow-sm rounded">
|
||||
@@ -730,7 +734,7 @@
|
||||
<div class="col-sm-4 justify-content-center">
|
||||
@if (SplittedList.Count > 1)
|
||||
{
|
||||
<h3 class="card-title text-center">Area split @(i + 1)</h3>
|
||||
<h3 class="card-title text-center">Area split @(SplittedList.IndexOf(currSplitted) + 1)</h3>
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -742,12 +746,13 @@
|
||||
<button class="btn btn-outline-secondary btn-sm" @onclick="() => currSplitted.AddSash()">Add sash</button>
|
||||
</div>
|
||||
</div>
|
||||
@for (int j = 0; j < SashList.Count; j++)
|
||||
@foreach(var Index in SashList)
|
||||
@* @for (int j = 0; j < SashList.Count; j++) *@
|
||||
{
|
||||
int Index = j;
|
||||
@* int Index = j; *@
|
||||
<div class="col-4">
|
||||
<div class="input-group mb-2 justify-content-center">
|
||||
<button class="btn btn-outline-secondary btn-sm" @onclick="() => CopySash(currSplitted, Index)">Copy sash @(SashList.Count == 1 ? "" : (j + 1))</button>
|
||||
<button class="btn btn-outline-secondary btn-sm" @onclick="() => CopySash(currSplitted, SashList.IndexOf(Index))">Copy sash @(SashList.Count == 1 ? "" : (SashList.IndexOf(Index) + 1))</button>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
@@ -780,7 +785,7 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group mb-2 justify-content-center">
|
||||
<label class="input-group-text" for="MaterialWindow">Color</label>
|
||||
<label class="input-group-text" for="MaterialWindow">Material</label>
|
||||
<select class="form-select" id="MaterialWindow" @bind="@((m_CurrWindow!).sMaterial)">
|
||||
@foreach (var item in ListPayload.Material)
|
||||
{
|
||||
@@ -864,9 +869,7 @@
|
||||
@if (currStep != CompileStep.Template)
|
||||
{
|
||||
<div class="col-6">
|
||||
@* <div class="card text-center table-svg shadow rounded"> *@
|
||||
@outSvg
|
||||
@* </div> *@
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user