This commit is contained in:
Paul Schneider 2026-02-28 21:17:54 +00:00
commit 40e8e08690
3487 changed files with 39 additions and 21 deletions

View file

@ -0,0 +1,53 @@
@model Yavsc.Models.Relationship.HyperLink
@{
ViewData["Title"] = "Create";
}
<h2>Create</h2>
<form asp-action="Create">
<div class="form-horizontal">
<h4>HyperLink</h4>
<hr />
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<label asp-for="HRef" class="col-md-2 control-label"></label>
<div class="col-md-10">
<input asp-for="HRef" class="form-control" />
<span asp-validation-for="HRef" class="text-danger" ></span>
</div>
</div>
<div class="form-group">
<label asp-for="Method" class="col-md-2 control-label"></label>
<div class="col-md-10">
<input asp-for="Method" class="form-control" />
<span asp-validation-for="Method" class="text-danger" ></span>
</div>
</div>
<div class="form-group">
<label asp-for="ContentType" class="col-md-2 control-label"></label>
<div class="col-md-10">
<input asp-for="ContentType" class="form-control" />
<span asp-validation-for="ContentType" class="text-danger" ></span>
</div>
</div>
<div class="form-group">
<label asp-for="Rel" class="col-md-2 control-label"></label>
<div class="col-md-10">
<input asp-for="Rel" class="form-control" />
<span asp-validation-for="Rel" class="text-danger" ></span>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Create" class="btn btn-primary" />
</div>
</div>
</div>
</form>
<div>
<a asp-action="Index">Back to List</a>
</div>

View file

@ -0,0 +1,48 @@
@model Yavsc.Models.Relationship.HyperLink
@{
ViewData["Title"] = "Delete";
}
<h2>Delete</h2>
<h3>AreYourSureYouWantToDeleteThis</h3>
<div>
<h4>HyperLink</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.HRef)
</dt>
<dd>
@Html.DisplayFor(model => model.HRef)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Method)
</dt>
<dd>
@Html.DisplayFor(model => model.Method)
</dd>
<dt>
@Html.DisplayNameFor(model => model.ContentType)
</dt>
<dd>
@Html.DisplayFor(model => model.ContentType)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Rel)
</dt>
<dd>
@Html.DisplayFor(model => model.Rel)
</dd>
</dl>
<form asp-action="Delete">
<input asp-for="HRef" type="hidden" />
<input asp-for="Method" type="hidden" />
<div class="form-actions no-color">
<input type="submit" value="Delete"]" class="btn btn-primary" /> |
<a asp-action="Index">Back to List</a>
</div>
</form>
</div>

View file

@ -0,0 +1,42 @@
@model Yavsc.Models.Relationship.HyperLink
@{
ViewData["Title"] = "Details";
}
<h2>Details</h2>
<div>
<h4>HyperLink</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.HRef)
</dt>
<dd>
@Html.DisplayFor(model => model.HRef)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Method)
</dt>
<dd>
@Html.DisplayFor(model => model.Method)
</dd>
<dt>
@Html.DisplayNameFor(model => model.ContentType)
</dt>
<dd>
@Html.DisplayFor(model => model.ContentType)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Rel)
</dt>
<dd>
@Html.DisplayFor(model => model.Rel)
</dd>
</dl>
</div>
<p>
@Html.ActionLink("Edit", "Edit", new { /* id = Model.PrimaryKey */ }) |
<a asp-action="Index">Back to List</a>
</p>

View file

@ -0,0 +1,55 @@
@model Yavsc.Models.Relationship.HyperLink
@{
ViewData["Title"] = "Edit";
}
<h2>Edit</h2>
<form asp-action="Edit">
<div class="form-horizontal">
<h4>HyperLink</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.HRef)
</dt>
<dd>
@Html.DisplayFor(model => model.HRef)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Method)
</dt>
<dd>
@Html.DisplayFor(model => model.Method)
</dd>
</dl>
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<input type="hidden" asp-for="HRef" />
<input type="hidden" asp-for="Method" />
<div class="form-group">
<label asp-for="ContentType" class="col-md-2 control-label"></label>
<div class="col-md-10">
<input asp-for="ContentType" class="form-control" />
<span asp-validation-for="ContentType" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<label asp-for="Rel" class="col-md-2 control-label"></label>
<div class="col-md-10">
<input asp-for="Rel" class="form-control" />
<span asp-validation-for="Rel" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Save" class="btn btn-primary" />
</div>
</div>
</div>
</form>
<div>
<a asp-action="Index">Back to List</a>
</div>

View file

@ -0,0 +1,50 @@
@model IEnumerable<Yavsc.Models.Relationship.HyperLink>
@{
ViewData["Title"] = "Index";
}
<h2>HyperLink - Index"]</h2>
<p>
<a asp-action="Create">Create New</a>
</p>
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.HRef)
</th>
<th>
@Html.DisplayNameFor(model => model.Method)
</th>
<th>
@Html.DisplayNameFor(model => model.ContentType)
</th>
<th>
@Html.DisplayNameFor(model => model.Rel)
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.HRef)
</td>
<td>
@Html.DisplayFor(modelItem => item.Method)
</td>
<td>
@Html.DisplayFor(modelItem => item.ContentType)
</td>
<td>
@Html.DisplayFor(modelItem => item.Rel)
</td>
<td>
@Html.ActionLink("Edit", "Edit", new { hRef=item.HRef, method = item.Method }) |
@Html.ActionLink("Details", "Details", new { hRef=item.HRef, method = item.Method }) |
@Html.ActionLink("Delete", "Delete", new { hRef=item.HRef, method = item.Method })
</td>
</tr>
}
</table>