55935e6809
- Cambiato bottoni Joints in CardFrame
163 lines
7.9 KiB
Plaintext
163 lines
7.9 KiB
Plaintext
@using static WebWindowComplex.LayoutConst
|
|
|
|
<div class="card shadow-sm rounded mb-4">
|
|
<div class="card-header bg-light bg-opacity-25">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<div class="px-2">
|
|
<h5>Frame</h5>
|
|
</div>
|
|
<div class="px-2">
|
|
<button class="btn btn-close" @onclick="ReqClose"></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body py-2">
|
|
<div class="row">
|
|
<div class="col-md-12 col-lg-6">
|
|
<div class="input-group mt-2">
|
|
@if (User)
|
|
{
|
|
<span class="input-group-text">Shape</span>
|
|
<input type="text" readonly class="form-control" value="@(CurrFrameWindow.ShapeList.ElementAt(SelShapeIndex - 1))">
|
|
}
|
|
else
|
|
{
|
|
<label class="input-group-text">Shape</label>
|
|
<select class="form-select" @bind="@SelShapeIndex">
|
|
@foreach (var i in CurrFrameWindow.ShapeList)
|
|
{
|
|
<option value="@(i.Id)">@(i.Name)</option>
|
|
}
|
|
</select>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<hr />
|
|
<div class="row">
|
|
<div class="col-md-12 col-lg-12">
|
|
<div class="d-flex justify-content-start align-items-center" style="min-height: 2.5rem;">
|
|
<h6 class="fw-bold">Dimension</h6>
|
|
</div>
|
|
<div class="row">
|
|
@foreach (FrameDimension dimension in CurrFrameWindow.DimensionList)
|
|
{
|
|
<div class="@EditDimensionCss()">
|
|
<EditFrameDimensions CurrRec="dimension" EC_Update="UpdateDim"></EditFrameDimensions>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12 col-lg-6">
|
|
<div class="d-flex justify-content-start align-items-center" style="min-height: 2.5rem;">
|
|
<h6 class="fw-bold">Threshold</h6>
|
|
</div>
|
|
<div class="input-group mb-2">
|
|
@if (User)
|
|
{
|
|
<span class="input-group-text">Tipology</span>
|
|
<input type="text" readonly class="form-control" value="@(CurrFrameWindow.ThresholdList.FirstOrDefault(x => x.Type == SelThreshold)?.Name)">
|
|
}
|
|
else
|
|
{
|
|
<label class="input-group-text">Tipology</label>
|
|
<select class="form-select" @bind="SelThreshold">
|
|
@foreach (var item in CurrFrameWindow.ThresholdList)
|
|
{
|
|
<option value="@(item.Type)">@(item.Name)</option>
|
|
}
|
|
</select>
|
|
}
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12 col-lg-6">
|
|
@if (SashNotInBottom())
|
|
{
|
|
<div class="d-flex justify-content-start align-items-center" style="min-height: 2.5rem;">
|
|
<h6 class="fw-bold">Bottom rail</h6>
|
|
</div>
|
|
<div class="input-group mb-2">
|
|
<span class="input-group-text">Quantity</span>
|
|
@if (User)
|
|
{
|
|
<input type="number" readonly class="form-control" value="@FrameBottomRailQty">
|
|
}
|
|
else
|
|
{
|
|
@if (CurrFrameWindow.BottomRailQty > 0)
|
|
{
|
|
<BottomRail CurrArea="CurrFrameWindow" EC_UpdateBottomRail="UpdateFrame"></BottomRail>
|
|
}
|
|
<input type="number" class="form-control" @bind="@FrameBottomRailQty">
|
|
}
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
<hr />
|
|
<div class="row">
|
|
<div class="col-md-12 col-lg-6">
|
|
<div class="row justify-content-between align-items-center pb-2" style="min-height: 2.5rem;">
|
|
<div class="col-md-4 d-flex justify-content-start align-items-center">
|
|
<h6 class="fw-bold">Joints</h6>
|
|
</div>
|
|
@if (!User)
|
|
{
|
|
<div class="col-md-8 d-flex justify-content-end align-items-center">
|
|
<div class="btn-group" role="group">
|
|
<button type="button" class="@ButtonJointCss(Json.WindowConst.Joints.ANGLED)" @onclick="() => ChangeAllJoints(WebWindowComplex.Json.WindowConst.Joints.ANGLED)">Angled</button>
|
|
<button type="button" class="@ButtonJointCss(Json.WindowConst.Joints.FULL_H)" @onclick="() => ChangeAllJoints(WebWindowComplex.Json.WindowConst.Joints.FULL_H)">Horizontal</button>
|
|
<button type="button" class="@ButtonJointCss(Json.WindowConst.Joints.FULL_V)" @onclick="() => ChangeAllJoints(WebWindowComplex.Json.WindowConst.Joints.FULL_V)">Vertical</button>
|
|
</div>
|
|
</div>
|
|
@* <div class="col d-flex justify-content-end align-items-center">
|
|
<div class="dropdown">
|
|
<button class="btn btn-outline-secondary dropdown-toggle btn-sm" type="button" data-bs-toggle="dropdown">
|
|
Change
|
|
</button>
|
|
<ul class="dropdown-menu" style="min-width:5rem; max-width:10rem">
|
|
<li><button class="@ButtonJointCss(Json.WindowConst.Joints.ANGLED)" @onclick="() => ChangeAllJoints(WebWindowComplex.Json.WindowConst.Joints.ANGLED)">Angled</button></li>
|
|
<li><button class="@ButtonJointCss(Json.WindowConst.Joints.FULL_H)" @onclick="() => ChangeAllJoints(WebWindowComplex.Json.WindowConst.Joints.FULL_H)">Horizontal</button></li>
|
|
<li><button class="@ButtonJointCss(Json.WindowConst.Joints.FULL_V)" @onclick="() => ChangeAllJoints(WebWindowComplex.Json.WindowConst.Joints.FULL_V)">Vertical</button></li>
|
|
</ul>
|
|
</div>
|
|
</div> *@
|
|
}
|
|
</div>
|
|
<div class="row">
|
|
@foreach (Joint joint in CurrFrameWindow.JointList)
|
|
{
|
|
<EditJoint CurrRec="joint" EC_Update="UpdateJoint"></EditJoint>
|
|
}
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12 col-lg-6">
|
|
<div class="row justify-content-between align-items-center" style="min-height: 2.5rem;">
|
|
<div class="col d-flex justify-content-start align-items-center">
|
|
<h6 class="fw-bold">Element</h6>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
@foreach (var element in CurrFrameWindow.ElementDimensionList)
|
|
{
|
|
<EditElement CurrRec="element" EC_Update="UpdateElement"></EditElement>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@if (!User)
|
|
{
|
|
@if (!(CurrFrameWindow.AreaList[0] is Split) || (SashGroupList.Count == 0 && SplitList.Count == 0))
|
|
{
|
|
<AreaFrame EC_AddSash="AddSash"
|
|
EC_AddSplit="AddSplit"
|
|
EC_AddInglesina="AddInglesina">
|
|
</AreaFrame>
|
|
}
|
|
}
|