public ActionResult Create()
{
ViewBag.project_id = new SelectList(db.Projects, "id", "name");
- ViewBag.task_status_id = new SelectList(db.TaskStatuses, "int", "status");
+ ViewBag.task_status_id = new SelectList(db.TaskStatuses, "id", "status");
ViewBag.user_id = new SelectList(db.Users, "id", "login");
return View();
}
}
ViewBag.project_id = new SelectList(db.Projects, "id", "name", projectTask.project_id);
- ViewBag.task_status_id = new SelectList(db.TaskStatuses, "int", "status", projectTask.task_status_id);
+ ViewBag.task_status_id = new SelectList(db.TaskStatuses, "id", "status", projectTask.task_status_id);
ViewBag.user_id = new SelectList(db.Users, "id", "login", projectTask.user_id);
return View(projectTask);
}
return HttpNotFound();
}
ViewBag.project_id = new SelectList(db.Projects, "id", "name", projectTask.project_id);
- ViewBag.task_status_id = new SelectList(db.TaskStatuses, "int", "status", projectTask.task_status_id);
+ ViewBag.task_status_id = new SelectList(db.TaskStatuses, "id", "status", projectTask.task_status_id);
ViewBag.user_id = new SelectList(db.Users, "id", "login", projectTask.user_id);
return View(projectTask);
}
return RedirectToAction("Index");
}
ViewBag.project_id = new SelectList(db.Projects, "id", "name", projectTask.project_id);
- ViewBag.task_status_id = new SelectList(db.TaskStatuses, "int", "status", projectTask.task_status_id);
+ ViewBag.task_status_id = new SelectList(db.TaskStatuses, "id", "status", projectTask.task_status_id);
ViewBag.user_id = new SelectList(db.Users, "id", "login", projectTask.user_id);
return View(projectTask);
}
public class ProjectMetadata
{
[StringLength(50)]
- [Display(Name = "Name")]
+ [Display(Name = "Nazwa")]
public string name;
- [Display(Name = "Description")]
+ [Display(Name = "Opis")]
public string description;
- [Display(Name = "Creation Date")]
+ [Display(Name = "Data utworzenia")]
public Nullable<System.DateTime> created_at;
- [Display(Name = "Modification Date")]
+ [Display(Name = "Data edycji")]
public Nullable<System.DateTime> updated_at;
+
+ [Display(Name = "Właściciel projektu")]
+ public Nullable<int> user_id;
}
public class ProjectTaskMetadata
{
[StringLength(50)]
- [Display(Name = "Name")]
+ [Display(Name = "Nazwa")]
public string name;
- [Display(Name = "Description")]
+ [Display(Name = "Opis")]
public string description;
- [Display(Name = "Creation Date")]
+ [Display(Name = "Data utworzenia")]
public Nullable<System.DateTime> created_at;
- [Display(Name = "Modification Date")]
+ [Display(Name = "Data edycji")]
public Nullable<System.DateTime> updated_at;
+
+ [Display(Name = "Właściciel zadania")]
+ public Nullable<int> user_id;
}
public class UserMetadata
{
- [Display(Name = "Login")]
+ [Display(Name = "Nazwa użytkownika")]
public string login;
- [Display(Name = "Password")]
+ [Display(Name = "Hasło")]
public string password;
}
public class TaskStatusMetadata
{
- [Display(Name = "Status Name")]
+ [Display(Name = "Status")]
public string status;
}
ViewBag.Title = "Create";
}
-<h2>Create</h2>
+<h2>@ViewBag.Title</h2>
@using (Html.BeginForm())
@Html.AntiForgeryToken()
<div class="form-horizontal">
- <h4>ProjectTask</h4>
+ <h4>Zadanie</h4>
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<div class="form-group">
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
- <input type="submit" value="Create" class="btn btn-default" />
+ <input type="submit" value="Stwórz" class="btn btn-default" />
</div>
</div>
</div>
}
<div>
- @Html.ActionLink("Back to List", "Index")
+ @Html.ActionLink("Powrót do listy", "Index")
</div>
@section Scripts {
@model Projects.Models.ProjectTask
@{
- ViewBag.Title = "Delete";
+ ViewBag.Title = "Usunięcie zadania";
}
-<h2>Delete</h2>
+<h2>@ViewBag.Title</h2>
-<h3>Are you sure you want to delete this?</h3>
+<h3>Czy na pewno chcesz to usunąć?</h3>
<div>
- <h4>ProjectTask</h4>
+ <h4>Zadanie</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.AntiForgeryToken()
<div class="form-actions no-color">
- <input type="submit" value="Delete" class="btn btn-default" /> |
- @Html.ActionLink("Back to List", "Index")
+ <input type="submit" value="Usuń" class="btn btn-default" /> |
+ @Html.ActionLink("Powrót do listy", "Index")
</div>
}
</div>
@model Projects.Models.ProjectTask
@{
- ViewBag.Title = "Details";
+ ViewBag.Title = "Szczegóły zadania";
}
-<h2>Details</h2>
+<h2>@ViewBag.Title</h2>
<div>
- <h4>ProjectTask</h4>
+ <h4>Zadanie</h4>
<hr />
<dl class="dl-horizontal">
<dt>
</dl>
</div>
<p>
- @Html.ActionLink("Edit", "Edit", new { id = Model.id }) |
- @Html.ActionLink("Back to List", "Index")
+ @Html.ActionLink("Edytuj", "Edit", new { id = Model.id }) |
+ @Html.ActionLink("Powrót do listy", "Index")
</p>
@model Projects.Models.ProjectTask
@{
- ViewBag.Title = "Edit";
+ ViewBag.Title = "Edycja zadania";
}
-<h2>Edit</h2>
+<h2>@ViewBag.Title</h2>
@using (Html.BeginForm())
@Html.AntiForgeryToken()
<div class="form-horizontal">
- <h4>ProjectTask</h4>
+ <h4>Zadanie</h4>
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.HiddenFor(model => model.id)
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
- <input type="submit" value="Save" class="btn btn-default" />
+ <input type="submit" value="Zapisz" class="btn btn-default" />
</div>
</div>
</div>
}
<div>
- @Html.ActionLink("Back to List", "Index")
+ @Html.ActionLink("Powrót do listy", "Index")
</div>
@section Scripts {
@model IEnumerable<Projects.Models.ProjectTask>
@{
- ViewBag.Title = "Index";
+ ViewBag.Title = "Lista zadań";
}
-<h2>Index</h2>
+<h2>@ViewBag.Title</h2>
<p>
- @Html.ActionLink("Create New", "Create")
+ @Html.ActionLink("Stwórz nowe zadanie", "Create")
</p>
<table class="table">
<tr>
@Html.DisplayFor(modelItem => item.User.login)
</td>
<td>
- @Html.ActionLink("Edit", "Edit", new { id=item.id }) |
- @Html.ActionLink("Details", "Details", new { id=item.id }) |
- @Html.ActionLink("Delete", "Delete", new { id=item.id })
+ @Html.ActionLink("Edycja", "Edit", new { id=item.id }) |
+ @Html.ActionLink("Szczegóły", "Details", new { id=item.id }) |
+ @Html.ActionLink("Usuń", "Delete", new { id=item.id })
</td>
</tr>
}
@model Projects.Models.Project
@{
- ViewBag.Title = "Create";
+ ViewBag.Title = "Stwórz projekt";
}
-<h2>Create</h2>
+<h2>@ViewBag.Title</h2>
@using (Html.BeginForm())
@Html.AntiForgeryToken()
<div class="form-horizontal">
- <h4>Project</h4>
+ <h4>Projekt</h4>
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<div class="form-group">
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
- <input type="submit" value="Create" class="btn btn-default" />
+ <input type="submit" value="Stwórz" class="btn btn-default" />
</div>
</div>
</div>
}
<div>
- @Html.ActionLink("Back to List", "Index")
+ @Html.ActionLink("Powrót do listy", "Index")
</div>
@section Scripts {
@model Projects.Models.Project
@{
- ViewBag.Title = "Delete";
+ ViewBag.Title = "Usunięcie projektu";
}
-<h2>Delete</h2>
+<h2>@ViewBag.Title</h2>
-<h3>Are you sure you want to delete this?</h3>
+<h3>Czy na pewno chcesz to usunąć?</h3>
<div>
- <h4>Project</h4>
+ <h4>Projekt</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.AntiForgeryToken()
<div class="form-actions no-color">
- <input type="submit" value="Delete" class="btn btn-default" /> |
- @Html.ActionLink("Back to List", "Index")
+ <input type="submit" value="Usuń" class="btn btn-default" /> |
+ @Html.ActionLink("Powrót do listy", "Index")
</div>
}
</div>
@model Projects.Models.Project
@{
- ViewBag.Title = "Details";
+ ViewBag.Title = "Szczegóły projektu";
}
-<h2>Details</h2>
+<h2>@ViewBag.Title</h2>
<div>
- <h4>Project</h4>
+ <h4>Projekt</h4>
<hr />
<dl class="dl-horizontal">
<dt>
</dl>
</div>
<p>
- @Html.ActionLink("Edit", "Edit", new { id = Model.id }) |
- @Html.ActionLink("Back to List", "Index")
+ @Html.ActionLink("Edytuj", "Edit", new { id = Model.id }) |
+ @Html.ActionLink("Powrót do listy", "Index")
</p>
@model Projects.Models.Project
@{
- ViewBag.Title = "Edit";
+ ViewBag.Title = "Edycja projektu";
}
-<h2>Edit</h2>
+<h2>@ViewBag.Title</h2>
@using (Html.BeginForm())
@Html.AntiForgeryToken()
<div class="form-horizontal">
- <h4>Project</h4>
+ <h4>Projekt</h4>
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.HiddenFor(model => model.id)
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
- <input type="submit" value="Save" class="btn btn-default" />
+ <input type="submit" value="Zapisz" class="btn btn-default" />
</div>
</div>
</div>
}
<div>
- @Html.ActionLink("Back to List", "Index")
+ @Html.ActionLink("Powrót do listy", "Index")
</div>
@section Scripts {
ViewBag.Title = "Index";
}
-<h2>Index</h2>
+<h2>@ViewBag.Title</h2>
<p>
@Html.ActionLink("Create New", "Create")
@Html.DisplayFor(modelItem => item.User.login)
</td>
<td>
- @Html.ActionLink("Edit", "Edit", new { id=item.id }) |
- @Html.ActionLink("Details", "Details", new { id=item.id }) |
- @Html.ActionLink("Delete", "Delete", new { id=item.id })
+ @Html.ActionLink("Edycja", "Edit", new { id=item.id }) |
+ @Html.ActionLink("Szczegóły", "Details", new { id=item.id }) |
+ @Html.ActionLink("Usuń", "Delete", new { id=item.id })
</td>
</tr>
}