58 lines
1.1 KiB
Text
58 lines
1.1 KiB
Text
@page
|
|
@model Snootalogue.Pages.IndexModel
|
|
|
|
<h1>Documents</h1>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Documents[0].Title)
|
|
</th>
|
|
@* <th>
|
|
@Html.DisplayNameFor(model => model.Documents[0].Authors)
|
|
</th> *@
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Documents[0].Category)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Documents[0].Size)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Documents[0].Read)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Documents[0].DateAdded)
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
@foreach (var item in Model.Documents) {
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Title)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Category)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Size)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Read)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.DateAdded)
|
|
</td>
|
|
<td>
|
|
<a href="#">Details</a>
|
|
<a href="#">Edit</a>
|
|
<a href="#">Delete</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
|
|
</thead>
|
|
</table>
|