Translation and fix for editing project task
[wsti_pai.git] / Projects / Views / ProjectTasks / Index.cshtml
1 @model IEnumerable<Projects.Models.ProjectTask>
2
3 @{
4     ViewBag.Title = "Lista zadań";
5 }
6
7 <h2>@ViewBag.Title</h2>
8
9 <p>
10     @Html.ActionLink("Stwórz nowe zadanie", "Create")
11 </p>
12 <table class="table">
13     <tr>
14         <th>
15             @Html.DisplayNameFor(model => model.name)
16         </th>
17         <th>
18             @Html.DisplayNameFor(model => model.description)
19         </th>
20         <th>
21             @Html.DisplayNameFor(model => model.created_at)
22         </th>
23         <th>
24             @Html.DisplayNameFor(model => model.updated_at)
25         </th>
26         <th>
27             @Html.DisplayNameFor(model => model.Project.name)
28         </th>
29         <th>
30             @Html.DisplayNameFor(model => model.TaskStatus.status)
31         </th>
32         <th>
33             @Html.DisplayNameFor(model => model.User.login)
34         </th>
35         <th></th>
36     </tr>
37
38 @foreach (var item in Model) {
39     <tr>
40         <td>
41             @Html.DisplayFor(modelItem => item.name)
42         </td>
43         <td>
44             @Html.DisplayFor(modelItem => item.description)
45         </td>
46         <td>
47             @Html.DisplayFor(modelItem => item.created_at)
48         </td>
49         <td>
50             @Html.DisplayFor(modelItem => item.updated_at)
51         </td>
52         <td>
53             @Html.DisplayFor(modelItem => item.Project.name)
54         </td>
55         <td>
56             @Html.DisplayFor(modelItem => item.TaskStatus.status)
57         </td>
58         <td>
59             @Html.DisplayFor(modelItem => item.User.login)
60         </td>
61         <td>
62             @Html.ActionLink("Edycja", "Edit", new { id=item.id }) |
63             @Html.ActionLink("Szczegóły", "Details", new { id=item.id }) |
64             @Html.ActionLink("Usuń", "Delete", new { id=item.id })
65         </td>
66     </tr>
67 }
68
69 </table>