Files
Aaru.Server/DiscImageChef.Server/Areas/Admin/Views/UsbVendors/Details.cshtml

93 lines
3.1 KiB
Plaintext

@model UsbVendorModel
@{
Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
ViewBag.Title = "DiscImageChef";
}
@{
// /***************************************************************************
// The Disc Image Chef
// ----------------------------------------------------------------------------
//
// Filename : Details.cshtml
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// Component : DiscImageChef Server.
//
// --[ License ] --------------------------------------------------------------
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2019 Natalia Portillo
// ****************************************************************************/
}
<div>
<h4>USB vendor</h4>
<hr />
<dl class="row">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Vendor)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Vendor)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.VendorId)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.VendorId)
</dd>
</dl>
</div>
<div>
<h4>Products:</h4>
<table class="table" id="tblProducts">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Products[0].ProductName)
</th>
<th>
@Html.DisplayNameFor(model => model.Products[0].ProductId)
</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.Products)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.ProductName)
</td>
<td>
@Html.DisplayFor(modelItem => item.ProductId)
</td>
</tr>
}
</tbody>
</table>
</div>
<div>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
@section scripts{
<script crossorigin="anonymous" integrity="sha256-L4cf7m/cgC51e7BFPxQcKZcXryzSju7VYBKJLOKPHvQ=" src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script>
<script language="javascript">
$(document).ready(function() {
$('#tblProducts').DataTable();
} );
</script>
}