Skip to content

Fix deadline not showing on application form#4605

Merged
wes-otf merged 1 commit intomainfrom
fix-deadline-text
Jul 15, 2025
Merged

Fix deadline not showing on application form#4605
wes-otf merged 1 commit intomainfrom
fix-deadline-text

Conversation

@theskumar
Copy link
Copy Markdown
Member

Noticed this small issue, where the deadline is not visible on the round form.

@theskumar theskumar requested review from Copilot, frjo and wes-otf July 13, 2025 11:14
@theskumar theskumar self-assigned this Jul 13, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses an issue where the application form was not showing the deadline by updating the template to use the parent page’s next_deadline.

  • Switched from page.next_deadline to page.get_parent.specific.next_deadline in the template.
Comments suppressed due to low confidence (2)

hypha/apply/funds/templates/funds/application_base.html:11

  • No tests currently verify that the parent next_deadline is rendered on the application form; consider adding a view/template test to cover this scenario.
                <span class="font-medium">{% trans 'Next deadline' %}: {{ page.get_parent.specific.next_deadline|date:'M j, Y' }}</span>

hypha/apply/funds/templates/funds/application_base.html:8

  • The condition checks page.end_date, which likely refers to the child form rather than the parent round. Update to page.get_parent.specific.end_date (or check next_deadline) so the block actually displays when the parent has a deadline.
        {% if page.end_date and page.get_parent.specific.show_deadline %}

Comment on lines 8 to 14
{% if page.end_date and page.get_parent.specific.show_deadline %}
<p class="badge badge-info badge-soft badge-md">
{% heroicon_micro 'calendar-days' class='size-4' aria_hidden=true %}
<span class="font-medium">{% trans 'Next deadline' %}: {{ page.next_deadline|date:'M j, Y' }}</span>
<span class="font-medium">{% trans 'Next deadline' %}: {{ page.get_parent.specific.next_deadline|date:'M j, Y' }}</span>
</p>
{% endif %}

Copy link

Copilot AI Jul 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider using a {% with parent=page.get_parent.specific %} block to avoid repeating get_parent.specific and improve template readability.

Copilot uses AI. Check for mistakes.
@wes-otf wes-otf added Type: Bug Bugs! Things that are broken :-/ Status: Tested - approved for live ✅ Type: Patch Mini change, used in release drafter labels Jul 15, 2025
@wes-otf wes-otf merged commit d0f069b into main Jul 15, 2025
7 checks passed
@theskumar theskumar deleted the fix-deadline-text branch July 16, 2025 18:31
wes-otf pushed a commit to OpenTechFund/apply-app that referenced this pull request Aug 13, 2025
Noticed this small issue, where the deadline is not visible on the round
form.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Tested - approved for live ✅ Type: Bug Bugs! Things that are broken :-/ Type: Patch Mini change, used in release drafter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants