2011-02-28 10:34:46 +00:00
|
|
|
<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<VideoGameQuotes.Web.Models.SubmitQuoteModel>" MasterPageFile="~/Views/Shared/Site.Master" %>
|
2011-02-12 23:53:43 +00:00
|
|
|
<asp:Content runat="server" ID="Title" ContentPlaceHolderID="TitleContent">Submit New Quote</asp:Content>
|
|
|
|
<asp:Content runat="server" ID="Main" ContentPlaceHolderID="MainContent">
|
|
|
|
<h2>Submit New Quote</h2>
|
|
|
|
|
2011-02-14 07:39:45 +00:00
|
|
|
<%= Html.ValidationSummary("Some errors occurred while trying to submit your quote:") %>
|
2011-02-19 09:41:09 +00:00
|
|
|
<% Html.RenderPartial("EditQuoteForm", Model); %>
|
2011-02-24 21:11:21 +00:00
|
|
|
</asp:Content>
|
|
|
|
<asp:Content runat="server" ID="DeferrableScripts" ContentPlaceHolderID="DeferrableScripts">
|
|
|
|
<script type="text/javascript" src="/media/js/quoteform.js"></script>
|
2011-02-28 10:34:46 +00:00
|
|
|
<script type="text/javascript">//<![CDATA[
|
|
|
|
$(document).ready(function() {
|
|
|
|
$("#captcha-question").click(function() {
|
|
|
|
if ($("#captcha-dialog").length) {
|
|
|
|
$("#captcha-dialog").remove();
|
|
|
|
$(this).text("[click for correct answer]");
|
|
|
|
} else {
|
|
|
|
$("<div/>")
|
|
|
|
.attr("id", "captcha-dialog")
|
|
|
|
.addClass("dialog")
|
|
|
|
.css({ top: "20px" })
|
|
|
|
.append(
|
|
|
|
$("<span/>")
|
|
|
|
.css("white-space", "nowrap")
|
|
|
|
.text("<%= Model.UnhashedCaptchaAnswer %>")
|
|
|
|
).insertAfter($("#captcha-question"));
|
|
|
|
|
|
|
|
$(this).text("[click to hide]");
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
//]]></script>
|
2011-02-19 09:41:09 +00:00
|
|
|
</asp:Content>
|