Details.cshtml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. @using CD67.FicheCollege.MVC.Models
  2. @model ActionClasViewModel
  3. @{
  4. ViewBag.Title = "Details";
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. ActionCLAS actionClas = Model.Obj;
  7. }
  8. <h1>
  9. Actions éducatives, sportives et culturelles
  10. <br /><span>du @actionClas.College.Libelle</span>
  11. </h1>
  12. <fieldset>
  13. <legend>
  14. Actions CLAS
  15. @if (Model.Acces == ModeAcces.Lecture)
  16. {
  17. <div class="pull-right">
  18. @Html.ActionLink("Modifier", "Edit", "ActionsCLAS", new { Id = actionClas.College_Id }, new { @class = "btn btn-default" })
  19. </div>
  20. }
  21. </legend>
  22. <dl class="dl-horizontal">
  23. <dt>
  24. @Html.DisplayNameFor(model => actionClas.Action)
  25. </dt>
  26. <dd>
  27. @Html.DisplayFor(model => actionClas.Action)
  28. </dd>
  29. <dt>
  30. @Html.DisplayNameFor(model => actionClas.Commentaire)
  31. </dt>
  32. <dd style="white-space: pre-line;">@Html.DisplayFor(model => actionClas.Commentaire)</dd>
  33. </dl>
  34. </fieldset>