Skip to content

Commit d98e04c

Browse files
Benjamin Brassobenbrasso-agile6
authored andcommitted
Add ERA option to BYB page
1 parent f4dd9e4 commit d98e04c

File tree

4 files changed

+125
-58
lines changed

4 files changed

+125
-58
lines changed

nofos/nofos/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
BYB_CHOICES = [
1818
("full", "Full BYB page"),
19+
("era", "BYB page with eRA"),
1920
("sole_source", "Sole Source Justification"),
2021
("none", "No BYB page"),
2122
]
@@ -434,7 +435,7 @@ class Meta:
434435
choices=BYB_CHOICES,
435436
default="full",
436437
help_text=(
437-
"Controls how the 'Before you begin' page is presented. Choices are 'Full', 'Sole Source' (for 1 applicant), and 'None'."
438+
"Controls how the 'Before you begin' page is presented. Choices are 'Full', 'BYB page with eRA', 'Sole Source' (for 1 applicant), and 'None'."
438439
),
439440
)
440441

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<!-- BYB page with eRA Template -->
2+
<!-- The full text of the Before You Begin page will be shown, plus registration steps for eRA.nih.gov. -->
3+
4+
5+
6+
<div class="byb-description" style="margin-bottom: 24px;">
7+
<strong>Description:</strong> The full text of the Before You Begin page will be shown, plus registration steps for eRA.nih.gov.
8+
</div>
9+
10+
<h2 id="section--before-you-begin--heading">Before you begin</h2>
11+
<div class="before-you-begin--content">
12+
<p>
13+
If you believe you are a good candidate for this funding opportunity, secure your <a href="https://sam.gov" target="_blank">SAM.gov</a>, <a href="https://grants.gov" target="_blank">Grants.gov</a>, and <a href="https://era.nih.gov" target="_blank">eRA.NIH.gov</a> registrations now. If you are already registered, make sure your registrations are active and up-to-date.
14+
</p>
15+
<p class="section--before-you-begin--psuedo-header">SAM.gov registration (this can take several weeks)</p>
16+
<p>You must have an active account with SAM.gov. This includes having a Unique Entity Identifier (UEI).</p>
17+
{% if step_2_section %}
18+
<a href="#{{ step_2_section.html_id }}">See Step 2: Get Ready to Apply</a>
19+
{% else %}
20+
<p class="highlight-strong">STEP 2 SECTION MISSING</p>
21+
{% endif %}
22+
<p class="section--before-you-begin--psuedo-header">Grants.gov registration (this can take several days)</p>
23+
<p>You must have an active Grants.gov registration. Doing so requires a Login.gov registration as well.</p>
24+
{% if step_2_section %}
25+
<a href="#{{ step_2_section.html_id }}">See Step 2: Get Ready to Apply</a>
26+
{% else %}
27+
<p class="highlight-strong">STEP 2 SECTION MISSING</p>
28+
{% endif %}
29+
<!-- eRA.NIH.gov registration section moved above Apply by the application due date -->
30+
<h2 class="section--before-you-begin--psuedo-header">eRA.NIH.gov registration</h2>
31+
<p>Once an organization has established its unique organization identifier, organizations can <a href="https://www.era.nih.gov/" target="_blank">register with eRA Commons</a> in tandem with completing Grants.gov registration. You must have all registrations in place at the time of submission. eRA Commons requires organizations to identify at least one Signing Official (SO) and at least one Program Director/Principal Investigator (PD/PI) account in order to submit an application.</p>
32+
{% if step_2_section %}
33+
<a href="#{{ step_2_section.html_id }}">See Step 2: Get Ready to Apply</a>
34+
{% else %}
35+
<p class="highlight-strong">STEP 2 SECTION MISSING</p>
36+
{% endif %}
37+
<p class="section--before-you-begin--psuedo-header">Apply by the application due date</p>
38+
{% if "|" in nofo.application_deadline %}
39+
<p>Applications are due by 11:59 p.m. Eastern Time:</p>
40+
<ul>
41+
<li>{{ nofo.application_deadline }}</li>
42+
</ul>
43+
{% else %}
44+
<p>Applications are due by 11:59 p.m. Eastern Time on {{ nofo.application_deadline }}</p>
45+
{% endif %}
46+
<div class="callout-box callout-box--icon callout-box--keyboard">
47+
<div class="callout-box--contents">
48+
{% if "thin" in nofo.icon_style %}
49+
{% include "includes/icons/thin/00-adobe-pdf.svg" %}
50+
{% else %}
51+
{% include "includes/icons/00-adobe-pdf.svg" %}
52+
{% endif %}
53+
<p>To help you find what you need, this NOFO uses internal links. In Adobe Reader, you can go back to where you were by pressing Alt + Left Arrow (Windows) or Command + Left Arrow (Mac) on your keyboard.</p>
54+
</div>
55+
</div>
56+
</div>

