refact
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
|
||||
@model isn.Data.ApiKeys.CreateModel
|
||||
@model isnd.Data.ApiKeys.CreateModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
@model isn.Data.ApiKeys.DeleteModel
|
||||
@model isnd.Data.ApiKeys.DeleteModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
@model isn.Data.ApiKeys.DetailModel
|
||||
@model isnd.Data.ApiKeys.DetailModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
@model isn.Data.ApiKeys.EditModel
|
||||
@model isnd.Data.ApiKeys.EditModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
@model isn.Data.ApiKeys.IndexModel
|
||||
@model isnd.Data.ApiKeys.IndexModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
|
@ -8,7 +8,7 @@
|
||||
<h1 class="display-4">Welcome</h1>
|
||||
<h1>
|
||||
<img src="~/icon.jpg">
|
||||
Welcome to isn
|
||||
Welcome to isnd
|
||||
</h1>
|
||||
<strong>@Model.PkgCount identifiant(s) de paquet dans le SI</strong>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
@model isn.Data.PackageVersion
|
||||
@model isnd.Data.PackageVersion
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
|
@ -1,4 +1,4 @@
|
||||
@model isn.Data.PackageVersion
|
||||
@model isnd.Data.PackageVersion
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
|
37
src/isnd/Views/Packages/Details.cshtml
Normal file
37
src/isnd/Views/Packages/Details.cshtml
Normal file
@ -0,0 +1,37 @@
|
||||
@model PackageDetailViewModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>PackageVersion</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.latest.IsPrerelease)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.latest.IsPrerelease)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.latest.PackageId)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.latest.PackageId)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.latest.FullString)
|
||||
</dt>
|
||||
<dd>
|
||||
<a href="@Model.latest.NugetLink" >@Html.DisplayFor(model => model.latest.FullString)</a>
|
||||
<a href="@Model.latest.NuspecLink" >nuspec</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div>
|
||||
@Html.ActionLink("Edit", "Edit", new { pkgid = Model.pkgid, version = Model.latest.FullString }) |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
53
src/isnd/Views/Packages/Index.cshtml
Normal file
53
src/isnd/Views/Packages/Index.cshtml
Normal file
@ -0,0 +1,53 @@
|
||||
@model PackageIndexViewModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<form method="get">
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="query" class="control-label"></label>
|
||||
<input asp-for="query" class="form-control" />
|
||||
<label asp-for="totalHits" class="control-label"></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="submit" value="Find" class="btn btn-default" />
|
||||
</div>
|
||||
</form>
|
||||
</p>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.data[0].Id)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.data[0].Description)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model.data) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Id)
|
||||
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Description)
|
||||
</td>
|
||||
<td>
|
||||
@Html.ActionLink("Details", "Details", new { pkgid = item.Id }) |
|
||||
@Html.ActionLink("Delete", "Delete", new { pkgid = item.Id })
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
@ -1,3 +1,3 @@
|
||||
@using isn.Data
|
||||
@using isn.ViewModels
|
||||
@using isnd.Data
|
||||
@using isnd.ViewModels
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
|
Reference in New Issue
Block a user