aboutsummaryrefslogtreecommitdiffstats
path: root/templates/en/rsvp.htm
blob: f258b41950078b4e1572420cccb8e0274d1d1ff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{%extends 'layout.htm' %}
{% block content%}
<form id="rsvp" action="/rsvp/" role="form"
      class="form-horizontal" method="post">
  {% with messages = get_flashed_messages() %}
  {% if messages %}
  {% for message in messages %}
  <div class="row">
    <div class="alert alert-success col-md-9">
      <strong>Success! </strong>{{message}}
    </div>
    {% endfor %}
  </div>
  {% endif %}
  {% endwith %}
  <div class="form-group">
	<label for="name" class="col-md-2 control-label">Username:</label>
    <div class="col-md-5">
      <p class="form-control-static">{{form['user_name']}}</p>
    </div>
  </div>
  <div class="form-group">
	<label for="fullname" class="col-md-2 control-label">Full Name:</label>
    <div class="col-md-5">
	  <input type="text" id="fullname" class="form-control"
             name="fullname" placeholder="Your full name" value="{{form['full_name'] if form['full_name']}}"/>
    </div>
  </div>
  <p style="text-indent:3em">
    Will you be able to make it to our wedding?
  </p>
  <div class="form-group">
    <label for="answer" class="col-md-2 control-label">RSVP:</label>
    <div class="col-md-9">
      <label class="radio-inline">
        <input type="radio" value="1" name="answer"
               {%if form['rsvp'] %}checked {% endif %}>Yes
      </label>
      <label class="radio-inline">
        <input type="radio" value="0" name="answer"
               {%if not form['rsvp'] %}checked {% endif %}>No
      </label>
    </div>
  </div>
  <div class="form-group">
	<label for="email" class="col-md-2 control-label">Email:</label>
    <div class="col-md-5">
	  <input type="email" id="email" class="form-control"
             name="email" placeholder="email" value="{{form['email'] if form['email']}}" />
    </div>
  </div>
  <div class="form-group">
	<label for="mailing" class="col-md-2 control-label">Mailing Address:</label>
    <div class="col-md-5">
      <textarea id="mailing" name="mailing"
                placeholder="Your mailing address"
                value="{{form['mailing'] if form['mailing']}}"
                class="form-control" rows="3" {% if not form['rsvp'] %}disabled {%endif%}></textarea>
	</div>
  </div>
  <p style="text-indent:3em">
    Will you be accompanied by a plus one?
  </p>
  <div class="form-group">
    <label for="plusone" class="col-md-2 control-label">+1:</label>
    <div class="col-md-9">
      <label class="radio-inline">
        <input id="plusoneyes" type="radio" value="1" name="plusone"
               {%if form['plusone'] %}checked {% endif %} >Yes
      </label>
      <label class="radio-inline">
        <input id="plusoneno" type="radio" value="0" name="plusone"
               {%if not form['plusone'] %}checked {% endif %}>No
      </label>
    </div>
  </div>
  <div class="form-group">
	<label for="mailing" class="col-md-2 control-label">+1's Full Name:</label>
    <div class="col-md-5">
	  <input type="text" id="plusonename" class="form-control"
             name="plusonename" placeholder="+1's Name"
             value="{{form['plusonename'] if form['plusonename']}}"
             {% if not form['plusone']%}disabled{% endif %}/>
    </div>
  </div>
  <p style="text-indent:3em">
    Will you be coming with kids?
  </p>
  <div class="form-group">
    <label for="plusone" class="col-md-2 control-label">Kids:</label>
    <div class="col-md-9">
      <label class="radio-inline">
        <input id="kidsyes" type="radio" value="1" name="kids"
               {%if form['kids'] %}checked {% endif %}>Yes
      </label>
      <label class="radio-inline">
        <input id="kidsno" type="radio" value="0" name="kids"
               {%if not form['kids'] %}checked {% endif %}>No
      </label>
    </div>
  </div>
  <div class="form-group">
	<label for="mailing" class="col-md-2 control-label">Kids' names:</label>
    <div class="col-md-5">
      <textarea id="kidsnames" name="kidsnames" placeholder="Your kids' names"
                class="form-control" rows="3"
                {%if not form['kids']%} disabled{% endif %}></textarea>
	</div>
  </div>
  <p style="text-indent:3em">
    Please let us know if you have any dietary restrictions or comments:
  </p>

  <div class="form-group">
	<label for="mailing" class="col-md-2 control-label">Comments:</label>
    <div class="col-md-5">
      <textarea id="comments" name="comments" placeholder="Your comments"
                value="{{form['comments']}}" class="form-control" rows="3"></textarea>
	</div>
  </div>
  <div class="form-group">
    <div class="col-md-offset-2 col-md-5">
      <button type="submit" class="btn btn-primary" name="rsvp">
        Update
      </button>
    </div>
  </div>
</form>
{% endblock %}