A bug was caused by using the MemberManagementTemplate macro and not supplying all of the necessary kwargs. Intially, this bug was fixed by supplying the kwargs used by the macro at the time, but in this refactor, we simply remove those kwargs and refer to the permissions directly in the template by importing the macro with context.
41 lines
1.3 KiB
HTML
41 lines
1.3 KiB
HTML
|
|
{% extends "applications/base.html" %}
|
|
|
|
|
|
{% from "fragments/members.html" import MemberManagementTemplate with context %}
|
|
{% set secondary_breadcrumb = 'portfolios.applications.new_application_title' | translate %}
|
|
|
|
{% block portfolio_header %}
|
|
{% include "portfolios/header.html" %}
|
|
{{ StickyCTA(text=('portfolios.applications.new.step_3_header' | translate({"application_name": application.name}) ), context="Step 3 of 3") }}
|
|
{% endblock %}
|
|
|
|
{% block application_content %}
|
|
{% include "fragments/flash.html" %}
|
|
<p>
|
|
{{ ('portfolios.applications.new.step_3_description' | translate) }}
|
|
</p>
|
|
<hr class="panel__break">
|
|
|
|
{{ MemberManagementTemplate(
|
|
application,
|
|
members,
|
|
new_member_form,
|
|
"applications.update_new_application_step_3") }}
|
|
|
|
|
|
<span class="action-group-footer">
|
|
<a class="usa-button" href="{{ url_for('applications.settings', application_id=application_id) }}">
|
|
Return to Application Settings
|
|
</a>
|
|
<a class="usa-button usa-button-secondary" href="{{ url_for('applications.view_new_application_step_2', application_id=application.id) }}">
|
|
Previous
|
|
</a>
|
|
<a href="{{ url_for('applications.portfolio_applications', portfolio_id=portfolio.id) }}">
|
|
Cancel
|
|
</a>
|
|
</span>
|
|
|
|
{% endblock %}
|
|
|