39 lines
1.5 KiB
Plaintext
39 lines
1.5 KiB
Plaintext
@model MailSender.Models.MailModel
|
|
@{
|
|
//ViewBag.Title = "Mail Sender";
|
|
}
|
|
|
|
|
|
@if (TempData["mailErr"] != null)
|
|
{
|
|
string errStr = TempData["mailErr"] as string;
|
|
<h3>Error: @TempData["mailErr"]</h3>
|
|
TempData["mailErr"] = null;
|
|
}
|
|
|
|
@using (Html.BeginForm("Send", "Home", FormMethod.Post))
|
|
{
|
|
<div class="form-group">
|
|
@Html.LabelFor(i => i.Subject, new { @class = "label-form" })
|
|
@Html.EditorFor(i => i.Subject, new { htmlAttributes = new { @value = Model.Subject, @class = "form-control form-emailsend w100", @placeholder = "Temat" } })
|
|
@Html.ValidationMessageFor(i => i.Subject)
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(i => i.EMailTo, new { @class = "label-form" })
|
|
@Html.EditorFor(i => i.EMailTo, new { htmlAttributes = new { @value = Model.EMailTo, @class = "form-control form-emailsend w100", @placeholder = "Do" } })
|
|
@Html.ValidationMessageFor(i => i.EMailTo)
|
|
</div>
|
|
|
|
<div class="form-group" >
|
|
@Html.LabelFor(i => i.Content, new { @class = "label-form" })
|
|
@Html.EditorFor(i => i.Content, new { htmlAttributes = new { @value = Model.Content, @class = "form-control w100", @id = "exampleFormControlTextarea3", @rows=9, @placeholder = "Odpowiedź" } })
|
|
@Html.ValidationMessageFor(i => i.Content)
|
|
</div>
|
|
|
|
<input type="submit" value="Wyślij" class="answer-list__add-btn answer-list__add-btn--sendButton" />
|
|
}
|
|
|
|
@section Scripts {
|
|
@Scripts.Render("~/bundles/jqueryval")
|
|
} |