@model SendPrivateMessageModel
@{    
    Layout = "_ColumnsOne";

    //title
    NopHtml.AddTitleParts(T("PageTitle.SendPM").Text);
    //page class
    NopHtml.AppendPageCssClassParts("html-private-messages");
    NopHtml.AppendPageCssClassParts("html-private-message-send-page");
}
<form asp-route="SendPM" method="post">
    <div asp-validation-summary="ModelOnly" class="message-error alert alert-danger"></div>
    <div class="page private-messages private-message-send-page">
        <div class="page-title">
            <h1>@T("PrivateMessages.Send.PostMessage")</h1>
        </div>
        <div class="page-body">
            <input type="hidden" asp-for="ToCustomerId" />
            <input type="hidden" asp-for="ReplyToMessageId" />
            <div class="fieldset">
                <div class="form-fields">
                    <div class="row mb-3">
                        <label class="col-sm-12 col-md-4 col-lg-4 col-xl-4 col-form-label pl-0 pr-0 pt-0">@T("PrivateMessages.Send.To")</label>
                        <div class="col-sm-12 col-md-5 col-lg-5 col-xl-5">
                            @if (Model.AllowViewingToProfile)
                            {
                                <a href="@Url.RouteUrl("CustomerProfile", new { id = Model.ToCustomerId })">@(Model.CustomerToName)</a>
                            }
                            else
                            {
                                <span>@Model.CustomerToName</span>
                            }
                        </div>
                    </div>
                    <div class="row mb-3">
                        <label class="col-sm-12 col-md-4 col-lg-4 col-xl-4 col-form-label pl-0 pr-0 pt-0">@T("PrivateMessages.Send.Subject")</label>
                        <div class="col-sm-12 col-md-5 col-lg-5 col-xl-5">
                            <input asp-for="Subject" class="pm-title-text form-control" />
                        </div>
                        <div class="col-sm-12 col-md-3 col-lg-3 col-xl-3">
                            <span asp-validation-for="Subject"></span>
                        </div>
                    </div>
                    <div class="row mb-3">
                        <label class="col-sm-12 col-md-4 col-lg-4 col-xl-4 col-form-label pl-0 pr-0">@T("PrivateMessages.Send.Message")</label>
                        <div class="col-sm-12 col-md-5 col-lg-5 col-xl-5">
                            <nop-bb-code-editor asp-for="Message" />
                            <textarea asp-for="Message" class="bb-editor-text form-control"></textarea>
                        </div>
                        <div class="col-sm-12 col-md-3 col-lg-3 col-xl-3">
                            <span asp-validation-for="Message"></span>
                        </div>
                    </div>
                </div>
            </div>            
            <div class="row mb-3">
                <div class="offset-md-4 offset-lg-4 offset-xl-4 col-sm-12 col-md-8 col-lg-8 col-xl-8">
                    <div class="buttons">
                        <button type="submit" class="btn btn-primary button-1 send-pm-button">@T("PrivateMessages.Send.SendButton")</button>
                        <button type="button" class="btn btn-primary button-2 cancel-pm-button" onclick="setLocation('@Url.RouteUrl("PrivateMessages")')">@T("PrivateMessages.Send.CancelButton")</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>