Files
webwindowconfigurator/WebWindowComplex/Compo/AreaSplit.razor
T
2026-08-20 16:30:29 +02:00

61 lines
3.0 KiB
Plaintext

<div class="card shadow-sm rounded">
<div class="card-body py-2">
<div class="d-flex justify-content-between align-items-center mt-2">
<div class="col-4 d-flex justify-content-left">
<h5>@Traduci("CWAreaSp_AreaSp") @(SplittedList.Count > 1 ? (SplittedList.IndexOf(CurrSplitted) + 1) : "")</h5>
</div>
<div class="col d-flex justify-content-center">
<div class="input-group mb-2 justify-content-center">
<button class="btn btn-outline-secondary btn-sm" @onclick="() => RaiseAddSash()">@Traduci("CWAreaSp_AddSash")</button>
</div>
</div>
@if (SashGroupList.Count == 1)
{
<div class="col d-flex justify-content-center">
<div class="input-group mb-2 justify-content-center">
<button class="btn btn-outline-secondary btn-sm" @onclick="() => RaiseCopySash(0)">@Traduci("CWAreaSp_CopySash")</button>
</div>
</div>
}
else if (SashGroupList.Count > 1)
{
<div class="dropdown px-4">
<button class="btn btn-outline-secondary dropdown-toggle btn-sm"
type="button"
@onclick="ToggleDropdown"
aria-expanded="@isOpen">
@Traduci("CWAreaSp_CopySash")
</button>
<ul class="dropdown-menu @(isOpen ? "show" : "")"
style="min-width:0rem; max-width:10rem">
@for (int indexCurrSash = 0; indexCurrSash <= SashGroupList.Count - 1; indexCurrSash++)
{
int IndexCopy = indexCurrSash;
<li>
<button class="dropdown-item" @onclick="() => RaiseCopySash(IndexCopy)">
@Traduci("CWAreaSp_Sash") @(IndexCopy + 1)
</button>
</li>
}
</ul>
</div>
}
@* @for (int j = 0; j < SashGroupList.Count; j++)
{
int Index = j;
<div class="col d-flex justify-content-center">
<div class="input-group mb-2 justify-content-center">
<button class="btn btn-outline-secondary btn-sm" @onclick="() => RaiseCopySash(Index)">@Traduci("CWAreaSp_CopySash") @(SashGroupList.Count == 1 ? "" : (Index + 1))</button>
</div>
</div>
} *@
<div class="col d-flex justify-content-center">
<div class="input-group mb-2 justify-content-center">
<button class="btn btn-outline-secondary btn-sm" @onclick="() => RaiseAddInglesina()">@Traduci("CWAreaSp_AddInglesina")</button>
</div>
</div>
</div>
</div>
</div>