You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Okay so there are 2 ways of doing page breaks in the NOFO Builder.
There is a radio button in every subsection edit page “Has page break?”
In the body of any subsection, you can write page-break-before and page-break-after. These are special strings that create a page break in the PDF.
Here are 3 screenshots of our page break stuff.
editing a subsection
nofo edit page
Nofo HTML page
When page breaks are created, there is a dashed line that appears in the UI, because otherwise you wouldn’t be able to tell where they were. Some of them also say that they are a page break. They should all look like this. The dashed line on its own is not obvious enough.
Also the ‘before/after’ stuff is mostly a distinction without a difference. It does make a difference when it is attached to an element (eg, should everything after a table be on a new page, or should the table start on a new page), but when it is just an <hr> basically, it makes no difference.
So there’s a few things to do here:
Add page-break
Let’s make “page-break” work the same as “page-break-before”. This is what we do with the radio button so let's just make this the same in the body text.
We don’t need to remove the logic/CSS for “page-break-before” or “page-break-after”, let’s just keep them around. They are in old NOFOs so if we remove them some layouts will get messed up.
Okay so there are 2 ways of doing page breaks in the NOFO Builder.
page-break-before
andpage-break-after
. These are special strings that create a page break in the PDF.Here are 3 screenshots of our page break stuff.
When page breaks are created, there is a dashed line that appears in the UI, because otherwise you wouldn’t be able to tell where they were. Some of them also say that they are a page break. They should all look like this. The dashed line on its own is not obvious enough.
Also the ‘before/after’ stuff is mostly a distinction without a difference. It does make a difference when it is attached to an element (eg, should everything after a table be on a new page, or should the table start on a new page), but when it is just an
<hr>
basically, it makes no difference.So there’s a few things to do here:
Add
page-break
Let’s make “page-break” work the same as “page-break-before”. This is what we do with the radio button so let's just make this the same in the body text.
Function is here:
simpler-grants-pdf-builder/bloom_nofos/nofos/templatetags/utils/__init__.py
Line 154 in 84eda82
We don’t need to remove the logic/CSS for “page-break-before” or “page-break-after”, let’s just keep them around. They are in old NOFOs so if we remove them some layouts will get messed up.
Also change this documentation (note: non-public link): NOFO Builder Secret Codes.
Remove “-before”/“-after” language in the UI
Let’s just call it “page-break” and have a little down arrow (or no arrows, but I kind of like them).
Add “[ page break ]” pseudo element to the section page break UI
People don’t know what the dashed line actually means on its own, so let’s add this. Again, we don’t need to specify “before” or “after”.
We want to add this in 2 places (see images above):
The text was updated successfully, but these errors were encountered: