-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#140 Delete function and postalCode fix
- Loading branch information
1 parent
6932388
commit 0a1a8a3
Showing
6 changed files
with
144 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
PlanB.Butler.Admin/PlanB.Butler.Admin/Views/Restaurant/Delete.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
@model PlanB.Butler.Admin.Models.RestaurantViewModel | ||
|
||
@{ | ||
ViewData["Title"] = "Delete"; | ||
} | ||
|
||
<h1>Delete</h1> | ||
|
||
<h3>Are you sure you want to delete this?</h3> | ||
<div> | ||
<h4>MealViewModel</h4> | ||
<hr /> | ||
<dl class="row"> | ||
<dt class="col-sm-2"> | ||
@Html.DisplayNameFor(model => model.City) | ||
</dt> | ||
<dd class="col-sm-10"> | ||
@Html.DisplayFor(model => model.City) | ||
</dd> | ||
<dt class="col-sm-2"> | ||
@Html.DisplayNameFor(model => model.PostalCode) | ||
</dt> | ||
<dd class="col-sm-10"> | ||
@Html.DisplayFor(model => model.PostalCode) | ||
</dd> | ||
|
||
<dt class="col-sm-2"> | ||
@Html.DisplayNameFor(model => model.Name) | ||
</dt> | ||
<dd class="col-sm-10"> | ||
@Html.DisplayFor(model => model.Name) | ||
</dd> | ||
<dt class="col-sm-2"> | ||
@Html.DisplayNameFor(model => model.Street) | ||
</dt> | ||
<dd class="col-sm-10"> | ||
@Html.DisplayFor(model => model.Street) | ||
</dd> | ||
<dt class="col-sm-2"> | ||
@Html.DisplayNameFor(model => model.EmailAddress) | ||
</dt> | ||
<dd class="col-sm-10"> | ||
@Html.DisplayFor(model => model.EmailAddress) | ||
</dd> | ||
<dt class="col-sm-2"> | ||
@Html.DisplayNameFor(model => model.PhoneNumber) | ||
</dt> | ||
<dd class="col-sm-10"> | ||
@Html.DisplayFor(model => model.PhoneNumber) | ||
</dd> | ||
</dl> | ||
|
||
<form asp-action="Delete"> | ||
<input type="submit" value="Delete" class="btn btn-danger" /> | | ||
<a asp-action="Index">Back to List</a> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters