Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.56 KB | None | 0 0
  1. @model MBS.UI.ViewModels.AnnouncementFormViewModel
  2.  
  3. @{
  4. ViewBag.Title = "Create";
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. }
  7. <section class="wrapper">
  8. <div class="row">
  9. <div class="col-lg-12">
  10. <h3 class="page-header"><i class="fa fa fa-plus"></i> Dodaj ogłoszenie</h3>
  11. <ol class="breadcrumb">
  12. <li><i class="fa fa-home"></i><a href="@Url.Action("Index", "Home")">Home</a></li>
  13. <li><i class="fa fa-file"></i><a href="@Url.Action("Index", "Announcements")">Ogłoszenia</a></li>
  14. <li><i class="fa fa-plus"></i>Dodaj ogłoszenie</li>
  15. </ol>
  16. </div>
  17. </div>
  18. <div class="row">
  19. <div class="col-lg-12">
  20. <section class="panel">
  21. <header class="panel-heading">
  22. Dodaj ogłoszenie
  23. </header>
  24. <div class="panel-body">
  25. @using (Html.BeginForm())
  26. {
  27. @Html.AntiForgeryToken()
  28.  
  29. <div class="form-horizontal">
  30. <hr />
  31. @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  32. <div class="form-group">
  33. <label class="col-sm-2 control-label">Tytuł <span class="required">*</span></label>
  34. <div class="col-sm-8">
  35. @Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control" } })
  36. @Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" })
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label class="col-sm-2 control-label">Wyświetlaj do <span class="required">*</span></label>
  41. <div class="col-sm-4">
  42. @Html.EditorFor(model => model.EndDate, new { htmlAttributes = new { type = "date", min = "01.01.2017", @class = "form-control" } })
  43. @Html.ValidationMessageFor(model => model.EndDate, "", new { @class = "text-danger" })
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="col-sm-2 control-label">Wybierz kioski <span class="required">*</span></label>
  48. <div class="col-sm-4">
  49. @Html.ListBoxFor(model => model.SelectedBooths, new MultiSelectList(ViewBag.BoothsList, "Value", "text"), new { id = "filteringBooths", multiple = "multiple" })
  50. @Html.ValidationMessageFor(model => model.SelectedBooths, "", new { @class = "text-danger" })
  51. </div>
  52. </div>
  53.  
  54. <div class="form-group">
  55. <label class="col-sm-2 control-label">Dodaj film </label>
  56. <div class="col-sm-4">
  57. <label class="btn btn-success btn-file">
  58. Wybierz plik <input type="file" style="display: none;">
  59. </label>
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label class="control-label col-sm-2">Treść ogłoszenia:</label>
  64. <div class="col-sm-8">
  65. @Html.Raw(@Html.TextAreaFor(model => model.Content, new { @class = "ckeditor" }))
  66. @Html.ValidationMessageFor(model => model.Content, "", new { @class = "text-danger" })
  67. </div>
  68. </div>
  69. <div class="form-group">
  70. <div class="col-md-offset-2 col-md-10">
  71. <input type="submit" value="Utwórz" class="btn btn-success" />
  72. @Html.ActionLink("Wróć do listy ogłoszeń", "Index", null, new { @class = "btn btn-primary" })
  73. </div>
  74. </div>
  75. </div>
  76. }
  77. </div>
  78.  
  79. </section>
  80. </div>
  81. </div>
  82. </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement