mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
79 lines
2.5 KiB
Plaintext
79 lines
2.5 KiB
Plaintext
|
|
@{
|
||
|
|
/******************************************************************************
|
||
|
|
// Canary Islands Computer Museum Website
|
||
|
|
// ----------------------------------------------------------------------------
|
||
|
|
//
|
||
|
|
// Filename : Index.cshtml
|
||
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
||
|
|
//
|
||
|
|
// --[ Description ] ----------------------------------------------------------
|
||
|
|
//
|
||
|
|
// Admin view index
|
||
|
|
//
|
||
|
|
// --[ License ] --------------------------------------------------------------
|
||
|
|
//
|
||
|
|
// This program is free software: you can redistribute it and/or modify
|
||
|
|
// it under the terms of the GNU General Public License as
|
||
|
|
// published by the Free Software Foundation, either version 3 of the
|
||
|
|
// License, or (at your option) any later version.
|
||
|
|
//
|
||
|
|
// This program 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 General Public License for more details.
|
||
|
|
//
|
||
|
|
// You should have received a copy of the GNU General Public License
|
||
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
|
//
|
||
|
|
// ----------------------------------------------------------------------------
|
||
|
|
// Copyright © 2003-2018 Natalia Portillo
|
||
|
|
*******************************************************************************/
|
||
|
|
}
|
||
|
|
@model IEnumerable<Cicm.Database.Models.News>
|
||
|
|
|
||
|
|
@{
|
||
|
|
ViewData["Title"] = "Index";
|
||
|
|
}
|
||
|
|
|
||
|
|
<h2>Index</h2>
|
||
|
|
|
||
|
|
<p>
|
||
|
|
<a asp-action="Create">Create New</a>
|
||
|
|
</p>
|
||
|
|
<table class="table">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>
|
||
|
|
@Html.DisplayNameFor(model => model.Date)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
@Html.DisplayNameFor(model => model.Type)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
@Html.DisplayNameFor(model => model.AddedId)
|
||
|
|
</th>
|
||
|
|
<th></th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
@foreach (var item in Model) {
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
@Html.DisplayFor(modelItem => item.Date)
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
@Html.DisplayFor(modelItem => item.Type)
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
@Html.DisplayFor(modelItem => item.AddedId)
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
|
||
|
|
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
|
||
|
|
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
}
|
||
|
|
</tbody>
|
||
|
|
</table>
|