Добавил страницу редактирования курса

This commit is contained in:
Никита Потапов 2024-04-30 16:31:24 +04:00
parent a68a4e3dc4
commit ce024e1f03
2 changed files with 37 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
@ -6,6 +6,13 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.16">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\PolyclinicBusinessLogic\PolyclinicBusinessLogic.csproj" />
<ProjectReference Include="..\PolyclinicContracts\PolyclinicContracts.csproj" />

View File

@ -0,0 +1,29 @@
@*
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
ViewData["Title"] = "Редактировать курс";
}
<form class="d-flex flex-column">
<div class="row mb-5">
<div class="col-4">Количество дней:</div>
<div class="col-8"><input type="number" id="daysCount" name="daysCount" /></div>
</div>
<div class="row mb-5">
<div class="col-4">Количество препарата в день:</div>
<div class="col-8"><input type="number" id="pillsPerDay" name="pillsPerDay" /></div>
</div>
<div class="row mb-5">
<div class="col-4">Коментарий:</div>
<div class="col-8"><textarea id="comment" name="comment"></textarea></div>
</div>
<div class="row mb-5">
<div class="col-4">Рецепт:</div>
<div class="col-8">
<select id="recipeId" name="recipeId">
<option>Выберите рецепт</option>
<option value="0">Какой-то рецепт</option>
</select>
</div>
</div>
</form>