respond (buggy)
This commit is contained in:
51
Views/tickets/Index.cshtml
Normal file
51
Views/tickets/Index.cshtml
Normal file
@ -0,0 +1,51 @@
|
||||
@model IEnumerable<WebApplication1.Models.ticket>
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
@Html.ActionLink("Create New", "Create")
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.title)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.content)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.priority)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.senderid)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.title)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.content)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.priority)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.senderid)
|
||||
</td>
|
||||
<td>
|
||||
@Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
|
||||
@Html.ActionLink("Details", "Details", new { id=item.ID }) |
|
||||
@Html.ActionLink("Delete", "Delete", new { id=item.ID })
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
||||
</table>
|
||||
Reference in New Issue
Block a user