49 lines
2.1 KiB
Plaintext
49 lines
2.1 KiB
Plaintext
@using Gremlin_BlazorServer.Data.EntityClasses
|
|
<ModalHeader>
|
|
<ModalTitle>Suggestions for new CustomDescription</ModalTitle>
|
|
<CloseButton/>
|
|
</ModalHeader>
|
|
<ModalBody>
|
|
@if (Suggestions.Any()) {
|
|
<DataGrid TItem="CustomDescription"
|
|
Data="@Suggestions"
|
|
SelectedRow="@selectedSuggestedCustomDescription"
|
|
SelectedRowChanged="@OnSelectedSuggestedCustomDescription"
|
|
Bordered Hoverable Striped ShowPager Responsive>
|
|
<DataGridCommandColumn/>
|
|
<DataGridColumn Field="@nameof(CustomDescription.ProductNumber)" Caption="ProductNumber"/>
|
|
<DataGridColumn Field="@nameof(CustomDescription.OptionNumber)" Caption="OptionNumber"/>
|
|
<DataGridColumn Field="@nameof(CustomDescription.Heading)" Caption="Heading"/>
|
|
<DataGridColumn Field="@nameof(CustomDescription.CoverletterText)" Caption="CoverletterText"/>
|
|
<DataGridColumn Field="@nameof(CustomDescription.DescriptionText)" Caption="DescriptionText"/>
|
|
</DataGrid>
|
|
}
|
|
else {
|
|
<Paragraph>No suggestions available.</Paragraph>
|
|
}
|
|
|
|
<Field>
|
|
<FieldLabel>ProductNumber</FieldLabel>
|
|
<FieldBody>@CustomDescription.ProductNumber</FieldBody>
|
|
</Field>
|
|
<Field>
|
|
<FieldLabel>OptionNumber</FieldLabel>
|
|
<FieldBody>@CustomDescription.OptionNumber</FieldBody>
|
|
</Field>
|
|
<Field>
|
|
<FieldLabel>Heading</FieldLabel>
|
|
<TextEdit Text="@CustomDescription.Heading" TextChanged="@OnHeadingChanged"/>
|
|
</Field>
|
|
<Field>
|
|
<FieldLabel>CoverletterText</FieldLabel>
|
|
<TextEdit Text="@CustomDescription.CoverletterText" TextChanged="@OnCoverletterTextChanged"/>
|
|
</Field>
|
|
<Field>
|
|
<FieldLabel>DescriptionText</FieldLabel>
|
|
<TextEdit Text="@CustomDescription.DescriptionText" Size="Size.ExtraLarge" TextChanged="@OnDescriptionTextChanged"/>
|
|
</Field>
|
|
</ModalBody>
|
|
<ModalFooter>
|
|
<Button Color="Color.Success" Clicked="OnSave">Save</Button>
|
|
<Button Color="Color.Secondary" Clicked="@OnClose">Abort</Button>
|
|
</ModalFooter> |