Skip to content

Commit 23762b9

Browse files
authored
add waffle flag to hide sponsorship menu and application (python#2080)
During periods where we are modifying the benefits for a given year, we don't want to display interim states. This flag will allow us to hide the menu and application form during those periods, while still allowing staff to view/preview that page.
1 parent a2d6da6 commit 23762b9

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

static/sass/style.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3898,6 +3898,8 @@ span.highlighted {
38983898
#select_sponsorship_benefits_container .submit-row .btn {
38993899
width: 218px;
39003900
height: 47px;
3901+
font-weight: bold;
3902+
color: black !important;
39013903
background: #ffd343;
39023904
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
39033905
border-radius: 20px;

static/sass/style.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2817,6 +2817,8 @@ $breakpoint-desktop: 1200px;
28172817
width: 218px;
28182818
height: 47px;
28192819

2820+
font-weight: bold;
2821+
color: black !important;
28202822
background: $yellow;
28212823
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
28222824
border-radius: 20px;

templates/sponsors/sponsorship_benefits_form.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "psf/full-width.html" %}
2-
{% load pipeline boxes humanize static sponsors %}
2+
{% load pipeline boxes humanize static sponsors waffle_tags %}
33

44

55
{% block head %}
@@ -9,6 +9,7 @@
99
{% block page_title %}Sponsorship Application | {{ SITE_INFO.site_name }}{% endblock %}
1010

1111
{% block content %}
12+
{% flag "sponsorship-applications-open" %}
1213
<article class="text">
1314
{% box 'sponsorship-application' %}
1415
</article>
@@ -207,7 +208,7 @@ <h4 class="col">Submit your contact information</h4>
207208
<li><p>Submit your contact information</p></li>
208209
</ol>
209210
<div>
210-
<input class="btn" type="submit" value="Submit">
211+
<input class="btn btn-sponsorship-submit" type="submit" value="Submit">
211212
</div>
212213
<span></span>
213214
</div>
@@ -246,14 +247,26 @@ <h4 class="col">PSF staff will reach out to confirm and finalize</h4>
246247
{% endfor %}
247248
</div>
248249
</form>
250+
{% else %}
251+
<article class="text">
252+
{% box 'sponsorship-application-closed' %}
253+
</article>
254+
{% endflag %}
249255

250256
{% endblock content %}
251257

252258
{% block footer %}
259+
{% flag "sponsorship-applications-open" %}
253260
<div id="thank-you-container">
254261
<span>If you would like us to walk you through the new program, email [email protected].</span>
255262
<h1>Thank you for making a difference in the Python ecosystem!</h1>
256263
</div>
264+
{% else %}
265+
<div id="thank-you-container">
266+
<span>If you need to submit sooner, or have any questions, email [email protected].</span>
267+
<h1>Thank you for your interest in making a difference in the Python ecosystem!</h1>
268+
</div>
269+
{% endflag %}
257270
{{ block.super }}
258271
{% endblock %}
259272

0 commit comments

Comments
 (0)