diff --git a/portal/eproms/templates/eproms/assessment_engine/ae_macros.html b/portal/eproms/templates/eproms/assessment_engine/ae_macros.html index d179c1130..48ebd29e4 100644 --- a/portal/eproms/templates/eproms/assessment_engine/ae_macros.html +++ b/portal/eproms/templates/eproms/assessment_engine/ae_macros.html @@ -95,21 +95,26 @@

{%- call render_card_content( title_text=_("%(substudy_title)s Questionnaire", substudy_title=substudy_title), card_class="portal-description-incomplete" if substudy_assessment_is_ready else "disabled") -%} - {%- if not substudy_assessment_is_ready -%} - {%- if substudy_due_date -%} -
{{_("Your %(substudy_title)s questionnaire is due on %(substudy_due_date)s. Please complete your open %(registry)s questionnaire first, to activate this one. Thank you for participating.", - substudy_title=substudy_title, - substudy_due_date=substudy_due_date, - registry=_(assessment_status.assigning_authority))}}
+ {%- if substudy_assessment_status.overall_status == OverallStatus.withdrawn -%} + +

{{_("The assessment is no longer available. A research staff member will contact you for assistance.")}}

+ {%- else -%} + {%- if not substudy_assessment_is_ready -%} + {%- if substudy_due_date -%} +
{{_("Your %(substudy_title)s questionnaire is due on %(substudy_due_date)s. Please complete your open %(registry)s questionnaire first, to activate this one. Thank you for participating.", + substudy_title=substudy_title, + substudy_due_date=substudy_due_date, + registry=_(assessment_status.assigning_authority))}}
+ {%- else -%} +
{{_("Please complete your open %(registry)s questionnaire first, to activate this one. Thank you for participating.", + registry=_(assessment_status.assigning_authority))}}
+ {%- endif -%} {%- else -%} -
{{_("Please complete your open %(registry)s questionnaire first, to activate this one. Thank you for participating.", - registry=_(assessment_status.assigning_authority))}}
+
{{_("Your questionnaire is ready. Please complete by %(substudy_due_date)s. By participating, we'll better understand your experience and offer useful tips and support.", substudy_due_date=substudy_due_date)}}
{%- endif -%} - {%- else -%} -
{{_("Your questionnaire is ready. Please complete by %(substudy_due_date)s. By participating, we'll better understand your experience and offer useful tips and support.", substudy_due_date=substudy_due_date)}}
+ {{render_call_to_button(button_label=button_label, button_url=url_for('assessment_engine_api.present_needed'))}} + {%- endif -%} - {{render_call_to_button(button_label=button_label, button_url=url_for('assessment_engine_api.present_needed'))}} - {%- if substudy_assessment_errors and substudy_assessment_errors|length %}