56 lines
2.4 KiB
Plaintext
56 lines
2.4 KiB
Plaintext
@using LCU.API.Internal.BlendApiWrapperModels.Enums;
|
|
<ActionForm Request="Request" WorkItemComponent="WorkItemComponent" Title="@Title">
|
|
<div class="form-group form-row">
|
|
<label for="ClearDataBeforeImport" class="col-sm-11 col-form-label">ClearDataBeforeImport</label>
|
|
<div class="col-md-2">
|
|
<div class="btn-group" role="group" aria-label="ClearDataBeforeImport">
|
|
<button type="button" class="btn @(Request.ClearDataBeforeImport ? " btn-secondary" : "btn-dark" )" @onclick="(() => ChangeClearDataBeforeImport())">No</button>
|
|
<button type="button" class="btn @(Request.ClearDataBeforeImport ? "btn-dark" : "btn-secondary")" @onclick="(() => ChangeClearDataBeforeImport())">Yes</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group form-row">
|
|
<label for="ImportData" class="col-sm-11 col-form-label">ImportData</label>
|
|
<div class="col-md-2">
|
|
<div class="btn-group" role="group" aria-label="ImportData">
|
|
<button type="button" class="btn @(Request.ImportData ? "btn-secondary" : "btn-dark")" @onclick="(() => ChangeImportData())">No</button>
|
|
<button type="button" class="btn @(Request.ImportData ? "btn-dark" : "btn-secondary")" @onclick="(() => ChangeImportData())">Yes</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group form-row">
|
|
<label for="body">Select Import Process: </label>
|
|
<InputSelect class="form-control" @bind-Value="Request.ApplicationProcess">
|
|
<option value=""></option>
|
|
@foreach (var process in Enum.GetValues(typeof(ApplicationProcess)))
|
|
{
|
|
<option value="@process">@process</option>
|
|
}
|
|
</InputSelect>
|
|
</div>
|
|
</ActionForm>
|
|
|
|
@code {
|
|
[Parameter]
|
|
public WorkItemComponent WorkItemComponent { get; set; }
|
|
public SyncDataFromBlendRequest Request { get; set; }
|
|
private string Title = "Sync Blend Data";
|
|
|
|
protected override void OnParametersSet()
|
|
{
|
|
Request = (SyncDataFromBlendRequest)WorkItemComponent.Item;
|
|
}
|
|
|
|
private void ChangeClearDataBeforeImport()
|
|
{
|
|
Request.ClearDataBeforeImport = !Request.ClearDataBeforeImport;
|
|
StateHasChanged();
|
|
}
|
|
|
|
private void ChangeImportData()
|
|
{
|
|
Request.ImportData = !Request.ImportData;
|
|
StateHasChanged();
|
|
}
|
|
}
|