Index.cshtml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @model IEnumerable<esoft_API.Models.Entities.Task>
  2. @{
  3. ViewBag.Title = "Index";
  4. }
  5. <h2>Index</h2>
  6. <p>
  7. @Html.ActionLink("Create New", "Create")
  8. </p>
  9. <table class="table">
  10. <tr>
  11. <th>
  12. @Html.DisplayNameFor(model => model.Title)
  13. </th>
  14. <th>
  15. @Html.DisplayNameFor(model => model.Description)
  16. </th>
  17. <th>
  18. @Html.DisplayNameFor(model => model.CreateDateTime)
  19. </th>
  20. <th>
  21. @Html.DisplayNameFor(model => model.Deadline)
  22. </th>
  23. <th>
  24. @Html.DisplayNameFor(model => model.Difficulty)
  25. </th>
  26. <th>
  27. @Html.DisplayNameFor(model => model.Time)
  28. </th>
  29. <th>
  30. @Html.DisplayNameFor(model => model.Status)
  31. </th>
  32. <th>
  33. @Html.DisplayNameFor(model => model.WorkType)
  34. </th>
  35. <th>
  36. @Html.DisplayNameFor(model => model.CompletedDateTime)
  37. </th>
  38. <th>
  39. @Html.DisplayNameFor(model => model.IsDeleted)
  40. </th>
  41. <th>
  42. @Html.DisplayNameFor(model => model.Executor.Grade)
  43. </th>
  44. <th></th>
  45. </tr>
  46. @foreach (var item in Model) {
  47. <tr>
  48. <td>
  49. @Html.DisplayFor(modelItem => item.Title)
  50. </td>
  51. <td>
  52. @Html.DisplayFor(modelItem => item.Description)
  53. </td>
  54. <td>
  55. @Html.DisplayFor(modelItem => item.CreateDateTime)
  56. </td>
  57. <td>
  58. @Html.DisplayFor(modelItem => item.Deadline)
  59. </td>
  60. <td>
  61. @Html.DisplayFor(modelItem => item.Difficulty)
  62. </td>
  63. <td>
  64. @Html.DisplayFor(modelItem => item.Time)
  65. </td>
  66. <td>
  67. @Html.DisplayFor(modelItem => item.Status)
  68. </td>
  69. <td>
  70. @Html.DisplayFor(modelItem => item.WorkType)
  71. </td>
  72. <td>
  73. @Html.DisplayFor(modelItem => item.CompletedDateTime)
  74. </td>
  75. <td>
  76. @Html.DisplayFor(modelItem => item.IsDeleted)
  77. </td>
  78. <td>
  79. @Html.DisplayFor(modelItem => item.Executor.Grade)
  80. </td>
  81. <td>
  82. @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
  83. @Html.ActionLink("Details", "Details", new { id=item.ID }) |
  84. @Html.ActionLink("Delete", "Delete", new { id=item.ID })
  85. </td>
  86. </tr>
  87. }
  88. </table>