nofos/nofos/templates/nofos/nofo_edit_byb.html

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
{% extends 'base.html' %}
23
{% load nofo_name %}
34

@@ -31,11 +32,17 @@
3132
</thead>
3233
<tbody>
3334
<tr>
34-
<th scope="row">Full BYB page</th>
35-
<td>
36-
The default setting. The full text of the Before You Begin page will be shown.
37-
</td>
38-
</tr>
35+
<th scope="row">Full BYB page</th>
36+
<td>
37+
The default setting. The full text of the Before You Begin page will be shown.
38+
</td>
39+
</tr>
40+
<tr>
41+
<th scope="row">BYB page with eRA</th>
42+
<td>
43+
The full text of the Before You Begin page will be shown, plus registration steps for eRA.nih.gov.
44+
</td>
45+
</tr>
3946
<tr>
4047
<th scope="row">Sole Source Justification</th>
4148
<td>

nofos/nofos/templates/nofos/nofo_view.html

Lines changed: 55 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends 'base_barebones.html' %}
1+
{% extends 'base_barebones.html' %}
22
{% load static martortags nofo_section_name_separator add_classes_to_tables add_footnote_ids callout_box_contents replace_unicode_with_icon add_classes_to_paragraphs add_classes_to_lists add_classes_to_headings add_classes_to_toc add_captions_to_tables split_char_and_remove get_breadcrumb convert_paragraphs_to_hrs is_floating_callout_box get_floating_callout_boxes_from_section safe_br %}
33

44
{% block metadata %}
@@ -26,9 +26,7 @@
2626
<link href="{% static filename %}" type="text/css" media="all" rel="stylesheet">
2727
{% endwith %}
2828

29-
{% if nofo.inline_css %}
30-
<style>{{ nofo.inline_css|safe }}</style>
31-
{% endif %}
29+
3230
{% endblock %}
3331

3432
{% block title %}{{ nofo.title }}{% endblock %}
@@ -216,7 +214,7 @@ <h2 id="section--toc--heading">Contents</h2>
216214
</section>
217215

218216
<!-- BEFORE YOU BEGIN PAGE -->
219-
{% if nofo.before_you_begin == 'full' or nofo.before_you_begin == 'sole_source' %}
217+
{% if nofo.before_you_begin == 'full' or nofo.before_you_begin == 'sole_source' or nofo.before_you_begin == 'era' %}
220218
<section id="section--before-you-begin" class="before-you-begin{% if nofo.before_you_begin == 'sole_source' %} before-you-begin--sole-source{% endif %}">
221219
<div class="section--before-you-begin--icon">
222220
{% if "thin" in nofo.icon_style %}
@@ -225,56 +223,61 @@ <h2 id="section--toc--heading">Contents</h2>
225223
{% include "includes/icons/0-before.svg" %}
226224
{% endif %}
227225
</div>
228-
<h2 id="section--before-you-begin--heading">Before you begin</h2>
229-
<div class="before-you-begin--content">
230-
231-
{% if nofo.before_you_begin == 'full' %}
232-
<p>If you believe you are a good candidate for this funding opportunity, secure your <a href="https://sam.gov">SAM.gov</a> and <a href="https://grants.gov">Grants.gov</a> registrations now. If you are already registered, make sure your registrations are active and up-to-date.</p>
233-
{% else %}
234-
<p>If you believe you are a good candidate for this funding opportunity, secure your <a href="https://sam.gov">SAM.gov</a> registration now. If you are already registered, make sure your registration is active and up-to-date.</p>
235-
{% endif %}
236226

