Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model IEnumerable<MBS.BOL.Announcement>
- @{
- ViewBag.Title = "Index";
- Layout = "~/Views/Shared/_Layout.cshtml";
- }
- <section class="wrapper">
- <div class="row">
- <div class="col-lg-12">
- <h3 class="page-header"><i class="fa fa-th-list"></i> Lista ogłoszeń</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>
- </ol>
- </div>
- </div>
- @Html.ActionLink("Create New", "Create", "Announcements")
- <!-- page start-->
- <div class="row">
- <div class="col-lg-12">
- <section class="panel">
- <div class="col-xs-6">
- <input type="text" class="form-control" id="inputAnnounce" onkeyup="searchingAnnounce()" placeholder="Wyszukaj po tytule...">
- </div>
- @Html.ActionLink("Utwórz nowe", "Create", "Announcements", new { @class = "btn btn-default" })
- <table id="tableAnnounce" class="table table-advance table-hover">
- <tbody>
- <tr>
- <th>
- <i class="icon_key_alt"></i>
- Tytuł
- </th>
- <th>
- <i class="icon_calendar"></i>
- Wyświetlaj od
- </th>
- <th>
- <i class="icon_calendar"></i>
- Wyświetlaj do
- </th>
- <th></th>
- </tr>
- @foreach (var item in Model)
- {
- <tr>
- <td>
- @Html.DisplayFor(modelItem => item.Name)
- </td>
- <td>
- @Html.DisplayFor(modelItem => item.AddDate)
- </td>
- <td>
- @Html.DisplayFor(modelItem => item.EndDate)
- </td>
- <td class="btn-group">
- @Html.ActionLink("Edytuj", "Edit", new { id = item.Id }, new { @class= "btn btn-success" })
- @Html.ActionLink("Szczegóły", "Details", new { id = item.Id }, new { @class = "btn btn-primary" })
- @Html.ActionLink("Usuń", "Delete", new { id = item.Id }, new { @class = "btn btn-danger" })
- </td>
- </tr>
- @Html.HiddenFor(id => item.Id)
- }
- </tbody>
- </table>
- </section>
- </div>
- </div>
- </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement