С вьюхой пока все что смог
This commit is contained in:
parent
291605b6e1
commit
2eb0d882ca
@ -22,7 +22,62 @@ namespace SchoolApp.Controllers
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult Index()
|
||||
public IActionResult IndexLessons()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult IndexAchievements()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult IndexInterest()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult CreateLesson()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult CreateAchievement()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult CreateInterest()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult UpdateLesson()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult UpdateAchievement()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult UpdateInterest()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult DeleteLesson()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult DeleteAchievement()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult DeleteInterest()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
41
School/SchoolApp/Views/Home/CreateAchievement.cshtml
Normal file
41
School/SchoolApp/Views/Home/CreateAchievement.cshtml
Normal file
@ -0,0 +1,41 @@
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "CreateAchievement";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h2 class="u-text u-text-custom-color-1 u-text-default u-text-1"> Добавление достижения </h2>
|
||||
</div>
|
||||
<div class="container">
|
||||
<form>
|
||||
<section class="row">
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<h3 class="title-h3">Введите название достижения</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="name-element">Название достижения</label>
|
||||
<input class="text-field-input" type="text" required name="name-element" placeholder="Имя">
|
||||
</article>
|
||||
<h3 class="title-h3">Описание достижения</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="description-element">Описание достижения</label>
|
||||
<textarea class="text-field-textarea" type="text" name="description-element" placeholder="Описание"></textarea>
|
||||
</article>
|
||||
<h3 class="title-h3">Введите дату время получения достижения</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="phone-element">Дата полученя</label>
|
||||
<input class="text-field-input" type="datetime" required name="date-element">
|
||||
</article>
|
||||
|
||||
<article>
|
||||
<label class="submit-button-label">Кнопка отправки</label>
|
||||
<input class="submit-button" type="submit" name="submit-button" value="Добавить достижение">
|
||||
</article>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</div>
|
||||
|
40
School/SchoolApp/Views/Home/CreateInterest.cshtml
Normal file
40
School/SchoolApp/Views/Home/CreateInterest.cshtml
Normal file
@ -0,0 +1,40 @@
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "CreateInterest";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h2 class="u-text u-text-custom-color-1 u-text-default u-text-1"> Добавление интереса </h2>
|
||||
</div>
|
||||
<div class="container">
|
||||
<form>
|
||||
<section class="row">
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<h3 class="title-h3">Введите название интереса</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="name-element">Название интереса</label>
|
||||
<input class="text-field-input" type="text" required name="name-element" placeholder="Имя">
|
||||
</article>
|
||||
<h3 class="title-h3">Введите направление достижения</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="direction-element">Название направления</label>
|
||||
<input class="text-field-input" type="text" required name="direction-element" placeholder="Направление">
|
||||
</article>
|
||||
<h3 class="title-h3">Описание интереса</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="description-element">Описание интереса</label>
|
||||
<textarea class="text-field-textarea" type="text" name="description-element" placeholder="Описание"></textarea>
|
||||
</article>
|
||||
<article>
|
||||
<label class="submit-button-label">Кнопка отправки</label>
|
||||
<input class="submit-button" type="submit" name="submit-button" value="Добавить достижение">
|
||||
</article>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</div>
|
||||
|
35
School/SchoolApp/Views/Home/CreateLesson.cshtml
Normal file
35
School/SchoolApp/Views/Home/CreateLesson.cshtml
Normal file
@ -0,0 +1,35 @@
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "CreateLesson";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h2 class="u-text u-text-custom-color-1 u-text-default u-text-1"> Добавление занятия </h2>
|
||||
</div>
|
||||
<div class="container">
|
||||
<form>
|
||||
<section class="row">
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<h3 class="title-h3">Введите время начала занятия</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="start-element">Начало</label>
|
||||
<input class="text-field-input" type="datetime" required name="start-element">
|
||||
</article>
|
||||
<h3 class="title-h3">Введите время конца занятия</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="final-element">Конец</label>
|
||||
<input class="text-field-input" type="datetime" required name="final-element">
|
||||
</article>
|
||||
<article>
|
||||
<label class="submit-button-label">Кнопка отправки</label>
|
||||
<input class="submit-button" type="submit" name="submit-button" value="Добавить занятие">
|
||||
</article>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</div>
|
||||
|
30
School/SchoolApp/Views/Home/DeleteAchievement.cshtml
Normal file
30
School/SchoolApp/Views/Home/DeleteAchievement.cshtml
Normal file
@ -0,0 +1,30 @@
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "DeleteAchievement";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h2 class="u-text u-text-custom-color-1 u-text-default u-text-1"> Удаление достижения </h2>
|
||||
</div>
|
||||
<div class="container">
|
||||
<form>
|
||||
<section class="row">
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<h3 class="title-h3">Введите название достижения</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="name-element">Название достижения</label>
|
||||
<input class="text-field-input" type="text" required name="name-element" placeholder="Имя">
|
||||
</article>
|
||||
|
||||
<article>
|
||||
<label class="submit-button-label">Кнопка отправки</label>
|
||||
<input class="submit-button" type="submit" name="submit-button" value="Удалить достижение">
|
||||
</article>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</div>
|
30
School/SchoolApp/Views/Home/DeleteInterest.cshtml
Normal file
30
School/SchoolApp/Views/Home/DeleteInterest.cshtml
Normal file
@ -0,0 +1,30 @@
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "DeleteInterest";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h2 class="u-text u-text-custom-color-1 u-text-default u-text-1"> Удаление интереса </h2>
|
||||
</div>
|
||||
<div class="container">
|
||||
<form>
|
||||
<section class="row">
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<h3 class="title-h3">Введите название интереса</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="name-element">Название интереса</label>
|
||||
<input class="text-field-input" type="text" required name="name-element" placeholder="Имя">
|
||||
</article>
|
||||
<article>
|
||||
<label class="submit-button-label">Кнопка отправки</label>
|
||||
<input class="submit-button" type="submit" name="submit-button" value="Удалить достижение">
|
||||
</article>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</div>
|
||||
|
30
School/SchoolApp/Views/Home/DeleteLesson.cshtml
Normal file
30
School/SchoolApp/Views/Home/DeleteLesson.cshtml
Normal file
@ -0,0 +1,30 @@
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "DeleteLesson";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h2 class="u-text u-text-custom-color-1 u-text-default u-text-1"> Удаление занятия </h2>
|
||||
</div>
|
||||
<div class="container">
|
||||
<form>
|
||||
<section class="row">
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<h3 class="title-h3">Введите время начала занятия</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="start-element">Начало</label>
|
||||
<input class="text-field-input" type="datetime" required name="start-element">
|
||||
</article>
|
||||
<article>
|
||||
<label class="submit-button-label">Кнопка отправки</label>
|
||||
<input class="submit-button" type="submit" name="submit-button" value="Удалить занятие">
|
||||
</article>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</div>
|
||||
|
74
School/SchoolApp/Views/Home/IndexAchievements.cshtml
Normal file
74
School/SchoolApp/Views/Home/IndexAchievements.cshtml
Normal file
@ -0,0 +1,74 @@
|
||||
@using SchoolContracts.ViewModels
|
||||
|
||||
@model List<AchievementViewModel>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "IndexAchievement";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h1 class="display-4">Достижения</h1>
|
||||
</div>
|
||||
|
||||
<div class="text-center">
|
||||
@{
|
||||
if (Model == null)
|
||||
{
|
||||
<h3 class="display-4">Авторизируйтесь</h3>
|
||||
return;
|
||||
}
|
||||
<p>
|
||||
<a asp-action="UpdatePatient">Редактировать достижение</a>
|
||||
<a asp-action="DeletePatient">Удалить достижение</a>
|
||||
</p>
|
||||
<p>
|
||||
<a asp-action="CreatePatient">Создать достижение</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
Номер
|
||||
</th>
|
||||
<th>
|
||||
Номер занятия
|
||||
</th>
|
||||
<th>
|
||||
Название
|
||||
</th>
|
||||
<th>
|
||||
Описание
|
||||
</th>
|
||||
<th>
|
||||
Дата получения
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Id)
|
||||
</td>
|
||||
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.LessonId)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Name)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Description)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ReceiptDate)
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
}
|
||||
</div>
|
||||
|
70
School/SchoolApp/Views/Home/IndexInterest.cshtml
Normal file
70
School/SchoolApp/Views/Home/IndexInterest.cshtml
Normal file
@ -0,0 +1,70 @@
|
||||
|
||||
@using SchoolContracts.ViewModels
|
||||
|
||||
@model List<InterestViewModel>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "IndexInterst";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h1 class="display-4">Интересы</h1>
|
||||
</div>
|
||||
|
||||
<div class="text-center">
|
||||
@{
|
||||
if (Model == null)
|
||||
{
|
||||
<h3 class="display-4">Авторизируйтесь</h3>
|
||||
return;
|
||||
}
|
||||
<p>
|
||||
<a asp-action="UpdatePatient">Редактировать интерес</a>
|
||||
<a asp-action="DeletePatient">Удалить интерес</a>
|
||||
</p>
|
||||
<p>
|
||||
<a asp-action="CreatePatient">Создать создать интерес</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
Номер
|
||||
</th>
|
||||
<th>
|
||||
Название
|
||||
</th>
|
||||
<th>
|
||||
Направление
|
||||
</th>
|
||||
<th>
|
||||
Описания
|
||||
</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Id)
|
||||
</td>
|
||||
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Name)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Direction)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Description)
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
}
|
||||
</div>
|
||||
|
@ -20,6 +20,7 @@
|
||||
<p>
|
||||
<a asp-action="UpdatePatient">Редактировать занятие</a>
|
||||
<a asp-action="DeletePatient">Удалить занятие</a>
|
||||
<a asp-action="ServiceVisits">Добавить достижение</a>
|
||||
<a asp-action="ServiceVisits">Связать занятие и интерес</a>
|
||||
</p>
|
||||
<p>
|
41
School/SchoolApp/Views/Home/UpdateAchievement.cshtml
Normal file
41
School/SchoolApp/Views/Home/UpdateAchievement.cshtml
Normal file
@ -0,0 +1,41 @@
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "UpdateAchievement";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h2 class="u-text u-text-custom-color-1 u-text-default u-text-1"> Изменить достижения </h2>
|
||||
</div>
|
||||
<div class="container">
|
||||
<form>
|
||||
<section class="row">
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<h3 class="title-h3">Введите название достижения</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="name-element">Название достижения</label>
|
||||
<input class="text-field-input" type="text" required name="name-element" placeholder="Имя">
|
||||
</article>
|
||||
<h3 class="title-h3">Описание достижения</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="description-element">Описание достижения</label>
|
||||
<textarea class="text-field-textarea" type="text" name="description-element" placeholder="Описание"></textarea>
|
||||
</article>
|
||||
<h3 class="title-h3">Введите дату время получения достижения</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="phone-element">Дата полученя</label>
|
||||
<input class="text-field-input" type="datetime" required name="date-element">
|
||||
</article>
|
||||
|
||||
<article>
|
||||
<label class="submit-button-label">Кнопка отправки</label>
|
||||
<input class="submit-button" type="submit" name="submit-button" value="Обновить достижение">
|
||||
</article>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</div>
|
||||
|
40
School/SchoolApp/Views/Home/UpdateInterest.cshtml
Normal file
40
School/SchoolApp/Views/Home/UpdateInterest.cshtml
Normal file
@ -0,0 +1,40 @@
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "UpdateInterest";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h2 class="u-text u-text-custom-color-1 u-text-default u-text-1"> Изменение интереса </h2>
|
||||
</div>
|
||||
<div class="container">
|
||||
<form>
|
||||
<section class="row">
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<h3 class="title-h3">Введите название интереса</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="name-element">Название интереса</label>
|
||||
<input class="text-field-input" type="text" required name="name-element" placeholder="Имя">
|
||||
</article>
|
||||
<h3 class="title-h3">Введите направление достижения</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="direction-element">Название направления</label>
|
||||
<input class="text-field-input" type="text" required name="direction-element" placeholder="Направление">
|
||||
</article>
|
||||
<h3 class="title-h3">Описание интереса</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="description-element">Описание интереса</label>
|
||||
<textarea class="text-field-textarea" type="text" name="description-element" placeholder="Описание"></textarea>
|
||||
</article>
|
||||
<article>
|
||||
<label class="submit-button-label">Кнопка отправки</label>
|
||||
<input class="submit-button" type="submit" name="submit-button" value="Обновить достижение">
|
||||
</article>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</div>
|
||||
|
35
School/SchoolApp/Views/Home/Updatelesson.cshtml
Normal file
35
School/SchoolApp/Views/Home/Updatelesson.cshtml
Normal file
@ -0,0 +1,35 @@
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Updatelesson";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h2 class="u-text u-text-custom-color-1 u-text-default u-text-1"> Изменить занятия </h2>
|
||||
</div>
|
||||
<div class="container">
|
||||
<form>
|
||||
<section class="row">
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<h3 class="title-h3">Введите время начала занятия</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="start-element">Начало</label>
|
||||
<input class="text-field-input" type="datetime" required name="start-element">
|
||||
</article>
|
||||
<h3 class="title-h3">Введите время конца занятия</h3>
|
||||
<article class="form-section">
|
||||
<label class="text-field-label" for="final-element">Конец</label>
|
||||
<input class="text-field-input" type="datetime" required name="final-element">
|
||||
</article>
|
||||
<article>
|
||||
<label class="submit-button-label">Кнопка отправки</label>
|
||||
<input class="submit-button" type="submit" name="submit-button" value="Обновить занятие">
|
||||
</article>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user