-
Notifications
You must be signed in to change notification settings - Fork 0
/
Edit de Postagem.cshtml
55 lines (52 loc) · 2.33 KB
/
Edit de Postagem.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@model Eart.Areas.Postagens.Models.Postagem
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title> Criar postagem </title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
<link rel="stylesheet" href="~/Css/styles.css">
<link rel="shortcut icon" type="imagex/png" href="~/Imagens/logo_ico.ico">
<!--<link href="@Url.Content("~/Content/bootstrap.css")" rel="stylesheet" />-->
</head>
<body>
<div class="container">
<div>
@using (Html.BeginForm("Edit", "Postagens", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
@Html.HiddenFor(model => model.PostagemId, new { htmlAttributes = new { @class = "form-control" } })
@Html.HiddenFor(model => model.MembroId, new { htmlAttributes = new { @class = "form-control" } })
@Html.HiddenFor(model => model.FotoType)
@Html.HiddenFor(model => model.Foto)
@Html.HiddenFor(model => model.FotoNome)
@Html.HiddenFor(model => model.FotoTamanho)
<div class="form-group">
<div class="col-md-10">
@Html.TextAreaFor(model => model.Texto, new { @cols = 44, htmlAttributes = new { placeholder = "Adicionar legenda..." } })
@Html.ValidationMessageFor(model => model.Texto, "", new { @class = "error" })
</div>
</div>
<div class="foto">
<div>
<div>
@Html.TextBox("foto", "", new { type = "file" }) <br />
</div>
</div>
</div>
</div>
<div class="buttons">
@Html.ActionLink("Cancelar", "FeedMembrosSeguidos", "Postagens", new { area = "Postagens" }, new { @class = "cancelar" })
<button class="publicar"> Publicar </button>
</div>
<br />
<br />
}
</div>
</div>
</body>
</html>