root/trunk/Wierszowki/Wierszowki.Web/Views/Author/Index.aspx @ 772

Wersja 752, 1.3 KB (wprowadzona przez marek, 17 years temu)

wiersz

Line 
1<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<List<Wierszowki.Core.Linq.Author>>" %>
2
3<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
4        Lista autorów
5</asp:Content>
6
7<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
8
9    <h2>Lista autorów</h2>
10   
11    <table>
12        <tr>
13            <th></th>
14            <th>
15                Imiê
16            </th>
17            <th>
18                Nazwisko
19            </th>
20            <th>
21                Zatrudnienie
22            </th>
23        </tr>
24
25    <% foreach (var item in Model) { %>
26   
27        <tr>
28            <td>
29                <%= Html.ActionLink("Edycja", "Edit", new { id=item.Id }) %>
30            </td>
31            <td>
32                <%= Html.Encode(item.FirstName) %>
33            </td>
34            <td>
35                <%= Html.Encode(item.LastName) %>
36            </td>
37            <td>
38                <%= Html.Encode(item.EmploymentType.Name) %>
39            </td>
40        </tr>
41   
42    <% } %>
43
44    </table>
45   
46    <p>
47        <%= Html.ActionLink("Dodaj autora", "Create") %>
48    </p>
49    <p>
50        <%=Html.ActionLink("Powrót", "Index", "Home") %>
51    </p>
52
53</asp:Content>
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.