Forum-Inzynieria1/Trunk/Server/Forum/MailSender/Views/Home/Index.cshtml

37 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-12-08 19:27:21 +01:00
@model MailSender.Models.MailModel
@{
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
@if (ViewData.ContainsKey("mailErr"))
{
<h3>Error: @ViewData["mailErr"]</h3>
}
2018-12-08 19:27:21 +01:00
@using (Html.BeginForm("Index", "Home", FormMethod.Post))
{
<div class="form-group">
@Html.LabelFor(i => i.Subject, new { @class = "label-form" })
2018-12-13 23:05:57 +01:00
@Html.EditorFor(i => i.Subject, new { htmlAttributes = new { @class = "form-control form-control--input", @placeholder = "Temat" } })
@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-13 23:05:57 +01:00
@Html.EditorFor(i => i.EMailTo, new { htmlAttributes = new { @class = "form-control form-control--input", @placeholder = "Do" } })
@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-13 23:05:57 +01:00
@Html.EditorFor(i => i.Content, new { htmlAttributes = new { @class = "form-control form-control--input", @placeholder = "Odpowiedź" } })
@Html.ValidationMessageFor(i => i.Content)
2018-12-08 19:27:21 +01:00
</div>
2018-12-13 23:05:57 +01:00
<input type="submit" value="Send" class="answer-list__add-btn" />
}
@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
2018-12-08 19:27:21 +01:00
}