Permalink
Browse files

added custom submit confirmation

  • Loading branch information...
1 parent f80af4f commit 99c12fd3bb2a74abf869cdc47408c18c8ec9db46 Brian committed Apr 22, 2014
Showing with 16 additions and 2 deletions.
  1. +12 −0 source/confirmation.html.erb
  2. +1 −1 source/stylesheets/all.css.scss
  3. +3 −1 source/submit-pattern.html.erb
@@ -0,0 +1,12 @@
+---
+title: Responsive Email Patterns
+layout: interior
+buttons: false
+---
+
+<div class="form">
+ <h1>Thanks for submitting your Pattern!</h1>
+ <div class="submit">
+ <a class="button" href="submit-pattern.html">Submit Another Pattern</a>
+ </div>
+</div>
@@ -61,7 +61,7 @@ ul {
margin: 0 auto;
@include clearfix;
}
-.index, .submit-pattern {
+.index, .submit-pattern, .confirmation {
.wrap {
max-width: 70em;
}
@@ -6,7 +6,9 @@ buttons: false
<div class="form">
<h1>Submit a Pattern</h1>
- <form action="https://docs.google.com/forms/d/1ndVWdFXIjM-LFLxp4MdAPp60f79XbUarS_KmdDqVKkY/formResponse?embedded=true" method="POST" id="ss-form" target="_self" onsubmit="">
+ <script type="text/javascript">var submitted=false;</script>
+ <iframe name="hidden_iframe" id="hidden_iframe" style="display:none;" onload="if(submitted) {window.location='confirmation.html';}"></iframe>
+ <form action="https://docs.google.com/forms/d/1ndVWdFXIjM-LFLxp4MdAPp60f79XbUarS_KmdDqVKkY/formResponse?embedded=true" method="post" target="hidden_iframe" onsubmit="submitted=true;">
<fieldset>
<label aria-hidden="true" class="ss-q-item-label aria-todo" for="entry_1729108410">*Pattern Name</label>
<input type="text" name="entry.1729108410" value="" class="ss-q-short" id="entry_1729108410" dir="auto" aria-label="Pattern Name " aria-required="true" required="" title="" placeholder="What should I call your pattern?">

0 comments on commit 99c12fd

Please sign in to comment.