Skip to content

Commit 9f4bf4d

Browse files
committed
scholarship refinements + handle application closing date
1 parent b43a599 commit 9f4bf4d

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

_layouts/event.html

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,23 +120,42 @@ <h1 class="display-5">{{ page.title }}</h1>
120120
</a>
121121
{% endif %}
122122
<p class="text-center">
123-
<b>
124-
Registration Closes: {{ details.registration.close_date | date: "%B %-d, %Y" }}
125-
</b>
123+
<i>
124+
Registration Closes: {{ details.registration.close_date | date: "%B %-d" }}
125+
</i>
126126
</p>
127127
</div>
128128

129129
{% if details.scholarship != null %}
130130
{% include heading_block.html title="Scholarships" icon="bi-award" %}
131+
132+
{% if details.scholarship.form == null %}
133+
{% assign scholarship_closed = true %}
134+
{% assign scholarship_btn_text = "Applications Closed" %}
135+
{% assign scholarship_disabled = "disabled" %}
136+
{% else %}
137+
{% assign scholarship_closed = false %}
138+
{% assign scholarship_btn_text = "Apply Now" %}
139+
{% assign scholarship_disabled = "" %}
140+
{% endif %}
141+
131142
<p>
132143
The Denver Suspension Collective is committed to keeping education accessible and available
133144
and we understand that events can be cost prohibitive for many practitioners.
134145
We are offering scholarships for eligible attendees.
135146
</p>
136147
<div class="d-grid gap-2 col-8 mx-auto my-2">
137-
<a href="{% link {{ details.scholarship.page }} %}" class="btn btn-outline-primary btn-lg" role="button">
138-
Apply Here
148+
<a href="{% link {{ details.scholarship.page }} %}"
149+
class="btn btn-outline-primary btn-lg {{ scholarship_disabled }}"
150+
aria-disabled="{{ scholarship_closed }}"
151+
role="button">
152+
{{ scholarship_btn_text }}
139153
</a>
154+
<p class="text-center">
155+
<i>
156+
Applications Close: {{ details.scholarship.deadline | date: "%B %-d" }}
157+
</i>
158+
</p>
140159
</div>
141160
{% endif %}
142161

_layouts/scholarship.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,10 @@ <h1 class="display-5">{{ page.title }}</h1>
9898
>
9999
{{ btn_text }}
100100
</a>
101+
<p class="text-center">
102+
<i>
103+
Applications Close: {{ deadline | date: "%B %-d" }}
104+
</i>
105+
</p>
101106
</div>
102107
</article>

0 commit comments

Comments
 (0)