CourseWork_SchoolStudyAgain/SchoolAgainStudy/StudentWebClient/Views/Home/InterestSetting.cshtml

27 lines
980 B
Plaintext
Raw Normal View History

@using SchoolAgainStudyContracts.ViewModel;
@model InterestViewModel
@{
ViewData["Title"] = "Setting";
}
<div class="text-center">
<h2 class="display-4">@Model.Title</h2>
</div>
<form method="post" action="@Url.Action("UpdateInterest", "Home", new{id=Model.Id,name="#name",desc="#desc"})">
<div class="row m-3">
<div class="col-8">
<input type="submit" value="Обновить" class="col-md-4 btn btn-primary" />
<input type="button" class="col-md-4 ms-auto btn btn-danger" value="Удалить" onclick="location.href='@Url.Action("DeleteInterest","Home", new {id=Model.Id })'" />
</div>
</div>
<div class="row m-3">
<div class="col-4">Название:</div>
<div class="col-8"><input type="text" name="name" id="name" value="@Model.Title" /></div>
</div>
<div class="row m-3">
<div class="col-4">Описание:</div>
<div class="col-8"><textarea cols="50" id="desc" name="desc" rows="5">@Model.Description</textarea>:</div>
</div>
</form>