2
2
{% load boxes widget_tweaks %}
3
3
{% load humanize %}
4
4
{% load sponsors %}
5
+ {% block page_title %}Sponsorship Information{% endblock %}
5
6
6
7
7
- {% block page_title %}Submit Sponsorship Information{% endblock %}
8
8
9
9
{% block content %}
10
10
< article id ="new_sponsorship_application_container " class ="text ">
11
- < h1 > Submit Sponsorship Information</ h1 >
12
11
13
- < div id ="sponsorship-info-container " class ="user-feedback level-general ">
12
+ {% if sponsor %}
13
+ < div >
14
+ < h1 > Edit {{sponsor}}</ h1 >
15
+ </ div >
16
+ {% else %}
17
+ < div id ="sponsorship-info-container " class ="user-feedback level-general ">
14
18
{% if sponsorship_package %}
15
19
< p >
16
20
You selected the < b > {{ sponsorship_package.name }}</ b > package {% if sponsorship_price %}costing ${{ sponsorship_price|intcomma }} USD {% endif %}and the following benefits:
@@ -34,6 +38,10 @@ <h1>Submit Sponsorship Information</h1>
34
38
< span class ="remove "> < label id ="close-info-container "> Close</ label > | < a href ="{% url 'select_sponsorship_application_benefits' %} "> Back to select benefits</ a > </ span >
35
39
</ div >
36
40
41
+ < h1 > Submit Sponsorship Information</ h1 >
42
+ {% endif %}
43
+
44
+
37
45
{% if form.errors %}
38
46
< span class ="error-message "> The form has one or more errors</ span >
39
47
{{ form.non_field_errors }}
@@ -53,6 +61,8 @@ <h1>Submit Sponsorship Information</h1>
53
61
54
62
< div id ="new-appication-fields " {% if form.user_with_previous_sponsors and not form.errors %}style ="display: none "{% endif %} >
55
63
64
+ < h2 > Basics</ h2 >
65
+
56
66
< p class ="form_field ">
57
67
< label > {{ form.name.label }} < span class ="error-message "> {% if form.name.errors %}{{ form.name.errors.as_text }}</ span > {% endif %}</ label >
58
68
{% render_field form.name %}
@@ -62,6 +72,33 @@ <h1>Submit Sponsorship Information</h1>
62
72
{% endif %}
63
73
</ p >
64
74
75
+
76
+ < div class ="inline_fields ">
77
+ < div >
78
+ < p class ="form_field ">
79
+ < label > {{ form.country_of_incorporation.label }} < span class ="error-message "> {% if form.country_of_incorporation.errors %}
80
+ {{ form.country.errors.as_text }}</ span > {% endif %}</ label >
81
+ {% render_field form.country_of_incorporation %}
82
+ {% if form.country_of_incorporation.help_text %}
83
+ < br />
84
+ < span class ="helptext "> {{ form.country_of_incorporation.help_text }}</ span >
85
+ {% endif %}
86
+ </ p >
87
+ </ div >
88
+
89
+ < div >
90
+ < p class ="form_field ">
91
+ < label > {{ form.state_of_incorporation.label }} < span class ="error-message "> {% if form.state_of_incorporation.errors %}
92
+ {{ form.state_of_incorporation.errors.as_text }}</ span > {% endif %}</ label >
93
+ {% render_field form.state %}
94
+ {% if form.state_of_incorporation.help_text %}
95
+ < br />
96
+ < span class ="helptext "> {{ form.state_of_incorporation.help_text }}</ span >
97
+ {% endif %}
98
+ </ p >
99
+ </ div >
100
+ </ div >
101
+
65
102
< p class ="form_field ">
66
103
< label > {{ form.description.label }} < span class ="error-message "> {% if form.description.errors %}{{ form.description.errors.as_text }}</ span > {% endif %}</ label >
67
104
{% render_field form.description %}
@@ -95,14 +132,39 @@ <h1>Submit Sponsorship Information</h1>
95
132
</ div >
96
133
</ div >
97
134
98
- < p class ="form_field ">
99
- < label > {{ form.country.label }} < span class ="error-message "> {% if form.country.errors %}{{ form.country.errors.as_text }}</ span > {% endif %}</ label >
100
- {% render_field form.country %}
101
- {% if form.country.help_text %}
102
- < br />
103
- < span class ="helptext "> {{ form.country.help_text }}</ span >
104
- {% endif %}
105
- </ p >
135
+ < div class ="inline_fields ">
136
+ < div >
137
+ < p class ="form_field ">
138
+ < label > {{ form.web_logo.label }} < span class ="error-message "> {% if form.web_logo.errors %}{{ form.web_logo.errors.as_text }}</ span > {% endif %}</ label >
139
+ {% render_field form.web_logo %}
140
+ {% if sponsor.web_logo %}
141
+ < p > Currently: < a href ="{{ sponsor.web_logo.url }} "> {{ sponsor.web_logo.name }}</ a > </ p >
142
+ {% endif %}
143
+ {% if form.web_logo.help_text %}
144
+ < br />
145
+ < span class ="helptext "> {{ form.web_logo.help_text }}</ span >
146
+ {% endif %}
147
+ </ p >
148
+ </ div >
149
+
150
+ < div >
151
+ < p class ="form_field ">
152
+ < label > {{ form.print_logo.label }} < span class ="error-message "> {% if form.print_logo.errors %}{{ form.print_logo.errors.as_text }}</ span > {% endif %}</ label >
153
+ {% render_field form.print_logo %}
154
+ {% if sponsor.print_logo %}
155
+ < p > Currently: < a href ="{{ sponsor.print_logo.url }} "> {{ sponsor.print_logo.name }}</ a > </ p >
156
+ {% endif %}
157
+ {% if form.print_logo.help_text %}
158
+ < br />
159
+ < span class ="helptext "> {{ form.print_logo.help_text }}</ span >
160
+ {% endif %}
161
+ </ p >
162
+ </ div >
163
+ </ div >
164
+
165
+ < hr >
166
+
167
+ < h2 > Mailing and Contact</ h2 >
106
168
107
169
< div class ="inline_fields ">
108
170
< div >
@@ -167,37 +229,26 @@ <h1>Submit Sponsorship Information</h1>
167
229
168
230
< div >
169
231
< p class ="form_field ">
170
- < label > {{ form.primary_phone .label }} < span class ="error-message "> {% if form.primary_phone .errors %}{{ form.primary_phone .errors.as_text }}</ span > {% endif %}</ label >
171
- {% render_field form.primary_phone %}
172
- {% if form.primary_phone .help_text %}
232
+ < label > {{ form.country .label }} < span class ="error-message "> {% if form.country .errors %}{{ form.country .errors.as_text }}</ span > {% endif %}</ label >
233
+ {% render_field form.country %}
234
+ {% if form.country .help_text %}
173
235
< br />
174
- < span class ="helptext "> {{ form.primary_phone .help_text }}</ span >
236
+ < span class ="helptext "> {{ form.country .help_text }}</ span >
175
237
{% endif %}
176
238
</ p >
177
239
</ div >
178
240
</ div >
179
241
180
242
< div class ="inline_fields ">
181
243
< div >
182
- < p class ="form_field ">
183
- < label > {{ form.web_logo.label }} < span class ="error-message "> {% if form.web_logo.errors %}{{ form.web_logo.errors.as_text }}</ span > {% endif %}</ label >
184
- {% render_field form.web_logo %}
185
- {% if form.web_logo.help_text %}
186
- < br />
187
- < span class ="helptext "> {{ form.web_logo.help_text }}</ span >
188
- {% endif %}
189
- </ p >
190
- </ div >
191
-
192
- < div >
193
- < p class ="form_field ">
194
- < label > {{ form.print_logo.label }} < span class ="error-message "> {% if form.print_logo.errors %}{{ form.print_logo.errors.as_text }}</ span > {% endif %}</ label >
195
- {% render_field form.print_logo %}
196
- {% if form.print_logo.help_text %}
197
- < br />
198
- < span class ="helptext "> {{ form.print_logo.help_text }}</ span >
199
- {% endif %}
200
- </ p >
244
+ < p class ="form_field ">
245
+ < label > {{ form.primary_phone.label }} < span class ="error-message "> {% if form.primary_phone.errors %}{{ form.primary_phone.errors.as_text }}</ span > {% endif %}</ label >
246
+ {% render_field form.primary_phone %}
247
+ {% if form.primary_phone.help_text %}
248
+ < br />
249
+ < span class ="helptext "> {{ form.primary_phone.help_text }}</ span >
250
+ {% endif %}
251
+ </ p >
201
252
</ div >
202
253
</ div >
203
254
@@ -216,11 +267,16 @@ <h1>Contacts</h1>
216
267
217
268
< button class ="formset-btn add-form-row " type ="button "> Extra contact</ button >
218
269
</ div >
219
-
270
+ {% if sponsor %}
271
+ < div class ="form-actions ">
272
+ < input type ="submit " name ="submit-btn " value ="Save "/>
273
+ </ div >
274
+ {% else %}
220
275
</ div >
221
276
222
277
< input id ="submit-btn " type ="submit " value ="Apply ">
223
278
</ form >
279
+ {% endif %}
224
280
</ article >
225
281
226
282
{% endblock content %}
0 commit comments