Advertisement
Guest User

Untitled

a guest
Mar 9th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.65 KB | None | 0 0
  1. @model Vjezba.Web.Models.Mock.Company
  2. @{
  3.     ViewBag.Title = "Detalji kompanije";
  4. }
  5.  
  6. <ol class="breadcrumb">
  7.     <li>@Html.ActionLink("Home", "Index", "Home")</li>
  8.     <li>@Html.ActionLink("Pregled kompanija", "Index")</li>
  9.     <li class="active">Detalji o kompaniji</li>
  10. </ol>
  11.  
  12. <h2>Pregled detalja kompanije</h2>
  13. @if (Model == null)
  14. {
  15.     <div class="alert alert-danger" role="alert">Ne postoji odabrana kompanija!</div>
  16. }
  17. else
  18. {
  19.     <table class="table table-condensed">
  20.         <tbody>
  21.             <tr>
  22.                 <th>ID</th>
  23.                 <td>@Model.ID</td>
  24.             </tr>
  25.             <tr>
  26.                 <th>Naziv</th>
  27.                 <td>@Model.Name</td>
  28.             </tr>
  29.             <tr>
  30.                 <th>Adresa</th>
  31.                 <td>@Model.Address</td>
  32.             </tr>
  33.             <tr>
  34.                 <th>Email</th>
  35.                 <td>@Model.Email</td>
  36.             </tr>
  37.             <tr>
  38.                 <th>City</th>
  39.                 <td>
  40.                     <a href="#" class="clientPopover">@Model.City.Name</a>
  41.                     <div id="cityDetail" class="hidden">
  42.                         @Html.Action("DetailsPartial", "City", new {id = Model.City.ID, area = "Admin" })
  43.                     </div>
  44.                 </td>
  45.         </tbody>
  46.     </table>
  47.  
  48. @Html.ActionLink("Edit", "Edit", "Company", new { id = Model.ID }, new { @class = "btn btn-success" })
  49. }
  50.  
  51. @section scripts{
  52.     <script>
  53.     $(".clientPopover").popover({
  54.         html: true,
  55.         trigger: 'hover',
  56.         content: function()
  57.         {
  58.             return $('#cityDetail').html();
  59.         }
  60.     });
  61. </script>
  62.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement