Merge pull request #1 from skoobasteeve/form-testing

conditional field example
This commit is contained in:
skoobasteeve
2020-10-18 22:37:00 -04:00
committed by GitHub
5 changed files with 47 additions and 11 deletions

3
.gitignore vendored
View File

@@ -6,6 +6,9 @@
*.sublime-project
*.sublime-workspace
# VS Code
*.code-workspace
# Ruby Gem
*.gem
.bundle

View File

@@ -9,3 +9,30 @@ header:
overlay_filter: "0.5"
overlay_image: /assets/images/banner.jpg
---
# RSVP
<form name="rsvp" action="/success/" netlify>
<p>
<label>Guest #1 <input type="text" name="name" required/></label>
</p>
<p>
<label>Guest #2 (if applicable) <input type="text" name="email" /></label>
</p>
<p>
<label>Email <input type="email" name="email" required/></label>
</p>
<p>
<label for="attendance">Will you be attending?</label>
<select class="form-control" id="attendance">
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
</p>
<p>
<label>Questions / Comments <input type="text" name="email" /></label>
</p>
<p>
<button type="submit">Send</button>
</p>
</form>

17
_pages/success.md Normal file
View File

@@ -0,0 +1,17 @@
---
title: "Ray and Gwen's 2021 Wedding Exxtravaganza!"
layout: splash
permalink: /success/
author_profile: false
masthead: false
header:
overlay_color: "#000"
overlay_filter: "0.5"
overlay_image: /assets/images/banner.jpg
---
# Thanks for your RSVP!
Go back [home](../index.html)
![success](../assets/images/success.jpg){: height="800px" width="800px"}

View File

@@ -1,11 +0,0 @@
{
"folders": [
{
"path": ".."
},
{
"path": "../../skoobasteeve.github.io.2"
}
],
"settings": {}
}

BIN
assets/images/success.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 MiB