32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
@using ChatMvc.Controllers
|
|
@model TextRequest
|
|
|
|
<div class="container">
|
|
<div class="card shadow-lg mt-4">
|
|
<div class="card-body">
|
|
<h2 class="card-title mb-4 text-center">Novo Texto</h2>
|
|
@using (Html.BeginForm("Save", "Documents", FormMethod.Post))
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
|
|
@if (Model!=null && Model.Id != null)
|
|
{
|
|
@Html.HiddenFor(m => m.Id);
|
|
}
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(m => m.Title, "Título")
|
|
@Html.TextBoxFor(m => m.Title, new { @class = "form-control" })
|
|
</div>
|
|
<div class="form-group">
|
|
@Html.LabelFor(m => m.Content, "Conteúdo")
|
|
@Html.TextAreaFor(m => m.Content, new { @class = "form-control", rows = "5" })
|
|
</div>
|
|
<div class="text-center">
|
|
<button type="submit" class="btn btn-primary">Salvar</button>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|