|
Wersja 752, 1.5 KB
(wprowadzona przez marek, 17 years temu)
|
|
wiersz
|
| Rev | Line | |
|---|
| [752] | 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Wierszowki.Models.AuthorViewData>" %>
|
|---|
| 2 |
|
|---|
| 3 | <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|---|
| 4 | Dodaj autora
|
|---|
| 5 | </asp:Content>
|
|---|
| 6 |
|
|---|
| 7 | <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|---|
| 8 |
|
|---|
| 9 | <h2>Dodaj autora</h2>
|
|---|
| 10 |
|
|---|
| 11 | <%= Html.ValidationSummary("Proszê poprawiæ b³êdy i spróbowaæ ponownie.")%>
|
|---|
| 12 |
|
|---|
| 13 | <% using (Html.BeginForm("Create", "Author", Model.Author)) {%>
|
|---|
| 14 |
|
|---|
| 15 | <fieldset>
|
|---|
| 16 | <legend>Dane autora</legend>
|
|---|
| 17 | <p>
|
|---|
| 18 | <label for="FirstName">Imiê:</label>
|
|---|
| 19 | <%= Html.TextBox("Author.FirstName", Model.Author.FirstName)%>
|
|---|
| 20 | <%= Html.ValidationMessage("FirstName", "*") %>
|
|---|
| 21 | </p>
|
|---|
| 22 | <p>
|
|---|
| 23 | <label for="LastName">Nazwisko:</label>
|
|---|
| 24 | <%= Html.TextBox("Author.LastName", Model.Author.LastName)%>
|
|---|
| 25 | <%= Html.ValidationMessage("LastName", "*")%>
|
|---|
| 26 | </p>
|
|---|
| 27 | <p>
|
|---|
| 28 | <label for="LastName">Zatrudnienie:</label>
|
|---|
| 29 | <%= Html.DropDownList("Author.EmploymentTypeId", ViewData.Model.EmploymentTypeList, "-- proszê wybraæ --") %>
|
|---|
| 30 | <%= Html.ValidationMessage("EmploymentTypeId", "*")%>
|
|---|
| 31 | </p>
|
|---|
| 32 | <p>
|
|---|
| 33 | <input type="submit" value="Dodaj" />
|
|---|
| 34 | </p>
|
|---|
| 35 | </fieldset>
|
|---|
| 36 |
|
|---|
| 37 | <% } %>
|
|---|
| 38 |
|
|---|
| 39 | <div>
|
|---|
| 40 | <%=Html.ActionLink("Powrót do listy autorów", "Index")%>
|
|---|
| 41 | </div>
|
|---|
| 42 |
|
|---|
| 43 | </asp:Content> |
|---|
Notatka: Zobacz
TracBrowser
aby uzyskać więcej informacji.