Add CRUD for main database tables.

This commit is contained in:
2019-11-07 22:43:37 +00:00
parent 4753cf3dbe
commit bae387df50
85 changed files with 5513 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
@model CompactDiscOffset
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta content="width=device-width" name="viewport" />
<title>Create</title>
</head>
<body>
<h4>CompactDiscOffset</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<label asp-for="AddedWhen" class="control-label"></label>
<input asp-for="AddedWhen" class="form-control" />
<span asp-validation-for="AddedWhen" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ModifiedWhen" class="control-label"></label>
<input asp-for="ModifiedWhen" class="form-control" />
<span asp-validation-for="ModifiedWhen" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Manufacturer" class="control-label"></label>
<input asp-for="Manufacturer" class="form-control" />
<span asp-validation-for="Manufacturer" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Model" class="control-label"></label>
<input asp-for="Model" class="form-control" />
<span asp-validation-for="Model" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Offset" class="control-label"></label>
<input asp-for="Offset" class="form-control" />
<span asp-validation-for="Offset" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Submissions" class="control-label"></label>
<input asp-for="Submissions" class="form-control" />
<span asp-validation-for="Submissions" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Agreement" class="control-label"></label>
<input asp-for="Agreement" class="form-control" />
<span asp-validation-for="Agreement" class="text-danger"></span>
</div>
<div class="form-group">
<input class="btn btn-primary" type="submit" value="Create" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>
</body>
</html>

View File

@@ -0,0 +1,69 @@
@model CompactDiscOffset
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta content="width=device-width" name="viewport" />
<title>Delete</title>
</head>
<body>
<h3>Are you sure you want to delete this?</h3>
<div>
<h4>CompactDiscOffset</h4>
<hr />
<dl class="row">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.AddedWhen)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.AddedWhen)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.ModifiedWhen)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.ModifiedWhen)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Manufacturer)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Manufacturer)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Model)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Model)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Offset)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Offset)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Submissions)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Submissions)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Agreement)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Agreement)
</dd>
</dl>
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<input class="btn btn-danger" type="submit" value="Delete" /> |
<a asp-action="Index">Back to List</a>
</form>
</div>
</body>
</html>

View File

@@ -0,0 +1,67 @@
@model CompactDiscOffset
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta content="width=device-width" name="viewport" />
<title>Details</title>
</head>
<body>
<div>
<h4>CompactDiscOffset</h4>
<hr />
<dl class="row">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.AddedWhen)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.AddedWhen)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.ModifiedWhen)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.ModifiedWhen)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Manufacturer)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Manufacturer)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Model)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Model)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Offset)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Offset)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Submissions)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Submissions)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Agreement)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Agreement)
</dd>
</dl>
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
<a asp-action="Index">Back to List</a>
</div>
</body>
</html>

View File

@@ -0,0 +1,66 @@
@model CompactDiscOffset
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta content="width=device-width" name="viewport" />
<title>Edit</title>
</head>
<body>
<h4>CompactDiscOffset</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Edit">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<input type="hidden" asp-for="Id" />
<div class="form-group">
<label asp-for="AddedWhen" class="control-label"></label>
<input asp-for="AddedWhen" class="form-control" />
<span asp-validation-for="AddedWhen" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ModifiedWhen" class="control-label"></label>
<input asp-for="ModifiedWhen" class="form-control" />
<span asp-validation-for="ModifiedWhen" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Manufacturer" class="control-label"></label>
<input asp-for="Manufacturer" class="form-control" />
<span asp-validation-for="Manufacturer" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Model" class="control-label"></label>
<input asp-for="Model" class="form-control" />
<span asp-validation-for="Model" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Offset" class="control-label"></label>
<input asp-for="Offset" class="form-control" />
<span asp-validation-for="Offset" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Submissions" class="control-label"></label>
<input asp-for="Submissions" class="form-control" />
<span asp-validation-for="Submissions" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Agreement" class="control-label"></label>
<input asp-for="Agreement" class="form-control" />
<span asp-validation-for="Agreement" class="text-danger"></span>
</div>
<div class="form-group">
<input class="btn btn-primary" type="submit" value="Save" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>
</body>
</html>

View File

@@ -0,0 +1,79 @@
@model IEnumerable<CompactDiscOffset>
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta content="width=device-width" name="viewport" />
<title>Index</title>
</head>
<body>
<p>
<a asp-action="Create">Create New</a>
</p>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.AddedWhen)
</th>
<th>
@Html.DisplayNameFor(model => model.ModifiedWhen)
</th>
<th>
@Html.DisplayNameFor(model => model.Manufacturer)
</th>
<th>
@Html.DisplayNameFor(model => model.Model)
</th>
<th>
@Html.DisplayNameFor(model => model.Offset)
</th>
<th>
@Html.DisplayNameFor(model => model.Submissions)
</th>
<th>
@Html.DisplayNameFor(model => model.Agreement)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.AddedWhen)
</td>
<td>
@Html.DisplayFor(modelItem => item.ModifiedWhen)
</td>
<td>
@Html.DisplayFor(modelItem => item.Manufacturer)
</td>
<td>
@Html.DisplayFor(modelItem => item.Model)
</td>
<td>
@Html.DisplayFor(modelItem => item.Offset)
</td>
<td>
@Html.DisplayFor(modelItem => item.Submissions)
</td>
<td>
@Html.DisplayFor(modelItem => item.Agreement)
</td>
<td>
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
</td>
</tr>
}
</tbody>
</table>
</body>
</html>