2016-05-17 18:35:45 +02:00
|
|
|
@model IEnumerable<Yavsc.Models.Activity>
|
2016-05-17 18:22:18 +02:00
|
|
|
|
|
|
|
|
@{
|
|
|
|
|
ViewData["Title"] = "Index";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<h2>Index</h2>
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
<a asp-action="Create">Create New</a>
|
|
|
|
|
</p>
|
|
|
|
|
<table class="table">
|
|
|
|
|
<tr>
|
|
|
|
|
<th>
|
|
|
|
|
@Html.DisplayNameFor(model => model.Code)
|
|
|
|
|
</th>
|
2017-01-13 16:31:40 +01:00
|
|
|
<th>
|
|
|
|
|
@SR["Name"]
|
|
|
|
|
</th>
|
2016-05-17 18:22:18 +02:00
|
|
|
|
|
|
|
|
<th>
|
|
|
|
|
@Html.DisplayNameFor(model => model.Description)
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
2017-01-13 16:31:40 +01:00
|
|
|
@Html.DisplayNameFor(model => model.Photo)
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
@Html.DisplayNameFor(model => model.Parent)
|
2016-05-17 18:22:18 +02:00
|
|
|
</th>
|
|
|
|
|
<th>
|
2017-01-13 16:31:40 +01:00
|
|
|
@SR["SettingsClass"]
|
2016-05-17 18:22:18 +02:00
|
|
|
</th>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
@foreach (var item in Model) {
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.DisplayFor(modelItem => item.Code)
|
|
|
|
|
</td>
|
2017-01-13 16:31:40 +01:00
|
|
|
<td>
|
|
|
|
|
@Html.DisplayFor(modelItem => item.Name)
|
|
|
|
|
</td>
|
2016-05-17 18:22:18 +02:00
|
|
|
<td>
|
|
|
|
|
@Html.DisplayFor(modelItem => item.Description)
|
|
|
|
|
</td>
|
2017-01-13 16:31:40 +01:00
|
|
|
<td>@if (item.Photo!=null) {
|
|
|
|
|
<img src="@item.Photo" style="max-height: 4em;" />
|
|
|
|
|
}
|
|
|
|
|
</td>
|
2016-05-17 18:22:18 +02:00
|
|
|
<td>
|
2017-01-13 16:31:40 +01:00
|
|
|
@if (item.Parent!=null) {
|
|
|
|
|
<text>
|
|
|
|
|
@Html.DisplayFor(modelItem => item.Parent)
|
|
|
|
|
</text>
|
|
|
|
|
}
|
2016-05-17 18:22:18 +02:00
|
|
|
</td>
|
|
|
|
|
<td>
|
2017-01-13 16:31:40 +01:00
|
|
|
@if (item.SettingsClassName!=null) {
|
|
|
|
|
<text>
|
|
|
|
|
@SR[item.SettingsClassName]
|
|
|
|
|
</text>
|
|
|
|
|
}
|
2016-05-17 18:22:18 +02:00
|
|
|
</td>
|
2017-01-06 14:02:17 +01:00
|
|
|
<td>
|
|
|
|
|
@Html.DisplayFor(modelItem => item.Children)
|
|
|
|
|
</td>
|
2016-05-17 18:22:18 +02:00
|
|
|
<td>
|
|
|
|
|
<a asp-action="Edit" asp-route-id="@item.Code">Edit</a> |
|
|
|
|
|
<a asp-action="Details" asp-route-id="@item.Code">Details</a> |
|
|
|
|
|
<a asp-action="Delete" asp-route-id="@item.Code">Delete</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</table>
|