Index.cshtml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @model IEnumerable<CD67.FicheCollege.Entity.College>
  2. @{
  3. ViewBag.Title = "Liste";
  4. Layout = "~/Views/Shared/_Layout.cshtml";
  5. }
  6. <h2>Actions</h2>
  7. <p>
  8. Gestion des actions éducatives, sportives et Culturelles
  9. <br /><br />
  10. @Model.Count(i => i.Actions_CLAS.Action == true) collège(s) avec une action CLAS
  11. </p>
  12. <table class="table">
  13. <tr>
  14. <th>
  15. @Html.DisplayNameFor(model => model.Id)
  16. </th>
  17. <th>
  18. @Html.DisplayNameFor(model => model.Libelle)
  19. </th>
  20. <th>
  21. CLAS
  22. </th>
  23. <th>
  24. Commentaire CLAS
  25. </th>
  26. <th></th>
  27. </tr>
  28. @foreach (var item in Model)
  29. {
  30. <tr>
  31. <td>
  32. @Html.DisplayFor(modelItem => item.Id)
  33. </td>
  34. <td>
  35. @Html.DisplayFor(modelItem => item.Libelle)
  36. </td>
  37. <td>
  38. @Html.DisplayFor(modelItem => item.Actions_CLAS.Action)
  39. </td>
  40. <td style="white-space: pre-line;">@Html.DisplayFor(modelItem => item.Actions_CLAS.Commentaire)</td>
  41. <td>
  42. @Html.ActionLink("Modifier", "Details", "ActionsCLAS", new { id = item.Id }, null)
  43. </td>
  44. </tr>
  45. }
  46. </table>