WIP
This commit is contained in:
parent
96dcf5c4f4
commit
0d8fd0606f
60 changed files with 874 additions and 209 deletions
|
|
@ -1,4 +1,4 @@
|
|||
@model Yavsc.Models.CircleMember
|
||||
@model Yavsc.Models.Relationship.Circle
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
|
|
@ -8,9 +8,23 @@
|
|||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>CircleMember</h4>
|
||||
<h4>Circle</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="OwnerId" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="OwnerId" class="form-control" />
|
||||
<span asp-validation-for="OwnerId" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-default" />
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
@model Yavsc.Models.CircleMember
|
||||
@model Yavsc.Models.Relationship.Circle
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
|
|
@ -8,9 +8,21 @@
|
|||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>CircleMember</h4>
|
||||
<h4>Circle</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Name)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.OwnerId)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.OwnerId)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
@model Yavsc.Models.CircleMember
|
||||
@model Yavsc.Models.Relationship.Circle
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
|
|
@ -7,9 +7,21 @@
|
|||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>CircleMember</h4>
|
||||
<h4>Circle</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Name)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.OwnerId)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.OwnerId)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
@model Yavsc.Models.CircleMember
|
||||
@model Yavsc.Models.Relationship.Circle
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
|
|
@ -8,10 +8,24 @@
|
|||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>CircleMember</h4>
|
||||
<h4>Circle</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="OwnerId" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="OwnerId" class="form-control" />
|
||||
<span asp-validation-for="OwnerId" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-default" />
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
@model IEnumerable<Yavsc.Models.CircleMember>
|
||||
@model IEnumerable<Yavsc.Models.Relationship.Circle>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
|
|
@ -11,11 +11,23 @@
|
|||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.OwnerId)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Name)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.OwnerId)
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
|
||||
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue