0
0
MyDarling/Views/Products/Create.cshtml

37 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

2023-02-16 09:01:18 +03:00
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
2023-06-03 07:41:46 +03:00
@model MyDarling.Models.Product
2023-02-16 09:01:18 +03:00
<!DOCTYPE html>
<html>
<head>
2023-06-06 06:33:24 +03:00
<title>Новый продукт</title>
2023-02-16 09:01:18 +03:00
<link href="/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
2023-06-03 07:41:46 +03:00
<nav class="navbar navbar-dark bg-primary" aria-label="breadcrumb">
<a class="navbar-brand mx-4" href="/Products"><img height="30" src="/assets/img/logo.svg"></a>
<a href="/Account/logout"><button class="btn btn-outline-light mx-4">Выйти</button></a>
</nav>
<div class="row container-fluid justify-content-center">
<form asp-action="Create" method="post" class="m-2 col-8">
2023-02-16 09:01:18 +03:00
<div asp-validation-summary="All"></div>
<div class="form-group">
2023-06-03 07:41:46 +03:00
<label asp-for="Name" class="form-label">Название:</label>
2023-02-16 09:01:18 +03:00
<input asp-for="Name" class="form-control" />
</div>
<div class="form-group">
2023-06-03 07:41:46 +03:00
<label asp-for="Description" class="form-label">Описание:</label>
@Html.TextAreaFor(model => model.Description, new { @class="form-control", @rows = 2 })
2023-02-16 09:01:18 +03:00
</div>
<div class="form-group">
2023-06-03 07:41:46 +03:00
<label asp-for="Price" class="form-label">Цена:</label>
2023-02-20 21:53:21 +03:00
<input asp-for="Price" class="form-control" />
2023-02-16 09:01:18 +03:00
</div>
2023-06-03 07:41:46 +03:00
<button type="submit" class="btn btn-outline-success mt-3">Сохранить</button>
2023-02-16 09:01:18 +03:00
</form>
2023-06-03 07:41:46 +03:00
</div>
2023-02-16 09:01:18 +03:00
</body>
</html>