vgquotes/Src/VideoGameQuotes.Web/Views/Home/Contact.aspx

48 lines
1.6 KiB
Plaintext
Raw Normal View History

2011-02-11 05:21:31 +00:00
<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<VideoGameQuotes.Web.Models.ContactModel>" MasterPageFile="~/Views/Shared/Site.Master" %>
<%@ Import Namespace="Portoa.Web.Util" %>
<asp:Content runat="server" ID="Title" ContentPlaceHolderID="TitleContent">Contact</asp:Content>
<asp:Content runat="server" ID="Main" ContentPlaceHolderID="MainContent">
<h2>Contact</h2>
<p><%= Html.ValidationMessage("client") %></p>
<% using (Html.BeginForm("Contact", "Home")) { %>
<div class="contact-form">
<%= Html.HiddenFor(model => model.HashedCaptchaAnswer) %>
<p>
<%= Html.LabelFor(model => model.Name) %>
<br />
<%= Html.TextBoxFor(model => model.Name) %>
</p>
<p>
<%= Html.LabelFor(model => model.Email) %>
<br />
<%= Html.TextBoxFor(model => model.Email) %>
</p>
<p>
<%= Html.LabelFor(model => model.Message) %>
<br />
<%= Html.TextAreaFor(model => model.Message) %>
</p>
<p>
Are you human? <small style="position: relative"><a href="#" id="captcha-question">[click for correct answer]</a></small>
<br />
<%= Html.TextBoxFor(model => model.CaptchaAnswer) %>
</p>
<div class="form-submit-container">
<div class="form-submit">
<%= Html.Submit("Send!")%>
</div>
</div>
</div>
<% } %>
</asp:Content>
<asp:Content ContentPlaceHolderID="DeferrableScripts" runat="server">
<% Html.RenderPartial("CaptchaJavaScript", Model); %>
2011-02-11 05:21:31 +00:00
</asp:Content>