From c8672196cd4f8e45667052274783a012e166923d Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Sat, 21 Mar 2015 20:25:11 -0400 Subject: hook everything up --- templates/en/rsvp.htm | 52 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 16 deletions(-) (limited to 'templates') diff --git a/templates/en/rsvp.htm b/templates/en/rsvp.htm index fd1ea67..f258b41 100644 --- a/templates/en/rsvp.htm +++ b/templates/en/rsvp.htm @@ -2,6 +2,17 @@ {% block content%}
+ {% with messages = get_flashed_messages() %} + {% if messages %} + {% for message in messages %} +
+
+ Success! {{message}} +
+ {% endfor %} +
+ {% endif %} + {% endwith %}
@@ -12,7 +23,7 @@
+ name="fullname" placeholder="Your full name" value="{{form['full_name'] if form['full_name']}}"/>

@@ -22,11 +33,11 @@

@@ -35,17 +46,16 @@
+ name="email" placeholder="email" value="{{form['email'] if form['email']}}" />
+ placeholder="Your mailing address" + value="{{form['mailing'] if form['mailing']}}" + class="form-control" rows="3" {% if not form['rsvp'] %}disabled {%endif%}>

@@ -55,11 +65,11 @@

@@ -68,7 +78,9 @@
+ name="plusonename" placeholder="+1's Name" + value="{{form['plusonename'] if form['plusonename']}}" + {% if not form['plusone']%}disabled{% endif %}/>

@@ -78,11 +90,11 @@

@@ -91,7 +103,8 @@
+ class="form-control" rows="3" + {%if not form['kids']%} disabled{% endif %}>

@@ -102,8 +115,15 @@

+ value="{{form['comments']}}" class="form-control" rows="3">
+
+
+ +
+
{% endblock %} -- cgit v1.2.3-70-g09d2