Type.cshtml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @using CD67.FicheCollege.MVC.Models
  2. @model CollegeViewModel
  3. @{
  4. ViewBag.Title = Model.Acces.ToString();
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. College college = Model.Obj;
  7. }
  8. <header>
  9. <h2>Type de restauration pour un collège</h2>
  10. </header>
  11. @using (Html.BeginForm())
  12. {
  13. @Html.AntiForgeryToken()
  14. <div class="form-horizontal">
  15. <h4>Type de restauration</h4>
  16. <hr />
  17. @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  18. @Html.HiddenFor(model => college.Id)
  19. @Html.HiddenFor(model => college.Annee_Id)
  20. @Html.HiddenFor(model => college.CodeRne)
  21. @Html.HiddenFor(model => college.Libelle)
  22. @Html.HiddenFor(model => college.TokenId)
  23. @Html.HiddenFor(model => college.Adresse)
  24. @Html.HiddenFor(model => college.Code_Postal)
  25. @Html.HiddenFor(model => college.TypeCollege_Id)
  26. @Html.HiddenFor(model => college.Commune_Insee)
  27. @Html.HiddenFor(model => college.Commune)
  28. @Html.HiddenFor(model => college.Canton)
  29. @Html.HiddenFor(model => college.Territoire_Id)
  30. @Html.HiddenFor(model => college.TAD)
  31. @Html.HiddenFor(model => college.CDC)
  32. @Html.HiddenFor(model => college.Tel)
  33. @Html.HiddenFor(model => college.Fax)
  34. @Html.HiddenFor(model => college.Email)
  35. @Html.HiddenFor(model => college.PrincipalSid)
  36. @Html.HiddenFor(model => college.AdjointSid)
  37. @Html.HiddenFor(model => college.Gestionnaire1Sid)
  38. @Html.HiddenFor(model => college.Gestionnaire2Sid)
  39. <div class="form-group">
  40. @Html.LabelFor(model => college.CodeRne, htmlAttributes: new { @class = "control-label col-md-2" })
  41. <div class="col-md-10">
  42. @Html.DisplayFor(model => college.CodeRne, new { htmlAttributes = new { @class = "form-control" } })
  43. </div>
  44. </div>
  45. <div class="form-group">
  46. @Html.LabelFor(model => college.Libelle, htmlAttributes: new { @class = "control-label col-md-2" })
  47. <div class="col-md-10">
  48. @Html.DisplayFor(model => college.Libelle, new { htmlAttributes = new { @class = "form-control" } })
  49. </div>
  50. </div>
  51. <div class="form-group">
  52. @Html.LabelFor(model => college.RestaurationType_Id, htmlAttributes: new { @class = "control-label col-md-2" })
  53. <div class="col-md-10">
  54. @Html.DropDownListFor(model => college.RestaurationType_Id, Model.Sel_TypesRestauration, htmlAttributes: new { @class = "form-control" })
  55. @Html.ValidationMessageFor(model => college.RestaurationType_Id, "", new { @class = "text-danger" })
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <span style="margin-right:20px;">
  60. <input type="submit" value="Enregistrer" class="btn btn-default" />
  61. </span>
  62. <a href="@Url.Action("Index", "Restauration", new { annee_id = college.Annee_Id })">
  63. <span title="Annuler" style="vertical-align: middle" aria-hidden="true">Annuler</span>
  64. </a>
  65. </div>
  66. </div>
  67. }
  68. @section Scripts {
  69. }