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>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,8 +18,23 @@
|
|||
var green = @Model.Green;
|
||||
var blue = @Model.Blue;
|
||||
|
||||
$(".slider").slider(
|
||||
$("#sred").slider(
|
||||
{
|
||||
value: red,
|
||||
min: 0,
|
||||
max: 255,
|
||||
animate: "fast"
|
||||
});
|
||||
$("#sgreen").slider(
|
||||
{
|
||||
value: green,
|
||||
min: 0,
|
||||
max: 255,
|
||||
animate: "fast"
|
||||
});
|
||||
$("#sblue").slider(
|
||||
{
|
||||
value: blue,
|
||||
min: 0,
|
||||
max: 255,
|
||||
animate: "fast"
|
||||
|
|
@ -43,6 +58,7 @@
|
|||
blue=ui.value;
|
||||
updateColor();
|
||||
});
|
||||
updateColor();
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
<script src="~/js/jquery-ui.js"></script>
|
||||
<script src="~/js/bootstrap.js"></script>
|
||||
<script src="~/js/site.js"></script>
|
||||
<script src="~/js/jquery.signalR-2.2.1.js"></script>
|
||||
</environment>
|
||||
<environment names="Staging,Production,yavsc,yavscpre,zicmoove,lua">
|
||||
<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.1.4.min.js"
|
||||
|
|
@ -29,10 +28,10 @@
|
|||
asp-fallback-src="~/bower_components/bootstrap/dist/js/bootstrap.min.js"
|
||||
asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal">
|
||||
</script>
|
||||
<script src="~/js/site.js"></script>
|
||||
<script src="~/js/jquery-ui.js"></script>
|
||||
<script src="~/js/jquery.signalR-2.2.1.js"></script>
|
||||
<script src="~/js/site.js"></script>
|
||||
</environment>
|
||||
<script src="~/js/jquery.signalR-2.2.1.js"></script>
|
||||
@RenderSection("header", required: false)
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue