<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<r12.Models.Appointment>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Spotkanie</title>
    <link rel="Stylesheet" href="../../Content/Site.css" />
</head>
<body>
    <div>
<h1>Rejestrowanie spotkania</h1> 
<%: Html.ValidationSummary(true) %>

<% Html.EnableClientValidation(); %>
<% using(Html.BeginForm()) { %> 
    <p> 
        Nazwisko: <%: Html.EditorFor(x => x.ClientName) %> 
        <%: Html.ValidationMessageFor(x => x.ClientName) %> 
    </p> 
    <p> 
        Data spotkania:  
        <%: Html.EditorFor(x => x.AppointmentDate)%> 
        <%: Html.ValidationMessageFor(x => x.AppointmentDate) %> 
    </p> 
    <p> 
        <%: Html.CheckBox("acceptsTerms") %> 
        <label for="acceptsTerms">Akceptuję zasady rejestracji</label> 
        <%: Html.ValidationMessage("acceptsTerms") %> 
    </p> 
     
    <input type="submit" value="Zarejestruj" /> 
<% } %> 

<script type="text/javascript" src="../../Scripts/MicrosoftAjax.js"></script>
<script type="text/javascript" src="../../Scripts/MicrosoftMvcValidation.js"></script>
    
    </div>
</body>
</html>
