Edit.cshtml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. @model Hospital.Model.Models.ReportInnerAnnounce
  2. @section head {
  3. <link href="~/Content/select2.css?v=@Hospital.Core.Utility.AppVersion(true)" rel="stylesheet" />
  4. <link href="~/Content/select2-bootstrap.css?v=@Hospital.Core.Utility.AppVersion(true)" rel="stylesheet" />
  5. <style type="text/css">
  6. .ui-dialog {
  7. z-index: 811250;
  8. }
  9. </style>
  10. }
  11. <div class="page-header">
  12. <h3>
  13. @if (ViewBag.Logo != null)
  14. {
  15. <img src="@ViewBag.Logo" id="logoImg" style="margin:0px 5px 5px 0px;" />
  16. }
  17. <i class="fa fa-bullhorn"></i> 内部公告 <small>编辑</small>
  18. <a href="@Url.Action("Index", "InterAnnounce")" class='backbutton'><i class="icon-white fa fa-arrow-circle-left"></i>返回</a>
  19. </h3>
  20. </div>
  21. @using (Html.BeginForm(new { @returnUrl = Request.QueryString["returnUrl"] }))
  22. {
  23. <div class="form-horizontal">
  24. <div class="control-group">
  25. <label class="control-label" style="width:100px;">题目:</label>
  26. <div class="controls" style="margin-left:10px;">
  27. @Html.TextBoxFor(m => m.Title, new { @class = "input-xlarge ignore" })
  28. @Html.ValidationMessageFor(m => m.Title, "题目必填", new { @class = "help-inline" })
  29. </div>
  30. </div>
  31. <div class="control-group">
  32. <label class="control-label" style="width:100px;">分组:</label>
  33. <div class="controls ignore" style="margin-left:10px;">
  34. @Html.DropDownList("ClassId", "默认")
  35. </div>
  36. </div>
  37. <div class="control-group">
  38. <label class="control-label" style="width:100px;">内容:</label>
  39. <div class="controls" style="margin-left:10px;">
  40. @Html.EditorFor(m => m.Cont)
  41. @Html.ValidationMessageFor(model => model.Cont)
  42. </div>
  43. </div>
  44. <div class="form-actions">
  45. <button type="submit" class="btn btn-primary">提交</button>
  46. <button type="reset" class="btn">重置</button>
  47. <a class="btn btn-link" href="@Url.Action("Index", "InterAnnounce")">返回列表</a>
  48. </div>
  49. </div>
  50. @Html.HiddenFor(m=>m.IsTop)
  51. }
  52. @section scripts {
  53. <script src="~/Scripts/select2.min.js?v=@Hospital.Core.Utility.AppVersion(true)"></script>
  54. <script src="~/Scripts/select2_locale_zh-CN.js?v=@Hospital.Core.Utility.AppVersion(true)"></script>
  55. <script type="text/javascript">
  56. $('#ClassId').select2({ containerCssClass: 'span3', dropdownCssClass: 'hide-select2-search' });
  57. </script>
  58. }