This repository was archived by the owner on Oct 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathIndex.cshtml
More file actions
92 lines (85 loc) · 3.65 KB
/
Index.cshtml
File metadata and controls
92 lines (85 loc) · 3.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
@model IEnumerable<AssetManager.Web.ViewModels.CategoryViewModel>
@{
ViewData["Title"] = "Index";
}
<div class="header-content">
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-8">
<p class="header-content-title">Category</p>
</div>
<div class="col-md-6 col-sm-6 col-xs-4">
<a asp-action="Create" class="pull-right btn btn-primary btn-create-new">Create New</a>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="box box-default">
<div class="box-body">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model=> model.Id)
</th>
<th>
@Html.DisplayNameFor(model => model.Name)
</th>
<th>
@Html.DisplayNameFor(model => model.EulaText)
</th>
<th>
@Html.DisplayNameFor(model => model.DefaultEula)
</th>
<th>
@Html.DisplayNameFor(model => model.Type)
</th>
<th>
@Html.DisplayNameFor(model => model.CheckInEmail)
</th>
<th>
@Html.DisplayNameFor(model => model.Image)
</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.Id)
</td>
<td>
@Html.DisplayFor(modelItem => item.Name)
</td>
<td>
@Html.DisplayFor(modelItem => item.EulaText)
</td>
<td>
@Html.DisplayFor(modelItem => item.DefaultEula)
</td>
<td>
@Html.DisplayFor(modelItem => item.Type)
</td>
<td>
@Html.DisplayFor(modelItem => item.CheckInEmail)
</td>
<td>
@Html.DisplayFor(modelItem => item.Image)
</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>
}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>