mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Implement delete admin page for resolutions by screen.
This commit is contained in:
@@ -8,21 +8,23 @@
|
||||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>ResolutionsByScreen</h4>
|
||||
<h4>Resolutions by screen</h4>
|
||||
<hr />
|
||||
<dl class="row">
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.Screen)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.Screen.Type)
|
||||
</dd class>
|
||||
@if(Model.Screen.NativeResolution != null) { @($"{Model.Screen.Diagonal}\" {Model.Screen.Type} with {Model.Screen.NativeResolution}") }
|
||||
else
|
||||
{ @($"{Model.Screen.Diagonal}\" {Model.Screen.Type}") }
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.Resolution)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.Resolution.Id)
|
||||
</dd class>
|
||||
@Model.Resolution.ToString()
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
@@ -30,7 +32,10 @@
|
||||
asp-for="Id" />
|
||||
<input class="btn btn-danger"
|
||||
type="submit"
|
||||
value="Delete" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
value="Delete" />
|
||||
<a asp-action="Index"
|
||||
class="btn btn-secondary">
|
||||
Back to List
|
||||
</a>
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user