237-
<p class="section--before-you-begin--psuedo-header">SAM.gov registration (this can take several weeks)</p>
238-
<p>You must have an active account with SAM.gov. This includes having a Unique Entity Identifier (UEI).</p>
239-
{% if step_2_section %}
240-
<a href="#{{ step_2_section.html_id }}">See {{ step_2_section.name }}</a>
241-
{% else %}
242-
<p class="highlight-strong">STEP 2 SECTION MISSING</p>
243-
{% endif %}
244-
245-
{% if nofo.before_you_begin == 'full' %}
246-
<p class="section--before-you-begin--psuedo-header">Grants.gov registration (this can take several days)</p>
247-
<p>You must have an active Grants.gov registration. Doing so requires a Login.gov registration as well.</p>
248-
{% if step_2_section %}
249-
<a href="#{{ step_2_section.html_id }}">See {{ step_2_section.name }}</a>
227+
{% if nofo.before_you_begin == 'era' %}
228+
{% include "nofos/byb_page_with_era.html" %}
229+
{% else %}
230+
<h2 id="section--before-you-begin--heading">Before you begin</h2>
231+
<div class="before-you-begin--content">
232+
{% if nofo.before_you_begin == 'sole_source' %}
233+
<p class="section--before-you-begin--psuedo-header">
234+
Make sure you are an approved applicant for this funding opportunity.
235+
</p>
250236
{% else %}
251-
<p class="highlight-strong">STEP 2 SECTION MISSING</p>
237+
<p>
238+
If you believe you are a good candidate for this funding opportunity, secure your
239+
<a href="https://sam.gov">SAM.gov</a> and
240+
<a href="https://grants.gov">Grants.gov</a> registrations now. If you are already
241+
registered, make sure your registrations are active and up-to-date.
242+
</p>
243+
<p class="section--before-you-begin--psuedo-header">SAM.gov registration (this can take several weeks)</p>
244+
<p>You must have an active account with SAM.gov. This includes having a Unique Entity Identifier (UEI).</p>
245+
{% if step_2_section %}
246+
<a href="#{{ step_2_section.html_id }}">See Step 2: Get Ready to Apply</a>
247+
{% else %}
248+
<p class="highlight-strong">STEP 2 SECTION MISSING</p>
249+
{% endif %}
250+
<p class="section--before-you-begin--psuedo-header">Grants.gov registration (this can take several days)</p>
251+
<p>You must have an active Grants.gov registration. Doing so requires a Login.gov registration as well.</p>
252+
{% if step_2_section %}
253+
<a href="#{{ step_2_section.html_id }}">See Step 2: Get Ready to Apply</a>
254+
{% else %}
255+
<p class="highlight-strong">STEP 2 SECTION MISSING</p>
256+
{% endif %}
257+
<p class="section--before-you-begin--psuedo-header">Apply by the application due date</p>
258+
{% if "|" in nofo.application_deadline %}
259+
<p>Applications are due by 11:59 p.m. Eastern Time:</p>
260+
<ul>
261+
{% for application_deadline in nofo.application_deadline|split_char_to_list %}
262+
<li>{{ application_deadline }}</li>
263+
{% endfor %}
264+
</ul>
265+
{% else %}
266+
<p>Applications are due by 11:59 p.m. Eastern Time on {{ nofo.application_deadline|split_char_and_remove:"-" }}.</p>
267+
{% endif %}
268+
<div class="callout-box callout-box--icon callout-box--keyboard">
269+
<div class="callout-box--contents">
270+
{% if "thin" in nofo.icon_style %}
271+
{% include "includes/icons/thin/00-adobe-pdf.svg" %}
272+
{% else %}
273+
{% include "includes/icons/00-adobe-pdf.svg" %}
274+
{% endif %}
275+
<p>To help you find what you need, this NOFO uses internal links. In Adobe Reader, you can go back to where you were by pressing Alt + Left Arrow (Windows) or Command + Left Arrow (Mac) on your keyboard.</p>
276+
</div>
277+
</div>
252278
{% endif %}
253-
{% endif %}
254-
255-
<p class="section--before-you-begin--psuedo-header">Apply by the application due date</p>
256-
{% if "|" in nofo.application_deadline %}
257-
<p>Applications are due by 11:59 p.m. Eastern Time:</p>
258-
<ul>
259-
{% for application_deadline in nofo.application_deadline|split_char_to_list %}
260-
<li>{{ application_deadline }}</li>
261-
{% endfor %}
262-
</ul>
263-
{% else %}
264-
<p>Applications are due by 11:59 p.m. Eastern Time on {{ nofo.application_deadline|split_char_and_remove:"-" }}.</p>
265-
{% endif %}
266-
267-
<div class="callout-box callout-box--icon callout-box--keyboard">
268-
<div class="callout-box--contents">
269-
{% if "thin" in nofo.icon_style %}
270-
{% include "includes/icons/thin/00-adobe-pdf.svg" %}
271-
{% else %}
272-
{% include "includes/icons/00-adobe-pdf.svg" %}
273-
{% endif %}
274-
<p>To help you find what you need, this NOFO uses internal links. In Adobe Reader, you can go back to where you were by pressing Alt + Left Arrow (Windows) or Command + Left Arrow (Mac) on your keyboard.</p>
275-
</div>
276279
</div>
277-
</div>
280+
{% endif %}
278281
</section>
279282
{% endif %}
280283

@@ -404,7 +407,7 @@ <h2 id="{{ section.html_id }}">
404407
{% include "includes/heading.html" with tag=tag content=content id=id class=class only %}
405408
{% endwith %}
406409
{{ subsection.body|safe_markdown|add_classes_to_tables|replace_unicode_with_icon|add_footnote_ids|add_classes_to_paragraphs|add_captions_to_tables|add_classes_to_lists|convert_paragraphs_to_hrs }}
407-
{% endif %}
410+
{% endif %}
408411
{% endif %}
409412
{% endfor %}
410413
</div>

0 commit comments

Comments
 (0)