2018-12-08 19:27:21 +01:00
|
|
|
@model MailSender.Models.MailModel
|
2018-12-16 13:35:41 +01:00
|
|
|
@{
|
2018-12-13 23:05:57 +01:00
|
|
|
//ViewBag.Title = "Mail Sender";
|
2018-12-08 19:27:21 +01:00
|
|
|
}
|
2018-12-13 23:05:57 +01:00
|
|
|
|
2018-12-08 19:27:21 +01:00
|
|
|
|
2018-12-20 01:22:51 +01:00
|
|
|
@if (TempData["mailErr"] != null)
|
2018-12-09 02:20:46 +01:00
|
|
|
{
|
2018-12-20 01:22:51 +01:00
|
|
|
string errStr = TempData["mailErr"] as string;
|
|
|
|
<h3>Error: @TempData["mailErr"]</h3>
|
|
|
|
TempData["mailErr"] = null;
|
2018-12-09 02:20:46 +01:00
|
|
|
}
|
2018-12-08 19:27:21 +01:00
|
|
|
|
2018-12-19 19:26:24 +01:00
|
|
|
@using (Html.BeginForm("Send", "Home", FormMethod.Post))
|
2018-12-08 19:27:21 +01:00
|
|
|
{
|
|
|
|
<div class="form-group">
|
|
|
|
@Html.LabelFor(i => i.Subject, new { @class = "label-form" })
|
2018-12-19 22:13:44 +01:00
|
|
|
@Html.EditorFor(i => i.Subject, new { htmlAttributes = new { @value = Model.Subject, @class = "form-control form-emailsend w100", @placeholder = "Temat" } })
|
2018-12-09 02:20:46 +01:00
|
|
|
@Html.ValidationMessageFor(i => i.Subject)
|
2018-12-08 19:27:21 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
@Html.LabelFor(i => i.EMailTo, new { @class = "label-form" })
|
2018-12-19 22:13:44 +01:00
|
|
|
@Html.EditorFor(i => i.EMailTo, new { htmlAttributes = new { @value = Model.EMailTo, @class = "form-control form-emailsend w100", @placeholder = "Do" } })
|
2018-12-09 02:20:46 +01:00
|
|
|
@Html.ValidationMessageFor(i => i.EMailTo)
|
2018-12-08 19:27:21 +01:00
|
|
|
</div>
|
|
|
|
|
2018-12-13 23:05:57 +01:00
|
|
|
<div class="form-group" >
|
2018-12-08 19:27:21 +01:00
|
|
|
@Html.LabelFor(i => i.Content, new { @class = "label-form" })
|
2018-12-19 22:13:44 +01:00
|
|
|
@Html.EditorFor(i => i.Content, new { htmlAttributes = new { @value = Model.Content, @class = "form-control w100", @id = "exampleFormControlTextarea3", @rows=9, @placeholder = "Odpowiedź" } })
|
2018-12-09 02:20:46 +01:00
|
|
|
@Html.ValidationMessageFor(i => i.Content)
|
2018-12-08 19:27:21 +01:00
|
|
|
</div>
|
|
|
|
|
2018-12-18 15:42:39 +01:00
|
|
|
<input type="submit" value="Wyślij" class="answer-list__add-btn answer-list__add-btn--sendButton" />
|
2018-12-09 02:20:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@section Scripts {
|
|
|
|
@Scripts.Render("~/bundles/jqueryval")
|
2018-12-08 19:27:21 +01:00
|
|
|
}
|