Type.cshtml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @using CD67.FicheCollege.MVC.Models
  2. @model CollegeViewModel
  3. @{
  4. ViewBag.Title = "Restauration " + Model.Annee_Lib;
  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. <div>
  11. <a href=@Url.Action("Index", "Restauration", new { annee_id = college.Annee_Id })>
  12. <i class="fa fa-list-ul"></i> Retour à l'index
  13. </a>
  14. </div>
  15. </header>
  16. @using (Html.BeginForm())
  17. {
  18. @Html.AntiForgeryToken()
  19. <div class="form-horizontal">
  20. @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  21. @Html.HiddenFor(model => college.Id)
  22. @Html.HiddenFor(model => college.Annee_Id)
  23. @Html.HiddenFor(model => college.CodeRne)
  24. @Html.HiddenFor(model => college.Libelle)
  25. @Html.HiddenFor(model => college.TokenId)
  26. @Html.HiddenFor(model => college.Adresse)
  27. @Html.HiddenFor(model => college.Code_Postal)
  28. @Html.HiddenFor(model => college.TypeCollege_Id)
  29. @Html.HiddenFor(model => college.Commune_Insee)
  30. @Html.HiddenFor(model => college.Commune)
  31. @Html.HiddenFor(model => college.Canton)
  32. @Html.HiddenFor(model => college.Territoire_Id)
  33. @Html.HiddenFor(model => college.TAD)
  34. @Html.HiddenFor(model => college.CDC)
  35. @Html.HiddenFor(model => college.Tel)
  36. @Html.HiddenFor(model => college.Fax)
  37. @Html.HiddenFor(model => college.Email)
  38. @Html.HiddenFor(model => college.PrincipalSid)
  39. @Html.HiddenFor(model => college.AdjointSid)
  40. @Html.HiddenFor(model => college.Gestionnaire1Sid)
  41. @Html.HiddenFor(model => college.Gestionnaire2Sid)
  42. <div class="form-group">
  43. @Html.LabelFor(model => college.CodeRne, htmlAttributes: new { @class = "control-label col-md-2" })
  44. <div class="col-md-10">
  45. @Html.DisplayFor(model => college.CodeRne, new { htmlAttributes = new { @class = "form-control" } })
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. @Html.LabelFor(model => college.Libelle, htmlAttributes: new { @class = "control-label col-md-2" })
  50. <div class="col-md-10">
  51. @Html.DisplayFor(model => college.Libelle, new { htmlAttributes = new { @class = "form-control" } })
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. @Html.LabelFor(model => college.RestaurationType_Id, htmlAttributes: new { @class = "control-label col-md-2" })
  56. <div class="col-md-10">
  57. @Html.DropDownListFor(model => college.RestaurationType_Id, Model.Sel_TypesRestauration, htmlAttributes: new { @class = "form-control" })
  58. @Html.ValidationMessageFor(model => college.RestaurationType_Id, "", new { @class = "text-danger" })
  59. </div>
  60. </div>
  61. <div class="form-group btn-bar">
  62. <a href=@Url.Action("Index", "Restauration", new { annee_id = college.Annee_Id }) class="btn btn-default">Annuler</a>
  63. <input type="submit" value="Enregistrer" class="btn btn-primary" />
  64. </div>
  65. </div>
  66. }
  67. @section Scripts {
  68. }