Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e69868b

Browse files
committedMar 12, 2021
CREATE VIEW CADASTRA_CAFE
1 parent da035a7 commit e69868b

File tree

5 files changed

+45
-0
lines changed

5 files changed

+45
-0
lines changed
 

‎.vs/CoffeeForCode/v16/.suo

-56 KB
Binary file not shown.

‎CoffeeForCode/CoffeeForCode.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@
325325
<Content Include="Views\Funcionario\Info.cshtml" />
326326
<Content Include="Views\Funcionario\Categoria.cshtml" />
327327
<Content Include="Views\Funcionario\BuscaCliente.cshtml" />
328+
<Content Include="Views\Funcionario\Cadastra_Cafe.cshtml" />
328329
</ItemGroup>
329330
<ItemGroup>
330331
<Folder Include="App_Data\" />
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
@model AppBancoDominio.Categoria
2+
3+
@{
4+
ViewBag.Title = "Cadastra_Cafe";
5+
Layout = "~/Views/Shared/_CFCfunc.cshtml";
6+
}
7+
8+
<h2>Cadastra_Cafe</h2>
9+
10+
@using (Html.BeginForm())
11+
{
12+
@Html.AntiForgeryToken()
13+
14+
<div class="form-horizontal">
15+
<h4>Categoria</h4>
16+
<hr />
17+
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
18+
<div class="form-group">
19+
@Html.LabelFor(model => model.cd_cat, htmlAttributes: new { @class = "control-label col-md-2" })
20+
<div class="col-md-10">
21+
@Html.EditorFor(model => model.cd_cat, new { htmlAttributes = new { @class = "form-control" } })
22+
@Html.ValidationMessageFor(model => model.cd_cat, "", new { @class = "text-danger" })
23+
</div>
24+
</div>
25+
26+
<div class="form-group">
27+
@Html.LabelFor(model => model.nm_cat, htmlAttributes: new { @class = "control-label col-md-2" })
28+
<div class="col-md-10">
29+
@Html.EditorFor(model => model.nm_cat, new { htmlAttributes = new { @class = "form-control" } })
30+
@Html.ValidationMessageFor(model => model.nm_cat, "", new { @class = "text-danger" })
31+
</div>
32+
</div>
33+
34+
<div class="form-group">
35+
<div class="col-md-offset-2 col-md-10">
36+
<input type="submit" value="Create" class="btn btn-default" />
37+
</div>
38+
</div>
39+
</div>
40+
}
41+
42+
<div>
43+
@Html.ActionLink("Back to List", "Index")
44+
</div>
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.