Skip to content

Commit 3145428

Browse files
Removed Razor Unnecessary Code and Added DataTables Bootstrap 4 Styles
1 parent 81c9011 commit 3145428

File tree

1 file changed

+34
-46
lines changed
  • src/jQueryDatatableServerSideNetCore22/Views/TestRegisters

1 file changed

+34
-46
lines changed

src/jQueryDatatableServerSideNetCore22/Views/TestRegisters/Index.cshtml

Lines changed: 34 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -9,52 +9,39 @@
99
<div class="col-md-12">
1010
<table id="test-registers" class="table">
1111
<thead>
12-
<tr>
13-
<th>
14-
@Html.DisplayNameFor(model => model.Id)
15-
</th>
16-
<th>
17-
@Html.DisplayNameFor(model => model.Name)
18-
</th>
19-
<th>
20-
@Html.DisplayNameFor(model => model.FirstSurname)
21-
</th>
22-
<th>
23-
@Html.DisplayNameFor(model => model.SecondSurname)
24-
</th>
25-
<th>
26-
@Html.DisplayNameFor(model => model.Street)
27-
</th>
28-
<th>
29-
@Html.DisplayNameFor(model => model.Phone)
30-
</th>
31-
<th>
32-
@Html.DisplayNameFor(model => model.ZipCode)
33-
</th>
34-
<th>
35-
@Html.DisplayNameFor(model => model.Country)
36-
</th>
37-
<th>
38-
@Html.DisplayNameFor(model => model.Notes)
39-
</th>
40-
<th>
41-
@Html.DisplayNameFor(model => model.CreationDate)
42-
</th>
43-
<th></th>
44-
</tr>
45-
@*<tr>
46-
<th></th>
47-
<th></th>
48-
<th></th>
49-
<th></th>
50-
<th></th>
51-
<th></th>
52-
<th></th>
53-
<th></th>
54-
<th></th>
55-
<th></th>
56-
<th></th>
57-
</tr>*@
12+
<tr>
13+
<th>
14+
@Html.DisplayNameFor(model => model.Id)
15+
</th>
16+
<th>
17+
@Html.DisplayNameFor(model => model.Name)
18+
</th>
19+
<th>
20+
@Html.DisplayNameFor(model => model.FirstSurname)
21+
</th>
22+
<th>
23+
@Html.DisplayNameFor(model => model.SecondSurname)
24+
</th>
25+
<th>
26+
@Html.DisplayNameFor(model => model.Street)
27+
</th>
28+
<th>
29+
@Html.DisplayNameFor(model => model.Phone)
30+
</th>
31+
<th>
32+
@Html.DisplayNameFor(model => model.ZipCode)
33+
</th>
34+
<th>
35+
@Html.DisplayNameFor(model => model.Country)
36+
</th>
37+
<th>
38+
@Html.DisplayNameFor(model => model.Notes)
39+
</th>
40+
<th>
41+
@Html.DisplayNameFor(model => model.CreationDate)
42+
</th>
43+
<th></th>
44+
</tr>
5845
</thead>
5946
</table>
6047
</div>
@@ -68,6 +55,7 @@
6855
<script src="~/lib/momentjs/moment.min.js" asp-append-version="true"></script>
6956
<script src="~/lib/datatables/js/jquery.dataTables.min.js" asp-append-version="true"></script>
7057
<script src="~/lib/datetime-moment/datetime-moment.js" asp-append-version="true"></script>
58+
<script src="~/lib/datatables/js/dataTables.bootstrap4.js" asp-append-version="true"></script>
7159

7260
<script src="~/js/app.js" asp-append-version="true"></script>
7361
}

0 commit comments

Comments
 (0)