27 lines
979 B
Plaintext
27 lines
979 B
Plaintext
|
@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="button" 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>
|
||
|
|
||
|
|