<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Wierszowki.Core.Linq.User>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edytuj użytkownika
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edytuj użytkownika</h2>

    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm("Edit", "User", Model))
       {%>

        <fieldset>
            <legend>Dane użytkownika</legend>
            <p>
                <label for="Login">Login:</label>
                <%= Html.TextBox("Login", Model.Login) %>
                <%= Html.ValidationMessage("Login", "*") %>
            </p>
            <p>
                <label for="Password">Hasło:</label>
                <%= Html.Password("Password", Model.Password) %>
                <%= Html.ValidationMessage("Password", "*") %>
            </p>
            <p>
                <label for="FirstName">Imię:</label>
                <%= Html.TextBox("FirstName", Model.FirstName) %>
                <%= Html.ValidationMessage("FirstName", "*") %>
            </p>
            <p>
                <label for="LastName">Nazwisko:</label>
                <%= Html.TextBox("LastName", Model.LastName) %>
                <%= Html.ValidationMessage("LastName", "*") %>
            </p>
            <p>
                <input type="submit" value="Aktualizuj" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Powrót do listy użytkowników", "Index") %>
    </div>
</asp:Content>