Index.cshtml 1.4 KB

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