refactoring
This commit is contained in:
parent
fab5854f8b
commit
16df0a199a
26 changed files with 62 additions and 37 deletions
|
|
@ -25,7 +25,6 @@
|
|||
<div class="col-md-10">
|
||||
@await Html.PartialAsync("ColorEditor",Model)
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
|
|
|
|||
|
|
@ -15,11 +15,13 @@
|
|||
@Html.DisplayNameFor(model => model.Name)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model)
|
||||
@Html.DisplayFor(model => model.Name)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-default" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
|
|
|
|||
|
|
@ -14,13 +14,13 @@
|
|||
@Html.DisplayNameFor(model => model.Name)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Color)
|
||||
@Html.DisplayFor(model => model)
|
||||
@Html.DisplayFor(model => model.Name)
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
@Html.ActionLink("Edit", "Edit", new { /* id = Model.PrimaryKey */ }) |
|
||||
@Html.ActionLink("Edit", "Edit", new { id = Model.Id }) |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -21,6 +21,15 @@
|
|||
<span asp-validation-for="Name" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label">
|
||||
Indication de couleur
|
||||
</label>
|
||||
<div class="col-md-10">
|
||||
@await Html.PartialAsync("ColorEditor",Model)
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-default" />
|
||||
|
|
|
|||
|
|
@ -24,9 +24,9 @@
|
|||
@Html.DisplayFor(l => item.Name)
|
||||
</td>
|
||||
<td>
|
||||
@Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
|
||||
@Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
|
||||
@Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
|
||||
@Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
|
||||
@Html.ActionLink("Details", "Details", new {id = item.Id }) |
|
||||
@Html.ActionLink("Delete", "Delete", new { id = item.Id })
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue