@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"></div>
    <div class="page private-messages private-message-send-page">
        <div class="page-title panel-heading">
            <h1>@T("PrivateMessages.Send.PostMessage")</h1>
        </div>
        <div class="page-body">            
            <input type="hidden" asp-for="ToCustomerId" />
            <input type="hidden" asp-for="ReplyToMessageId" />
            <fieldset>
                <div class="form-fields form-horizontal">
                    <div class="form-group">
                        <label class="private-message-title control-label col-xs-12 col-sm-2 col-md-2">@T("PrivateMessages.Send.To")</label>
                        <div class="col-xs-12 col-sm-6 col-md-6">
                            @if (Model.AllowViewingToProfile)
                            {
                            <a class="private-message-username" href="@Url.RouteUrl("CustomerProfile", new { id = Model.ToCustomerId })">@(Model.CustomerToName)</a>
                            }
                            else
                            {
                            <span class="private-message-username">@Model.CustomerToName</span>
                            }
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-sm-2 col-md-2">@T("PrivateMessages.Send.Subject")</label>
                        <div class="col-sm-6 col-md-6">
                            <input asp-for="Subject" class="form-control" />
                            <span asp-validation-for="Subject"></span>
                        </div>
                    </div>
                    <div class=" message form-group">
                        <label class="control-label col-sm-2 col-md-2">@T("PrivateMessages.Send.Message")</label>
                        <div class="col-sm-6 col-md-6">
                            <nop-bb-code-editor asp-for="Message" />
                            <textarea asp-for="Message" class="bb-editor-text form-control"></textarea>
                            <span asp-validation-for="Message"></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-md-offset-2 col-sm-6 col-md-6">
                            <div class="form-group row">
                                <button type="submit" class="btn btn-primary send-pm-button">@T("PrivateMessages.Send.SendButton")</button>
                                <button type="button" class="btn btn-default cancel-pm-button" onclick="setLocation('@Url.RouteUrl("PrivateMessages")')">
                                    @T("PrivateMessages.Send.CancelButton")
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </fieldset>
        </div>
    </div>
</form>
