Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model MBS.UI.ViewModels.AnnouncementFormViewModel
- @{
- ViewBag.Title = "Create";
- Layout = "~/Views/Shared/_Layout.cshtml";
- }
- <section class="wrapper">
- <div class="row">
- <div class="col-lg-12">
- <h3 class="page-header"><i class="fa fa fa-plus"></i> Dodaj ogłoszenie</h3>
- <ol class="breadcrumb">
- <li><i class="fa fa-home"></i><a href="@Url.Action("Index", "Home")">Home</a></li>
- <li><i class="fa fa-file"></i><a href="@Url.Action("Index", "Announcements")">Ogłoszenia</a></li>
- <li><i class="fa fa-plus"></i>Dodaj ogłoszenie</li>
- </ol>
- </div>
- </div>
- <div class="row">
- <div class="col-lg-12">
- <section class="panel">
- <header class="panel-heading">
- Dodaj ogłoszenie
- </header>
- <div class="panel-body">
- @using (Html.BeginForm())
- {
- @Html.AntiForgeryToken()
- <div class="form-horizontal">
- <hr />
- @Html.ValidationSummary(true, "", new { @class = "text-danger" })
- <div class="form-group">
- <label class="col-sm-2 control-label">Tytuł <span class="required">*</span></label>
- <div class="col-sm-8">
- @Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">Wyświetlaj do <span class="required">*</span></label>
- <div class="col-sm-4">
- @Html.EditorFor(model => model.EndDate, new { htmlAttributes = new { type = "date", min = "01.01.2017", @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.EndDate, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">Wybierz kioski <span class="required">*</span></label>
- <div class="col-sm-4">
- @Html.ListBoxFor(model => model.SelectedBooths, new MultiSelectList(ViewBag.BoothsList, "Value", "text"), new { id = "filteringBooths", multiple = "multiple" })
- @Html.ValidationMessageFor(model => model.SelectedBooths, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">Dodaj film </label>
- <div class="col-sm-4">
- <label class="btn btn-success btn-file">
- Wybierz plik <input type="file" style="display: none;">
- </label>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-sm-2">Treść ogłoszenia:</label>
- <div class="col-sm-8">
- @Html.Raw(@Html.TextAreaFor(model => model.Content, new { @class = "ckeditor" }))
- @Html.ValidationMessageFor(model => model.Content, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <input type="submit" value="Utwórz" class="btn btn-success" />
- @Html.ActionLink("Wróć do listy ogłoszeń", "Index", null, new { @class = "btn btn-primary" })
- </div>
- </div>
- </div>
- }
- </div>
- </section>
- </div>
- </div>
- </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement