Type.cshtml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  16. @Html.HiddenFor(model => college.Id)
  17. @Html.HiddenFor(model => college.Annee_Id)
  18. @Html.HiddenFor(model => college.CodeRne)
  19. @Html.HiddenFor(model => college.Libelle)
  20. @Html.HiddenFor(model => college.TokenId)
  21. @Html.HiddenFor(model => college.Adresse)
  22. @Html.HiddenFor(model => college.Code_Postal)
  23. @Html.HiddenFor(model => college.TypeCollege_Id)
  24. @Html.HiddenFor(model => college.Commune_Insee)
  25. @Html.HiddenFor(model => college.Commune)
  26. @Html.HiddenFor(model => college.Canton)
  27. @Html.HiddenFor(model => college.Territoire_Id)
  28. @Html.HiddenFor(model => college.TAD)
  29. @Html.HiddenFor(model => college.CDC)
  30. @Html.HiddenFor(model => college.Tel)
  31. @Html.HiddenFor(model => college.Fax)
  32. @Html.HiddenFor(model => college.Email)
  33. @Html.HiddenFor(model => college.PrincipalSid)
  34. @Html.HiddenFor(model => college.AdjointSid)
  35. @Html.HiddenFor(model => college.Gestionnaire1Sid)
  36. @Html.HiddenFor(model => college.Gestionnaire2Sid)
  37. <div class="form-group">
  38. @Html.LabelFor(model => college.CodeRne, htmlAttributes: new { @class = "control-label col-md-2" })
  39. <div class="col-md-10">
  40. @Html.DisplayFor(model => college.CodeRne, new { htmlAttributes = new { @class = "form-control" } })
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. @Html.LabelFor(model => college.Libelle, htmlAttributes: new { @class = "control-label col-md-2" })
  45. <div class="col-md-10">
  46. @Html.DisplayFor(model => college.Libelle, new { htmlAttributes = new { @class = "form-control" } })
  47. </div>
  48. </div>
  49. <div class="form-group">
  50. @Html.LabelFor(model => college.RestaurationType_Id, htmlAttributes: new { @class = "control-label col-md-2" })
  51. <div class="col-md-10">
  52. @Html.DropDownListFor(model => college.RestaurationType_Id, Model.Sel_TypesRestauration, htmlAttributes: new { @class = "form-control" })
  53. @Html.ValidationMessageFor(model => college.RestaurationType_Id, "", new { @class = "text-danger" })
  54. </div>
  55. </div>
  56. <div class="form-group btn-bar">
  57. <a href=@Url.Action("Index", "Restauration", new { annee_id = college.Annee_Id }) class="btn btn-default">Annuler</a>
  58. <input type="submit" value="Enregistrer" class="btn btn-primary" />
  59. </div>
  60. </div>
  61. }
  62. @section Scripts {
  63. }