This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
pwt-0x01-ng/Areas/Admin/Views/OrderItem/Delete.cshtml

58 lines
1.4 KiB
Plaintext
Raw Normal View History

merge: feature-admin-views-spaces-to-tabs commit 43ceea436cf04ed259d5e094e3e003da630d3dce Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:57:48 2020 +0100 chore: spaces to tabs in admin views commit 0bc3345368826a6c6edae974ca4cb69f32134553 Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:41:12 2020 +0100 chore: always update the updated timestamp * instruct db to update the updated timestamp both on create and edit, fixing a little bug that was preventing creation of items of any kind (since this behaviour has been used throughout the entity configs) due to the updated timestamp not being set (while db knows it's a not-null) commit 34664fc9f3876605001b4c5294d3350a136f2997 Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:18:05 2020 +0100 chore: edit the scaffolded views to use our layout commit 6816006c09b5a3d79c489e3c27d7081b83e6195e Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:14:17 2020 +0100 chore: update Makefile "run" target+added targets * pgdba - start a dev db container in background * pgdbz - stop the dev db image * docker run db img args are configured via variables as seen fit * run is now more of a "watch run" commit f1d87345ac2d7d9ce854a6c8bb37731ff0f8805c Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:12:41 2020 +0100 chore: add {OrderItem,Order} links to navbar commit c214cf4fe6625ad312275432a8883a01e37f9cf0 Author: surtur <a_mirre@utb.cz> Date: Wed Dec 30 13:37:34 2020 +0100 chore: add netcore-scaffolded controllers+views * Templates folder of the vs.web.codegenerators pkg (v3.1.4) had to be temporarily copied to the project directory for the scaffolding to work; unnecessary template folders had to be removed prior to running scaffold command * restored pkgs and clean built, then scaffolded using (var set for trace output of the command): make restore clean build; codegen_trace=1 dotnet-aspnet-codegenerator controller -p "." -actions --force -name OrdersController -dc pwt_0x01_ng.Models.Database.DBContext -async -m pwt_0x01_ng.Models.Order -namespace pwt_0x01_ng.Areas.Admin.Controllers -outDir Areas/Admin/Controllers --no-build make restore clean build; codegen_trace=1 dotnet-aspnet-codegenerator controller -p "." -actions --force -name OrderItemController -dc pwt_0x01_ng.Models.Database.DBContext -async -m pwt_0x01_ng.Models.OrderItem -namespace pwt_0x01_ng.Areas.Admin.Controllers -outDir Areas/Admin/Controllers --no-build
2020-12-31 02:11:14 +01:00
@model pwt_0x01_ng.Models.OrderItem
@{
ViewData["Title"] = "Delete";
}
<h2>@ViewData["Title"]</h2>
<h3>@ViewData["Message"]</h3>
<h3>Are you sure you want to delete this?</h3>
<div>
<h4>OrderItem</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.Amount)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.Amount)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.Price)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.Price)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.Order)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.Order.Order_Number)
2021-02-18 20:23:28 +01:00
</dd>
merge: feature-admin-views-spaces-to-tabs commit 43ceea436cf04ed259d5e094e3e003da630d3dce Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:57:48 2020 +0100 chore: spaces to tabs in admin views commit 0bc3345368826a6c6edae974ca4cb69f32134553 Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:41:12 2020 +0100 chore: always update the updated timestamp * instruct db to update the updated timestamp both on create and edit, fixing a little bug that was preventing creation of items of any kind (since this behaviour has been used throughout the entity configs) due to the updated timestamp not being set (while db knows it's a not-null) commit 34664fc9f3876605001b4c5294d3350a136f2997 Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:18:05 2020 +0100 chore: edit the scaffolded views to use our layout commit 6816006c09b5a3d79c489e3c27d7081b83e6195e Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:14:17 2020 +0100 chore: update Makefile "run" target+added targets * pgdba - start a dev db container in background * pgdbz - stop the dev db image * docker run db img args are configured via variables as seen fit * run is now more of a "watch run" commit f1d87345ac2d7d9ce854a6c8bb37731ff0f8805c Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:12:41 2020 +0100 chore: add {OrderItem,Order} links to navbar commit c214cf4fe6625ad312275432a8883a01e37f9cf0 Author: surtur <a_mirre@utb.cz> Date: Wed Dec 30 13:37:34 2020 +0100 chore: add netcore-scaffolded controllers+views * Templates folder of the vs.web.codegenerators pkg (v3.1.4) had to be temporarily copied to the project directory for the scaffolding to work; unnecessary template folders had to be removed prior to running scaffold command * restored pkgs and clean built, then scaffolded using (var set for trace output of the command): make restore clean build; codegen_trace=1 dotnet-aspnet-codegenerator controller -p "." -actions --force -name OrdersController -dc pwt_0x01_ng.Models.Database.DBContext -async -m pwt_0x01_ng.Models.Order -namespace pwt_0x01_ng.Areas.Admin.Controllers -outDir Areas/Admin/Controllers --no-build make restore clean build; codegen_trace=1 dotnet-aspnet-codegenerator controller -p "." -actions --force -name OrderItemController -dc pwt_0x01_ng.Models.Database.DBContext -async -m pwt_0x01_ng.Models.OrderItem -namespace pwt_0x01_ng.Areas.Admin.Controllers -outDir Areas/Admin/Controllers --no-build
2020-12-31 02:11:14 +01:00
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.Product)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.Product.Description)
2021-02-18 20:23:28 +01:00
</dd>
merge: feature-admin-views-spaces-to-tabs commit 43ceea436cf04ed259d5e094e3e003da630d3dce Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:57:48 2020 +0100 chore: spaces to tabs in admin views commit 0bc3345368826a6c6edae974ca4cb69f32134553 Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:41:12 2020 +0100 chore: always update the updated timestamp * instruct db to update the updated timestamp both on create and edit, fixing a little bug that was preventing creation of items of any kind (since this behaviour has been used throughout the entity configs) due to the updated timestamp not being set (while db knows it's a not-null) commit 34664fc9f3876605001b4c5294d3350a136f2997 Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:18:05 2020 +0100 chore: edit the scaffolded views to use our layout commit 6816006c09b5a3d79c489e3c27d7081b83e6195e Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:14:17 2020 +0100 chore: update Makefile "run" target+added targets * pgdba - start a dev db container in background * pgdbz - stop the dev db image * docker run db img args are configured via variables as seen fit * run is now more of a "watch run" commit f1d87345ac2d7d9ce854a6c8bb37731ff0f8805c Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:12:41 2020 +0100 chore: add {OrderItem,Order} links to navbar commit c214cf4fe6625ad312275432a8883a01e37f9cf0 Author: surtur <a_mirre@utb.cz> Date: Wed Dec 30 13:37:34 2020 +0100 chore: add netcore-scaffolded controllers+views * Templates folder of the vs.web.codegenerators pkg (v3.1.4) had to be temporarily copied to the project directory for the scaffolding to work; unnecessary template folders had to be removed prior to running scaffold command * restored pkgs and clean built, then scaffolded using (var set for trace output of the command): make restore clean build; codegen_trace=1 dotnet-aspnet-codegenerator controller -p "." -actions --force -name OrdersController -dc pwt_0x01_ng.Models.Database.DBContext -async -m pwt_0x01_ng.Models.Order -namespace pwt_0x01_ng.Areas.Admin.Controllers -outDir Areas/Admin/Controllers --no-build make restore clean build; codegen_trace=1 dotnet-aspnet-codegenerator controller -p "." -actions --force -name OrderItemController -dc pwt_0x01_ng.Models.Database.DBContext -async -m pwt_0x01_ng.Models.OrderItem -namespace pwt_0x01_ng.Areas.Admin.Controllers -outDir Areas/Admin/Controllers --no-build
2020-12-31 02:11:14 +01:00
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.Created)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.Created)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.Updated)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.Updated)
</dd>
</dl>
2021-02-18 20:23:28 +01:00
merge: feature-admin-views-spaces-to-tabs commit 43ceea436cf04ed259d5e094e3e003da630d3dce Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:57:48 2020 +0100 chore: spaces to tabs in admin views commit 0bc3345368826a6c6edae974ca4cb69f32134553 Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:41:12 2020 +0100 chore: always update the updated timestamp * instruct db to update the updated timestamp both on create and edit, fixing a little bug that was preventing creation of items of any kind (since this behaviour has been used throughout the entity configs) due to the updated timestamp not being set (while db knows it's a not-null) commit 34664fc9f3876605001b4c5294d3350a136f2997 Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:18:05 2020 +0100 chore: edit the scaffolded views to use our layout commit 6816006c09b5a3d79c489e3c27d7081b83e6195e Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:14:17 2020 +0100 chore: update Makefile "run" target+added targets * pgdba - start a dev db container in background * pgdbz - stop the dev db image * docker run db img args are configured via variables as seen fit * run is now more of a "watch run" commit f1d87345ac2d7d9ce854a6c8bb37731ff0f8805c Author: surtur <a_mirre@utb.cz> Date: Thu Dec 31 01:12:41 2020 +0100 chore: add {OrderItem,Order} links to navbar commit c214cf4fe6625ad312275432a8883a01e37f9cf0 Author: surtur <a_mirre@utb.cz> Date: Wed Dec 30 13:37:34 2020 +0100 chore: add netcore-scaffolded controllers+views * Templates folder of the vs.web.codegenerators pkg (v3.1.4) had to be temporarily copied to the project directory for the scaffolding to work; unnecessary template folders had to be removed prior to running scaffold command * restored pkgs and clean built, then scaffolded using (var set for trace output of the command): make restore clean build; codegen_trace=1 dotnet-aspnet-codegenerator controller -p "." -actions --force -name OrdersController -dc pwt_0x01_ng.Models.Database.DBContext -async -m pwt_0x01_ng.Models.Order -namespace pwt_0x01_ng.Areas.Admin.Controllers -outDir Areas/Admin/Controllers --no-build make restore clean build; codegen_trace=1 dotnet-aspnet-codegenerator controller -p "." -actions --force -name OrderItemController -dc pwt_0x01_ng.Models.Database.DBContext -async -m pwt_0x01_ng.Models.OrderItem -namespace pwt_0x01_ng.Areas.Admin.Controllers -outDir Areas/Admin/Controllers --no-build
2020-12-31 02:11:14 +01:00
<form asp-action="Delete">
<input type="hidden" asp-for="id" />
<input type="submit" value="Delete" class="btn btn-danger" /> |
<a asp-action="Index">Back to List</a>
</form>
</div>