31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
<ActionForm Request="Request" WorkItemComponent="WorkItemComponent" Title="@Title">
|
|
<div class="form-group form-row">
|
|
<label for="Subject" class="col-sm-6 col-form-label">Subject</label>
|
|
<InputText class="form-control" id="Subject" placeholder="Enter Subject" @bind-Value="Request.Subject" />
|
|
</div>
|
|
<div class="form-group form-row">
|
|
<label for="Body" class="col-sm-6 col-form-label">Body</label>
|
|
<InputTextArea class="form-control" id="exampleFormControlTextarea1" rows="3" @bind-Value="Request.Body" placeholder="Enter Body"></InputTextArea>
|
|
</div>
|
|
<TextBoxListComponent Id="EmailRecipients"
|
|
Label="Email Recipients"
|
|
Placeholder="Recipient"
|
|
TextBoxInputList="Request.Recipient" />
|
|
</ActionForm>
|
|
|
|
@code {
|
|
[Parameter]
|
|
public WorkItemComponent WorkItemComponent { get; set; }
|
|
public EmailRequest Request { get; set; }
|
|
private string Title = "Email";
|
|
|
|
protected override void OnParametersSet()
|
|
{
|
|
Request = (EmailRequest)WorkItemComponent.Item;
|
|
|
|
if (Request.Recipient == null)
|
|
{
|
|
Request.Recipient = new List<string>();
|
|
}
|
|
}
|
|
} |