source: PostgreSqlDotnetCore/Views/Customer/Index.cshtml@ 8f8226c

main
Last change on this file since 8f8226c was 2aea0fd, checked in by ElenaMoskova <elena.moskova99@…>, 4 months ago

init commit Elena

  • Property mode set to 100644
File size: 2.2 KB
Line 
1@model IEnumerable<PostgreSqlDotnetCore.Models.UsersClass>
2
3@{
4 ViewBag.Title = "Customer";
5}
6
7<h2>Customer</h2>
8@{
9 if (Model == null)
10 {
11 <b>
12 <br />
13 <h4>Not Authorize</h4>
14 </b>
15 }
16 else
17 {
18
19 <p>
20 @Html.ActionLink("Create New", "Create")
21 </p>
22 <table class="table">
23 <tr>
24 <th>
25 @Html.DisplayNameFor(model => model.name)
26 </th>
27 <th>
28 @Html.DisplayNameFor(model => model.lastname)
29 </th>
30 <th>
31 @Html.DisplayNameFor(model => model.email)
32 </th>
33 <th>
34 @Html.DisplayNameFor(model => model.number)
35 </th>
36 <th>
37 @Html.DisplayNameFor(model => model.role_id)
38 </th>
39 <th>
40 @Html.DisplayNameFor(model => model.jobs_id)
41 </th>
42 <th></th>
43 </tr>
44
45 @foreach (var item in Model)
46 {
47 <tr>
48 <td>
49 @Html.DisplayFor(modelItem => item.name)
50 </td>
51 <td>
52 @Html.DisplayFor(modelItem => item.lastname)
53 </td>
54
55 <td>
56 @Html.DisplayFor(modelItem => item.email)
57 </td>
58 <td>
59 @Html.DisplayFor(modelItem => item.number)
60 </td>
61 <td>
62 @Html.DisplayFor(modelItem => item.GetRoleName)
63 </td>
64 <td>
65 @Html.DisplayFor(modelItem => item.GetJobName)
66 </td>
67 <td>
68 @Html.ActionLink("Edit", "Edit", new { id = item.id }) |
69 @Html.ActionLink("Details", "Details", new { id = item.id }) |
70 @Html.ActionLink("Delete", "Delete", new { id = item.id })
71 </td>
72 </tr>
73 }
74
75 </table>
76 }
77}
Note: See TracBrowser for help on using the repository browser.