Details.cshtml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. @using CD67.FicheCollege.MVC.Models
  2. @model IdentiteViewModel
  3. @{
  4. ViewBag.Title = "Details";
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. Identite identite = Model.Obj;
  7. }
  8. <h1>
  9. Indentité
  10. <br /><span>du @identite.College.Libelle</span>
  11. </h1>
  12. <fieldset>
  13. <legend>
  14. Les contacts
  15. @if (Model.Acces == ModeAcces.Lecture)
  16. {
  17. <div class="pull-right">
  18. @Html.ActionLink("Modifier", "Edit", "Identites", new { Id = identite.College.Id }, new { @class = "btn btn-default" })
  19. </div>
  20. }
  21. </legend>
  22. @if (Model.Contacts.Count == 0)
  23. {
  24. <text>Aucun contact défini</text>
  25. }
  26. else
  27. {
  28. <div class="flex-list">
  29. @foreach (var item in Model.Contacts)
  30. {
  31. <div style="width:400px !important">
  32. <div class="panel panel-default" style="overflow: hidden;">
  33. <div class="panel-heading clearfix">
  34. <h4 class="panel-title pull-left" style="padding-top: 7.5px;">
  35. <i class="fa fa-user color1" aria-hidden="true"></i>
  36. @Html.DisplayFor(model => item.Role)
  37. </h4>
  38. </div>
  39. <div class="panel-body" style="text-align: center;">
  40. <b>@Html.DisplayFor(model => item.Prenom) @Html.DisplayFor(model => item.Nom)</b><br />
  41. @Html.DisplayFor(model => item.Structure)<br />
  42. @Html.DisplayFor(model => item.Email)<br />
  43. Tel : @Html.DisplayFor(model => item.Tel)<br />
  44. </div>
  45. </div>
  46. </div>
  47. }
  48. </div>
  49. }
  50. </fieldset>