Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created January 5, 2022 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcomartin/8466d91ae8dd5eebd84cb13cbc9e6544 to your computer and use it in GitHub Desktop.
Save dcomartin/8466d91ae8dd5eebd84cb13cbc9e6544 to your computer and use it in GitHub Desktop.
@page
@model CQRSRazorPages.Pages.Details
<div class="row">
<label class="col-sm-1 col-form-label">Id</label>
<div class="col-sm-10">
<input type="text" readonly class="form-control-plaintext" value="@Model.InventoryItem.Id">
</div>
</div>
<div class="row">
<label class="col-sm-1 col-form-label">Name</label>
<div class="col-sm-10">
<input type="text" readonly class="form-control-plaintext" value="@Model.InventoryItem.Name">
</div>
</div>
<div class="row">
<label class="col-sm-1 col-form-label">Count</label>
<div class="col-sm-10">
<input type="text" readonly class="form-control-plaintext" value=" @Model.InventoryItem.CurrentCount">
</div>
</div>
@{
var q = new Dictionary<string, string>
{
{ "id", Model.InventoryItem.Id.ToString() },
{ "version", Model.InventoryItem.Version.ToString() }
};
}
<ul class="list-group">
<li class="list-group-item"><a asp-page="/ChangeName" asp-all-route-data="q">Change Name</a></li>
<li class="list-group-item"><a asp-page="/Deactivate" asp-all-route-data="q">Deactivate</a></li>
<li class="list-group-item"><a asp-page="/CheckIn" asp-all-route-data="q">Check In</a></li>
<li class="list-group-item"><a asp-page="/Remove" asp-all-route-data="q">Remove</a></li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment