вливаю всё, что было создано на 5, 6, 7 этапах в ветку main #12

Merged
ekallin merged 180 commits from stage7_user_web_interface_prototype into main 2024-05-01 19:15:20 +04:00
4 changed files with 90 additions and 2 deletions
Showing only changes of commit 3bb449765f - Show all commits

View File

@ -52,6 +52,11 @@ namespace PolyclinicWebAppSuretor.Controllers
{
return View();
}
public IActionResult ListCoursesByProcedures()
{
return View();
}
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error()

View File

@ -7,10 +7,11 @@
public static (string Url, string Title) Procedures = ("Procedures", "Процедуры");
public static (string Url, string Title) Recipes = ("Recipes", "Рецепты");
public static (string Url, string Title) Users = ("Users", "Пользователи");
public static (string Url, string Title) ListCoursesByProcedures = ("ListCoursesByProcedures", "Список курсов приема препаратов");
public static List<(string Url, string Title)> MenuItemsOrder = new List<(string Url, string Title)>
{
Index, Medicaments, Procedures, Recipes, Users
Index, Medicaments, Procedures, Recipes, Users, ListCoursesByProcedures
};
}
}

View File

@ -0,0 +1,53 @@
@using PolyclinicContracts.ViewModels
@{
ViewData["Title"] = "ListCoursesByProcedures";
}
<div class="text-center">
<h1 class="head-list-courses">Список курсов приема препаратов по выбранным процедурам</h1>
</div>
<form method="post" class="form-list-courses d-flex flex-row justify-content-around align-items-center">
<div class="procedure-info d-flex flex-column mb-5 mt-5">
<p style="font-size: 3vh">
Выберите процедуры из списка
</p>
<div class="list-procedures list-group overflow-auto">
<ul>
@{
int count = 20;
for (int i = 1; i <= count; i++)
{
<li class="d-flex mb-2">
<input class="me-2" name="procedure-@i" type="checkbox" id="procedure-@i" />
<label for="diagnose-@i">процедура @i</label>
</li>
}
}
</ul>
</div>
</div>
<div class="d-flex flex-column mb-5 mt-5 justify-content-center align-items-center">
<p style="font-size: 3vh" class="mb-3">
В каком формате сохранить файл?
</p>
<div class="d-flex flex-row align-content-center mb-3" style="font-size: 3vh">
<input type="radio" value="docx" class="radio-docx me-1" name="fileFormat" />
<label class="me-5">docx</label>
<input type="radio" value="xlsx" class="radio-xlsx me-1" name="fileFormat" />
<label>xlsx</label>
</div>
<p style="font-size: 3vh" class="mb-3">
Как назовем файл?
</p>
<input type="text" placeholder="Отчет по курсам" />
<div class="button-save-list-courses mt-5">
<input type="submit" value="Сохранить" class="button-save-list-courses btn" asp-action="Index" />
</div>
</div>
</form>

View File

@ -78,7 +78,7 @@ body {
background-color: rgb(6, 25, 16);
}
.form-create-procedure{
.form-create-procedure {
color: white;
background-color: rgb(149, 100, 197)
}
@ -129,3 +129,32 @@ body {
.medicament-info {
text-shadow: 0px 4px 8px rgba(26, 67, 71, 1); /* Ãîðèçîíòàëüíîå ñìåùåíèå, âåðòèêàëüíîå ñìåùåíèå, ðàçìûòèå, öâåò òåíè */
}
.head-list-courses {
font-size: 4vh;
font-style: oblique;
}
.form-list-courses {
background-color: rgb(190, 179, 112);
color: rgb(53, 47, 13);
}
.list-procedures {
height: 40vh;
}
.button-save-list-courses {
width: 20vh;
height: 8vh;
color: white;
transition: transform 0.3s;
background-color: rgb(90, 80, 19);
box-shadow: 0px 4px 8px rgb(60, 53, 7); /* Ãîðèçîíòàëüíîå ñìåùåíèå, âåðòèêàëüíîå ñìåùåíèå, ðàçìûòèå, öâåò òåíè */
}
.button-save-list-courses:hover {
color: white;
background-color: rgb(60, 53, 7);
transform: scale(1.2);
}