Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.17 KB | None | 0 0
  1. @model IEnumerable<MBS.BOL.Announcement>
  2.  
  3. @{
  4.     ViewBag.Title = "Index";
  5.     Layout = "~/Views/Shared/_Layout.cshtml";
  6. }
  7.  
  8. <section class="wrapper">
  9.     <div class="row">
  10.         <div class="col-lg-12">
  11.             <h3 class="page-header"><i class="fa fa-th-list"></i> Lista ogłoszeń</h3>
  12.             <ol class="breadcrumb">
  13.                 <li><i class="fa fa-home"></i><a href="@Url.Action("Index", "Home")">Home</a></li>
  14.                 <li><i class="fa fa-file"></i><a href=" @Url.Action("Index", "Announcements")">Ogłoszenia</a></li>
  15.             </ol>
  16.         </div>
  17.     </div>
  18.     @Html.ActionLink("Create New", "Create", "Announcements")
  19.     <!-- page start-->
  20.     <div class="row">
  21.         <div class="col-lg-12">
  22.             <section class="panel">
  23.                
  24.                         <div class="col-xs-6">
  25.                             <input type="text" class="form-control" id="inputAnnounce" onkeyup="searchingAnnounce()" placeholder="Wyszukaj po tytule...">
  26.                         </div>
  27.                         @Html.ActionLink("Utwórz nowe", "Create", "Announcements", new { @class = "btn btn-default" })
  28.                  
  29.                 <table id="tableAnnounce" class="table table-advance table-hover">
  30.                     <tbody>
  31.                         <tr>
  32.                             <th>
  33.                                 <i class="icon_key_alt"></i>
  34.                                Tytuł
  35.                             </th>
  36.                             <th>
  37.                                 <i class="icon_calendar"></i>
  38.                                 Wyświetlaj od
  39.                             </th>
  40.                             <th>
  41.                                 <i class="icon_calendar"></i>
  42.                                Wyświetlaj do
  43.                             </th>
  44.                             <th></th>
  45.                         </tr>
  46.  
  47.                         @foreach (var item in Model)
  48.                         {
  49.                             <tr>
  50.                                 <td>
  51.                                     @Html.DisplayFor(modelItem => item.Name)
  52.                                 </td>
  53.                                 <td>
  54.                                     @Html.DisplayFor(modelItem => item.AddDate)
  55.                                 </td>
  56.                                 <td>
  57.                                     @Html.DisplayFor(modelItem => item.EndDate)
  58.                                 </td>
  59.                                 <td class="btn-group">
  60.                                     @Html.ActionLink("Edytuj", "Edit", new { id = item.Id }, new { @class= "btn btn-success" })
  61.                                     @Html.ActionLink("Szczegóły", "Details", new { id = item.Id }, new { @class = "btn btn-primary" })
  62.                                     @Html.ActionLink("Usuń", "Delete", new { id = item.Id }, new { @class = "btn btn-danger" })
  63.                                 </td>
  64.                             </tr>
  65.                             @Html.HiddenFor(id => item.Id)
  66.                         }
  67.                     </tbody>
  68.                 </table>
  69.             </section>
  70.         </div>
  71.     </div>
  72. </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement